/* Bridge pages: bridges.html, bridge-builder.html, bridge-cart.html (on top of styles.css) */

/* (hidden means hidden, even on boxes these styles make flex or grid) */
.bridge-page [hidden] {
  display: none !important;
}

.bridge-page {
  max-width: 1150px;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
  width: 100%;
  font-family: 'Libre Baskerville', serif;
  color: #4a3020;
}

.bridge-page h2 {
  font-family: 'Fraunces', serif;
  color: #7E4E32;
  margin: 2.5rem 0 0.5rem;
}

/* (styles.css makes paragraphs large on phones; these pages keep their own sizes) */
.bridge-page p {
  font-size: 0.95rem;
}

.bridge-lede {
  font-size: 1rem !important;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.bridge-small {
  font-size: 0.8rem;
  font-style: italic;
  color: #6a4a34;
}

/* The cart link, top right of each bridge page */
.cart-link {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.cart-link a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #7E4E32;
  color: #fff;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 20rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cart-count {
  background: #fff;
  color: #7E4E32;
  border-radius: 20rem;
  min-width: 1.3rem;
  padding: 0 0.3rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.3rem;
}

.cart-count[hidden] {
  display: none;
}

/* Cards: standard picks, the surprise pack, the builder */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.bridge-card {
  background: rgba(123, 182, 219, 0.82);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.bridge-card h3 {
  font-family: 'Fraunces', serif;
  color: #7E4E32;
  font-size: 1.2rem;
  margin: 0;
}

.bridge-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.bridge-pic {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 0.9rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.bridge-pic svg {
  width: 100%;
  height: auto;
  max-height: 110px;
}

.bridge-card .bridge-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bridge-price {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #7E4E32;
}

.bridge-price small {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #4a3020;
}

/* Form bits */
.bridge-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.bridge-field > label,
.bridge-field > .bridge-label {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7E4E32;
}

.bridge-field select,
.bridge-field input[type="number"],
.bridge-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(126, 78, 50, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #2b1d14;
}

.bridge-field textarea {
  resize: vertical;
  min-height: 3.2rem;
}

.bridge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.bridge-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.bridge-btn {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #7E4E32;
  background: #C4D5DD;
  border: 0;
  border-radius: 20rem;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.bridge-btn:hover {
  background: #d6eef9;
}

.bridge-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bridge-btn.dark {
  background: #7E4E32;
  color: #fff;
}

.bridge-btn.dark:hover {
  background: #93603f;
}

.bridge-btn.plain {
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

.bridge-added {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8rem;
  color: #2f5a2a;
  min-height: 1.1em;
  margin: 0;
}

/* The 3-for-15% offer */
.bridge-promo {
  text-align: center;
  background: #7E4E32;
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 1.25rem auto 2rem;
  max-width: 640px;
  font-size: 1rem !important;
  line-height: 1.5;
}

.bridge-promo strong {
  font-family: 'Fraunces', serif;
  font-size: 1.1em;
}

.bridge-promo.small {
  margin: 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem !important;
  background: rgba(255, 255, 255, 0.7);
  color: #7E4E32;
}

.bridge-bundle {
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* The builder */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.builder-view {
  position: sticky;
  top: 3.5rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 0.75rem 0.75rem 1rem;
}

.builder-view canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  cursor: grab;
}

.builder-view canvas:active {
  cursor: grabbing;
}

/* The 3D view with arrows either side to step through the models */
.builder-stage {
  position: relative;
}

.builder-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #7E4E32;
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  line-height: 1;
  padding: 0 0 0.2rem;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s;
}

.builder-arrow:hover {
  background: #fff;
}

.builder-arrow.prev {
  left: 0;
}

.builder-arrow.next {
  right: 0;
}

.builder-model {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: #7E4E32;
  font-size: 1.05rem !important;
  margin: 0.2rem 0 0;
}

.builder-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.6rem;
}

.builder-hint {
  text-align: center;
  font-size: 0.8rem !important;
  font-style: italic;
  line-height: 1.6;
  margin: 1.1rem 0.75rem 0.6rem;
}

.builder-form {
  background: rgba(123, 182, 219, 0.82);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.builder-problem {
  background: #fbeee6;
  border-left: 4px solid #7a2e1a;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  margin: 0;
}

.builder-problem[hidden],
.builder-extra[hidden] {
  display: none;
}

.slot-widths {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
}

.slot-widths label {
  font-size: 0.7rem;
  text-align: center;
}

.slot-widths input {
  padding: 0.35rem 0.2rem !important;
  text-align: center;
}

.builder-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(126, 78, 50, 0.25);
  padding-top: 0.75rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(126, 78, 50, 0.35);
  border-radius: 20rem;
  background: #fff;
  overflow: hidden;
}

.qty button {
  border: 0;
  background: transparent;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  color: #7E4E32;
  cursor: pointer;
}

.qty span {
  min-width: 1.6rem;
  text-align: center;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
}

/* The cart */
.cart-lines {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-line {
  text-align: left;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: rgba(123, 182, 219, 0.82);
  border-radius: 14px;
  padding: 0.8rem;
}

.cart-line img,
.cart-line .bridge-pic {
  width: 150px;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  display: block;
  box-sizing: border-box;
}

.cart-line h3 {
  font-family: 'Fraunces', serif;
  color: #7E4E32;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.cart-line p {
  text-align: left;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.cart-remove {
  background: none;
  border: 0;
  color: #7a2e1a;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-totals {
  margin-left: auto;
  max-width: 360px;
  font-family: 'Libre Franklin', sans-serif;
}

.cart-totals div {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.cart-totals .grand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #7E4E32;
  border-top: 1px solid rgba(126, 78, 50, 0.3);
  margin-top: 0.3rem;
  padding-top: 0.5rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 2rem 0;
}

@media only screen and (max-width: 800px) {
  .builder {
    grid-template-columns: 1fr;
  }

  .builder-view {
    position: static;
  }

  .cart-line {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cart-line img,
  .cart-line .bridge-pic {
    width: 96px;
  }

  .cart-line-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---- Streamlined layout (bridges.html, 2026-12-03): fewer boxes, quieter type ---- */

.bridge-page {
  position: relative;
}

/* The cart: one place, top right of the page (not following the scroll) */
.cart-link {
  position: absolute;
  top: -4.2rem;
  right: 1.25rem;
  display: block;
  pointer-events: auto;
}

.cart-link a {
  background: transparent;
  color: #7E4E32;
  border: 1px solid rgba(126, 78, 50, 0.45);
  box-shadow: none;
  font-weight: 600;
}

.cart-link a:hover {
  background: rgba(255, 255, 255, 0.5);
}

.cart-count {
  background: #7E4E32;
  color: #fff;
}

.bridge-lede {
  margin-bottom: 0.3rem;
}

/* The offers: a solid band under the intro */
.bridge-offer {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem !important;
  font-weight: 700;
  color: #fff;
  background: #7E4E32;
  border-radius: 12px;
  padding: 0.8rem 1.25rem;
  max-width: 720px;
  margin: 1rem auto 2.5rem;
  line-height: 1.5;
}

.bridge-offer .offer-ship {
  font-weight: 400;
}

.bridge-offer [hidden] {
  display: none !important;
}

.builder {
  gap: 2.5rem;
}

.builder-view {
  background: transparent;
  padding: 0;
}

.builder-model {
  margin-top: 0.4rem;
}

.builder-under {
  text-align: center;
  font-size: 0.8rem !important;
  color: #7a5a44;
  margin: 0.2rem 0 0;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #7E4E32;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.builder-arrow {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.builder-form {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(126, 78, 50, 0.12);
  padding: 1.4rem;
  gap: 1rem;
}

.bridge-field > label,
.bridge-field > .bridge-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #8a6248;
}

.bridge-field select,
.bridge-field input[type="number"],
.bridge-field textarea {
  border-color: rgba(126, 78, 50, 0.22);
}

.builder-more summary {
  cursor: pointer;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7E4E32;
  list-style: none;
}

.builder-more summary::-webkit-details-marker {
  display: none;
}

.builder-more summary::before {
  content: '+ ';
}

.builder-more[open] summary::before {
  content: '− ';
}

.builder-more-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.builder-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(126, 78, 50, 0.15);
  padding-top: 1rem;
}

.builder-note {
  text-align: center;
  font-size: 0.8rem !important;
  color: #7E4E32;
  margin: -0.3rem 0 0;
}

.bridge-page .bridge-small {
  font-size: 0.75rem !important;
  text-align: center;
  margin: 0;
}

/* The surprise pack: a quiet section under the builder, set off by a thin line */
.surprise {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(126, 78, 50, 0.2);
}

.surprise h2,
.surprise h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.surprise p {
  margin: 0;
  font-size: 0.85rem !important;
  line-height: 1.6;
}

.surprise-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
}

.surprise-opts select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(126, 78, 50, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #2b1d14;
}

.surprise-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 150px;
}

.surprise-buy .bridge-price small {
  display: block;
  text-align: right;
}

.surprise-buy .bridge-added {
  text-align: right;
  font-size: 0.75rem;
}

@media only screen and (max-width: 900px) {
  .surprise {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .surprise-buy {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .surprise-buy .bridge-added,
  .surprise-buy .builder-problem {
    flex-basis: 100%;
    text-align: left;
  }

  .surprise-buy .bridge-price small {
    text-align: left;
  }
}

@media only screen and (max-width: 600px) {
  .cart-link {
    top: -3.4rem;
  }
}

.bridge-added:empty {
  display: none;
}

/* The cart in the same light panels as the builder */
.cart-line {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(126, 78, 50, 0.12);
}

.cart-line img,
.cart-line .bridge-pic {
  background: rgba(255, 255, 255, 0.6);
}

.cart-line p {
  color: #4a3020;
}

.bridge-bundle {
  background: transparent;
  color: #7E4E32;
  font-size: 0.85rem !important;
}

/* (phones: the two offers on their own lines) */
@media only screen and (max-width: 600px) {
  .bridge-offer .offer-ship {
    display: block;
  }

  .bridge-offer .offer-sep {
    display: none;
  }
}

/* Builders and shops: a quiet line at the bottom */
.trade {
  text-align: center;
  font-size: 0.85rem !important;
  margin: 3rem 0 0;
  color: #4a3020;
}

.trade a {
  color: #7E4E32;
  font-weight: 700;
  text-underline-offset: 2px;
}

/* A label with a little "i" beside it, and the note it opens */
.label-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.label-row label {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6248;
}

.info-btn {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid rgba(126, 78, 50, 0.5);
  background: transparent;
  color: #7E4E32;
  font-family: 'Fraunces', serif;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.info-btn[aria-expanded="true"] {
  background: #7E4E32;
  color: #fff;
}

.bridge-page .info-text {
  font-size: 0.8rem !important;
  line-height: 1.55;
  margin: -0.4rem 0 0;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

/* (side-by-side choices line up along the bottom, even when one label has an "i") */
.bridge-row .bridge-field {
  justify-content: flex-end;
}

/* The offers, nicer (replaces the brown band): two side by side, a big word and a small line
   under each, a thin rule between, on the same light panel as the builder */
.bridge-offers {
  display: flex;
  justify-content: center;
  max-width: 560px;
  margin: 1.2rem auto 2.75rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(126, 78, 50, 0.15);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
}

.bridge-offers .offer {
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0 1rem;
  text-align: center;
}

.bridge-offers .offer + .offer {
  border-left: 1px solid rgba(126, 78, 50, 0.25);
}

.bridge-offers .offer[hidden] {
  display: none;
}

.bridge-offers strong {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #7E4E32;
  line-height: 1.2;
}

.bridge-offers span {
  font-size: 0.85rem;
  color: #4a3020;
}

@media only screen and (max-width: 600px) {
  .bridge-offers strong {
    font-size: 1.2rem;
  }

  .bridge-offers .offer {
    padding: 0 0.5rem;
  }
}

/* Dropdowns: room either side of the words, and our own small arrow (the browser's sat right
   against the text) */
.bridge-page select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.8rem !important;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237E4E32' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 11px 7px;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* (phones: side-by-side choices stack, so no dropdown's words get cut off) */
@media only screen and (max-width: 480px) {
  .bridge-page .bridge-row {
    grid-template-columns: 1fr;
  }

  .surprise-opts {
    grid-template-columns: 1fr;
  }
}

/* CAD | USD, next to the cart */
.cart-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.currency {
  display: inline-flex;
  border: 1px solid rgba(126, 78, 50, 0.45);
  border-radius: 20rem;
  overflow: hidden;
}

.currency button {
  border: 0;
  background: transparent;
  color: #7E4E32;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.currency button[aria-pressed="true"] {
  background: #7E4E32;
  color: #fff;
}

/* On phones, give these controls their own row below the page heading. */
@media only screen and (max-width: 600px) {
  .cart-link {
    position: static;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1.5rem;
  }

  .currency button {
    min-width: 52px;
    min-height: 44px;
  }

  .cart-link a {
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
  }
}

/* The cart's shipping address */
.ship-form {
  margin-top: 2.5rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(126, 78, 50, 0.12);
  border-radius: 16px;
}

.ship-form h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.ship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ship-grid .wide {
  grid-column: 1 / -1;
}

.bridge-field input[type="text"],
.bridge-field input[type="email"],
.bridge-field input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(126, 78, 50, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #2b1d14;
}

.ship-form .bridge-small {
  margin-top: 1rem !important;
  text-align: left;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media only screen and (max-width: 600px) {
  .ship-grid {
    grid-template-columns: 1fr;
  }
}

/* (the sample pack's torrified checkbox gets the whole row) */
.surprise-opts .bridge-check:last-child {
  grid-column: 1 / -1;
}

/* (more room between the builder and the sample pack) */
.surprise {
  margin-top: 5.5rem;
  padding-top: 3rem;
}

/* Each model's blurb, under its name beneath the 3D bridge */
.bridge-page .builder-blurb {
  text-align: center;
  max-width: 440px;
  margin: 0.35rem auto 0.4rem;
  font-size: 0.85rem !important;
  line-height: 1.55;
  color: #4a3020;
}

.bridge-page .builder-blurb:empty {
  display: none;
}

/* One sample-pack picker, with only the selected pack's explanation and options. */
.sample-packs {
  margin-top: 5.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(126, 78, 50, 0.2);
}

.sample-packs > h2 {
  margin: 0 0 1rem;
}

.sample-pack-picker {
  max-width: 28rem;
}

.sample-packs > .surprise {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}

.surprise h3 {
  font-family: 'Fraunces', serif;
  color: #7E4E32;
}

/* ---- Quieter, more refined (2026-12-04: "felt like an ad, not a luxury item") ---- */

/* The cart and currency: small text in one quiet row, top right; no pills or banners */
.bridge-page .cart-link {
  position: static;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.4rem;
  margin: -1.5rem 0 0.5rem;
  flex-wrap: nowrap;
}

.bridge-page .currency {
  border: 0;
  border-radius: 0;
  gap: 0.15rem;
}

.bridge-page .currency button,
.bridge-page .cart-link a {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #8a6248;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.35rem;
  min-height: 0;
  min-width: 0;
}

.bridge-page .currency button[aria-pressed="true"] {
  background: transparent;
  color: #4a3020;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bridge-page .cart-link a:hover {
  background: transparent;
  color: #4a3020;
}

.bridge-page .cart-count {
  background: #7E4E32;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0;
  margin-left: 0.25rem;
}

.bridge-page .bridge-lede {
  max-width: 520px;
  font-size: 1.05rem !important;
  line-height: 1.7;
  color: #4a3020;
  margin: 0 auto 2.5rem;
}

/* Under the bridge: wood, cap and hole as taps */
.look {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 2.2rem;
  margin: 1.4rem auto 0.4rem;
}

.look-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.look-group[hidden] {
  display: none;
}

.look-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6248;
}

.look-value {
  font-size: 0.78rem;
  color: #6a4a34;
  min-height: 1.1em;
}

.swatches {
  display: flex;
  gap: 0.7rem;
}

.swatch {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--wood);
  box-shadow: 0 0 0 1px rgba(126, 78, 50, 0.3);
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.15s;
}

.swatch[aria-checked="true"] {
  box-shadow: 0 0 0 2px #7E4E32;
}

.seg {
  display: inline-flex;
  border: 1px solid rgba(126, 78, 50, 0.35);
  border-radius: 20rem;
  overflow: hidden;
}

.seg button {
  border: 0;
  background: transparent;
  color: #7E4E32;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

.seg button[aria-checked="true"] {
  background: #7E4E32;
  color: #fff;
}

.builder-view .info-text {
  max-width: 440px;
  margin: 0.6rem auto 0;
}

@media only screen and (max-width: 600px) {
  .bridge-page .cart-link {
    margin: -0.5rem 0 1rem;
    justify-content: space-between;
  }

  .bridge-page .currency button,
  .bridge-page .cart-link a {
    padding: 0.7rem 0.4rem;   /* (still easy to tap) */
  }

  .look {
    gap: 1.2rem 1.6rem;
  }
}

/* ---- Sample packs page: each pack its own calm panel ---- */
.pack-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.pack-list .pack-card {
  margin: 0;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(126, 78, 50, 0.12);
  border-top: 1px solid rgba(126, 78, 50, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.pack-list .pack-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #7E4E32;
  margin: 0 0 0.5rem;
}

.pack-list .pack-card .surprise-text p {
  font-size: 0.9rem !important;
  line-height: 1.65;
}

.pack-list .surprise-opts {
  grid-template-columns: 1fr 1fr;
}

.pack-list .surprise-buy {
  align-self: center;
}

/* The quiet line on the bridge page that points to the packs */
.bridge-page .to-packs {
  text-align: center;
  font-size: 0.95rem !important;
  margin: 4.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(126, 78, 50, 0.2);
  max-width: 640px;
}

.bridge-page .to-packs a {
  color: #7E4E32;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media only screen and (max-width: 900px) {
  .pack-list .pack-card {
    grid-template-columns: 1fr;
    padding: 1.3rem;
  }

  .pack-list .surprise-buy {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media only screen and (max-width: 480px) {
  .pack-list .surprise-opts {
    grid-template-columns: 1fr;
  }
}

/* (on the packs page the list needs no rule or big gap above it) */
.sample-packs.pack-list {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: 0;
}

.sample-packs.pack-list > .surprise {
  margin-top: 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(126, 78, 50, 0.12);
}

/* Each pack's three bridges, side by side across the top of its panel */
.pack-pics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: -0.4rem 0 0.2rem;
}

.pack-pics figure {
  margin: 0;
  text-align: center;
}

.pack-pic {
  aspect-ratio: 520 / 300;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.pack-pic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pack-pics figcaption {
  margin-top: 0.35rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6248;
}

@media only screen and (max-width: 480px) {
  .pack-pics {
    gap: 0.4rem;
  }

  .pack-pics figcaption {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }
}

/* (the options in an open dropdown list: room either side and between them) */
.bridge-page select option {
  padding: 0.45rem 0.9rem;
}

/* The bridge page's sample-pack panel */
.packs-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 5rem;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(126, 78, 50, 0.12);
  border-radius: 16px;
}

.packs-teaser .pack-pics {
  margin: 0;
}

.packs-teaser figcaption {
  display: none;
}

.packs-teaser h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: #7E4E32;
  margin: 0 0 0.5rem;
}

.packs-teaser p {
  margin: 0 0 1.1rem;
  line-height: 1.65;
}

.bridge-page .trade {
  font-size: 0.82rem !important;
  color: #6a4a34;
  margin-top: 2rem;
}

@media only screen and (max-width: 800px) {
  .packs-teaser {
    grid-template-columns: 1fr;
    padding: 1.3rem;
    gap: 1.2rem;
    text-align: center;
  }
}

/* (the mixed pack's choices now have labels like the others) */
.pack-list #surprise-form .surprise-opts {
  align-items: end;
}

/* The price above the bridge - phones only (on a computer it's beside the bridge already) */
.price-top {
  display: none;
}

@media only screen and (max-width: 800px) {
  .bridge-page .price-top {
    display: block;
    text-align: center;
    font-family: 'Fraunces', serif;
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #7E4E32;
    margin: 0 0 -0.5rem;
  }

  .price-top small {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6a4a34;
  }
}

/* The chosen wood's line, under the swatches */
.bridge-page .wood-blurb {
  text-align: center;
  max-width: 440px;
  margin: 0.9rem auto 0;
  font-size: 0.85rem !important;
  font-style: italic;
  line-height: 1.55;
  color: #4a3020;
}

.bridge-page .wood-blurb:empty {
  display: none;
}

/* The site's phone menu (styles.css) has no layer of its own; on these pages the content is
   layered (for the cart row and the 3D view), so keep the menu on top of it. */
.mobile-menu {
  z-index: 100;
}

/* The custom-shape offer, between the sample packs and the wholesale line */
.bridge-page .custom-shape {
  text-align: center;
  max-width: 620px;
  margin: 2.5rem auto 0;
  font-size: 0.9rem !important;
  line-height: 1.65;
  color: #4a3020;
}

.bridge-page .custom-shape strong {
  font-family: 'Fraunces', serif;
  color: #7E4E32;
}

.bridge-page .custom-shape a {
  color: #7E4E32;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* "Now available to order." at the start of the intro */
.bridge-page .lede-new {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: #7E4E32;
}

/* Phones: the name above the price at the top; not repeated under the bridge */
.price-top .pt-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

@media only screen and (max-width: 800px) {
  .bridge-page .builder-model {
    display: none;
  }
}
