/* The cards at the top of an order page (components/order-top-cards.js), shared by order.html and me.html. */
/* Delivery access instructions (post-purchase form), placed right under the confetti
   hero so it reads as the most prominent thing on the page, ahead of the status track.
   Sits flush against the page (no nested card) since it already lives inside .order-card. */
.access-section { margin-bottom: 20px; }
.access-card { background: #FBEDE7; border-radius: 14px; padding: 18px 16px 16px; }
.access-card[hidden] { display: none; }
.access-heading { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 600; color: #7A3018; margin-bottom: 4px; }
.access-hint { font-size: 14px; color: #A3401F; line-height: 1.45; margin: 0 0 14px; }
.access-address {
  display: flex; align-items: flex-start; gap: 10px; background: #fff; border-radius: 10px;
  padding: 10px 12px; font-size: 15px; line-height: 1.35; color: #1A1208; margin-bottom: 14px;
}
.access-address svg { flex-shrink: 0; margin-top: 2px; color: #7A3018; }
.access-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.access-field label { font-size: 14px; font-weight: 500; color: #7A3018; }
.access-field input, .access-field textarea {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: #1A1208; background: #fff;
  border: 1px solid #E3D3CB; border-radius: 10px; padding: 12px 14px; outline: none; width: 100%; resize: vertical;
}
.access-field input:focus, .access-field textarea:focus { border-color: #D85A30; }
.access-phone-note { font-size: 13px; color: #A3401F; line-height: 1.4; margin: 2px 0 12px; }
.access-phone-note button { background: none; border: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.access-field input::placeholder, .access-field textarea::placeholder { color: #A8998F; }
.access-save-btn {
  display: block; width: 100%; background: #D85A30; color: #fff; border: none; border-radius: 99px;
  font-family: inherit; font-size: 16px; font-weight: 600; padding: 14px 18px; margin-top: 6px; cursor: pointer; transition: background 0.15s;
}
.access-save-btn:hover { background: #C24E27; }
.access-save-btn:disabled { opacity: 0.7; cursor: default; }
.access-save-status { display: block; font-size: 13px; color: #D85A30; text-align: center; margin-top: 8px; }
.access-save-status[hidden] { display: none; }
.access-skip { display: block; margin: 12px auto 0; background: none; border: none; padding: 0; font: inherit; font-size: 14px; color: #A3401F; cursor: pointer; }
.access-skip[hidden] { display: none; }
.phone-form { display: flex; align-items: stretch; gap: 12px; }
.phone-form input { flex: 1; min-width: 0; font-family: inherit; font-size: 15px; color: #1A1208; background: #fff; border: 1px solid #D9CFC7; border-radius: 10px; padding: 9px 12px; outline: none; }
.phone-form input:focus { border-color: #D85A30; }
.phone-save { background: #D85A30; color: #fff; border: none; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; cursor: pointer; }
.phone-card .phone-form { margin-top: 12px; }
.phone-card .phone-error { display: block; margin-top: 8px; font-size: 13px; color: #B24A26; }
.access-helper { margin: 0 0 12px; font-size: 13px; color: #6B5D54; }
.access-helper[hidden] { display: none; }
.access-field[hidden], .access-phone-error[hidden] { display: none; }
.access-phone-error { display: block; margin-top: 6px; font-size: 13px; color: #B24A26; }
.phone-save:disabled { opacity: 0.7; cursor: default; }
.phone-form[hidden] { display: none; }
.phone-card .phone-error[hidden] { display: none; }
.keep-playing-card { background: #fff; border: 1px solid #D9CFC7; border-radius: 14px; padding: 16px 18px 14px; }
.keep-playing-card[hidden] { display: none; }
.keep-playing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.keep-playing-title { font-size: 16px; font-weight: 600; color: #1A1208; }
.keep-playing-left { font-size: 14px; color: #6B5D54; white-space: nowrap; }
.kept-banner { display: flex; align-items: flex-start; gap: 10px; background: #D4EDD6; color: #2A5E34; border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.kept-banner[hidden] { display: none; }
.kept-banner svg { flex-shrink: 0; margin-top: 2px; }
.keep-playing-due { font-size: 13px; color: #6B5D54; line-height: 1.4; margin-top: 6px; }
.keep-playing-due[hidden] { display: none; }
.keep-playing-card.all-kept .keep-playing-bar, .keep-playing-card.all-kept .keep-playing-links { display: none; }
.keep-playing-bar { height: 6px; border-radius: 99px; background: #F5EFEA; margin: 12px 0 14px; overflow: hidden; }
.keep-playing-fill { display: block; height: 100%; border-radius: 99px; background: #C9613D; }
.keep-playing-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; }
.keep-playing-links a { color: #B24A26; text-decoration: none; }
.keep-playing-links a:hover { text-decoration: underline; }
.keep-playing-links a[hidden] { display: none; }
.next-stage-card {
  background: #FBEDE7; border-radius: 14px; padding: 14px 16px 16px; margin-bottom: 20px;
}
.next-stage-card[hidden] { display: none; }
.next-stage-heading { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 600; color: #7A3018; margin-bottom: 4px; }
.next-stage-hint { font-size: 14px; color: #A3401F; line-height: 1.4; margin-bottom: 10px; }
.next-stage-btn {
  display: block; text-align: center; background: #D85A30; color: #fff; font-weight: 600;
  font-size: 15px; padding: 12px 18px; border-radius: 99px; text-decoration: none; transition: background 0.15s;
}
.next-stage-btn:hover { background: #C24E27; }
.next-stage-direct { font-size: 14px; color: #6B5D54; text-align: center; margin: 12px 0 0; }
.next-stage-direct a { color: #1A1208; text-decoration: underline; }
.swap-next-card { background: #FBEDE7; border-radius: 14px; padding: 16px; }
.swap-next-card[hidden], .swap-primary[hidden], .keep-toy-card[hidden] { display: none; }
.swap-next-head { display: flex; align-items: flex-start; gap: 14px; }
.swap-next-icon { width: 64px; height: 64px; flex-shrink: 0; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #D85A30; overflow: hidden; }
.swap-next-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swap-next-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 600; color: #7A3018; margin-bottom: 4px; }
.swap-next-sub { font-size: 14px; color: #A3401F; line-height: 1.4; }
.swap-primary .next-stage-btn { margin-top: 14px; font-size: 16px; padding: 14px 18px; }
@media (min-width: 721px) {
  /* Desktop: the order button and the "See what's inside" link share a line. */
  .swap-actions { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
  .swap-actions .next-stage-btn { flex: 1; margin-top: 0; }
  .swap-actions .swap-inside { margin-top: 0; white-space: nowrap; }
}
.swap-inside { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: #7A3018; text-decoration: underline; }
.swap-other-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #A3401F; margin: 18px 0 2px; }
.swap-primary[hidden] + .swap-other-label { margin-top: 0; }
.swap-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 8px; text-decoration: none; color: #1A1208; }
.swap-option:hover { background: #FBF7F3; }
.swap-ordered-card { display: flex; align-items: center; gap: 14px; border: 1px solid #EAE0D8; border-radius: 14px; background: #fff; padding: 12px 14px; margin-bottom: 12px; }
.swap-ordered-card[hidden] { display: none; }
.swap-ordered-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 10px; background: #FBEDE7; color: #C4623F; display: flex; align-items: center; justify-content: center; }
.swap-ordered-main { flex: 1; min-width: 0; }
.swap-ordered-title { font-size: 15px; font-weight: 600; color: #1A1208; }
.swap-ordered-sub { font-size: 14px; color: #6B5D54; }
.swap-ordered-link { flex-shrink: 0; color: #A3401F; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.swap-ordered-pill { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: #D4E5CF; color: #1F4D2A; font-size: 13px; font-weight: 600; vertical-align: 2px; }
.swap-return-changewrap { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.swap-return-until { font-size: 13px; opacity: 0.8; }
.swap-ready-card { background: #F4E4DC; border-radius: 20px; padding: 20px; margin-bottom: 12px; }
.swap-ready-card[hidden], .swap-links[hidden] { display: none; }
.swap-ready-title { font-size: 20px; font-weight: 700; color: #7A2E12; margin: 0 0 14px; }
.swap-ready-step { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 16px; line-height: 1.4; color: #3A2A20; cursor: pointer; }
.swap-ready-step input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; accent-color: #B24A26; cursor: pointer; }
.swap-ready-help { margin: 8px 0 0; font-size: 14px; color: #6B5D54; }
.swap-ready-help a { color: #B24A26; }
.swap-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0 8px; font-size: 15px; font-weight: 500; }
.swap-links a { color: #B24A26; text-decoration: none; }
.swap-links a:hover { text-decoration: underline; }
.swap-return-card + .swap-ordered-card, .swap-return-card[hidden] + .swap-ordered-card { margin-top: 12px; }
.swap-return-card { background: #D4E5CF; border: 1px solid #A9C7AD; border-radius: 14px; padding: 16px; color: #1F4D2A; }
.swap-return-card[hidden] { display: none; }
.swap-return-booked { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #A9C7AD; font-size: 14px; line-height: 1.45; }
.swap-return-booked a { color: inherit; font-weight: 700; }
.swap-return-head { display: flex; align-items: flex-start; gap: 12px; }
.swap-return-head svg { flex-shrink: 0; margin-top: 1px; }
.swap-return-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.swap-return-change { color: #1F4D2A; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.swap-return-lines { margin: 4px 0 0 36px; font-size: 14px; line-height: 1.45; }
.swap-return-lines a { color: #1F4D2A; text-decoration: underline; text-underline-offset: 2px; }
.swap-return-notes { margin-top: 8px; }
.swap-return-notes .swap-return-change { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.swap-notes-form input, .swap-notes-form textarea { display: block; width: 100%; margin: 0 0 6px; padding: 8px 10px; border: 1px solid #A9C7AD; border-radius: 8px; background: rgba(255, 255, 255, 0.55); font: inherit; font-size: 14px; color: #1F4D2A; box-sizing: border-box; }
.swap-notes-form input:focus, .swap-notes-form textarea:focus { background: rgba(255, 255, 255, 0.85); outline: none; border-color: #1F4D2A; }
.swap-return-note-long { opacity: 0.8; font-size: 13px; }
.swap-notes-row { display: grid; grid-template-columns: 1fr 56px 90px; gap: 6px; }
.swap-notes-row input { margin-bottom: 6px; }
.swap-notes-error { margin: 0 0 6px; font-size: 13px; color: #8A1C14; }
.swap-notes-actions { display: flex; align-items: center; gap: 14px; }
.swap-notes-save { padding: 7px 18px; border: 0; border-radius: 99px; background: #1F4D2A; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.swap-notes-save:disabled { opacity: 0.7; cursor: default; }
.swap-return-card.is-soon { background: #FBE9BD; border-color: #E8C566; color: #6B4200; }
.swap-return-card.is-soon .swap-return-change, .swap-return-card.is-soon .swap-return-lines a { color: #6B4200; }
.swap-return-badge { display: inline-block; margin: 2px 0 4px; padding: 3px 10px; border-radius: 99px; background: rgba(31, 77, 42, 0.14); color: #1F4D2A; font-size: 13px; font-weight: 600; }
.swap-return-under-badge { padding-left: 10px; }
.swap-return-badge.is-soon { background: #FBE3A8; color: #6B4200; }
.swap-return-where { margin-top: 8px; }
.swap-return-lines span.swap-return-addr { text-decoration: underline dotted; text-decoration-color: rgba(31, 77, 42, 0.45); text-underline-offset: 3px; }
.swap-return-lines a.swap-return-addr { text-decoration: underline dotted; text-decoration-color: rgba(31, 77, 42, 0.45); text-underline-offset: 3px; }
.swap-return-lines .swap-return-links { margin-top: 6px; }
.swap-more-time { margin: 10px 2px 0; font-size: 13px; line-height: 1.4; color: #6B5D54; }
.swap-more-time a { color: #B24A26; text-decoration: underline; text-underline-offset: 2px; }
.swap-option-title { font-size: 15px; font-weight: 500; }
.swap-option-sub { font-size: 13px; color: #6B5D54; margin-top: 2px; }
.keep-toy-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #EAE0D8; border-radius: 14px; background: #fff; padding: 12px 14px; }
.keep-toy-btn { flex-shrink: 0; background: #fff; color: #B24A26; border: 1px solid #D85A30; border-radius: 99px; padding: 8px 16px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.keep-toy-btn:hover { background: #FBEDE7; }
#returned-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
#returned-top:empty { display: none; }
#returned-top > * { margin-bottom: 0; }
.next-box-card[hidden] { display: none; }
.next-box-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #EAE0D8; border-radius: 14px; background: #fff; padding: 11px 14px;
  text-decoration: none; color: #1A1208;
}
.next-box-card:hover { background: #FBF7F3; }
.next-box-card-title { font-size: 15px; font-weight: 600; }
.next-box-card-sub { font-size: 13px; color: #6B5D54; margin-top: 2px; }
/* Desktop: the next-stage card runs as a row, with its button on the right of the copy. */
@media (min-width: 641px) {
  .next-stage-card { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; padding: 18px 22px; }
  .next-stage-card[hidden] { display: none; }
  .next-stage-card .next-stage-heading { grid-column: 1; grid-row: 1; }
  .next-stage-card .next-stage-hint { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .next-stage-card .next-stage-btn { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; padding: 12px 26px; }
}
.swap-gallery { position: fixed; inset: 0; z-index: 9700; display: flex; align-items: center; justify-content: center; padding: 20px; }
.swap-gallery[hidden] { display: none; }
.swap-gallery-backdrop { position: absolute; inset: 0; background: rgba(26, 18, 8, 0.6); }
.swap-gallery-stage { position: relative; max-width: min(92vw, 720px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.swap-gallery-img { display: block; max-width: 100%; max-height: calc(88vh - 40px); border-radius: 12px; background: #FFFFFF; box-shadow: 0 24px 64px rgba(26, 18, 8, 0.3); touch-action: pan-y; }
.swap-gallery-count { color: #FFFFFF; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.swap-gallery-btn {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: none; background: #FFFFFF; color: #1A1208;
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(26, 18, 8, 0.25);
}
.swap-gallery-btn:hover { background: #F5EDE8; }
.swap-gallery-btn:focus-visible { outline: 2px solid #E8795C; outline-offset: 2px; }
.swap-gallery-btn[hidden] { display: none; }
.swap-gallery-prev { left: 10px; top: calc(50% - 34px); }
.swap-gallery-next { right: 10px; top: calc(50% - 34px); }
.swap-gallery-close { top: 10px; right: 10px; width: 36px; height: 36px; }
@media (min-width: 900px) {
  .swap-gallery-prev { left: -60px; }
  .swap-gallery-next { right: -60px; }
}

/* Take it home today (OrderPageLogic.takeHomeHtml): the counter card in the shop's green, when it goes back, and the
   calendar file. The same on the order page and /me. */
.take-home { display: grid; gap: 14px; margin-top: 18px; text-align: left; }
.take-home[hidden] { display: none; }
.take-home-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 20px; border-radius: 18px; background: #2F4A3A; color: #FFFFFF; text-align: center; }
.take-home-paid { font-size: 15px; }
.take-home-number { font-size: 32px; font-weight: 700; letter-spacing: 0.04em; }
.take-home-box { font-size: 16px; }
.take-home-who { font-size: 14px; color: #CFE0D4; }
.take-home-return { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid #E6DED3; border-radius: 14px; background: #FFFFFF; color: #716157; }
.take-home-return svg { flex: none; margin-top: 2px; }
.take-home-return div { display: grid; gap: 2px; font-size: 14px; }
.take-home-return strong { font-size: 15px; font-weight: 600; color: #2B2520; }
.take-home-cal { display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid #B4482A; border-radius: 999px; color: #B4482A; font-size: 16px; font-weight: 600; text-decoration: none; }
