/* ============================================================
   IC LINKS CO — Subscription builder
   ============================================================ */

/* Description sits on its own line under the bold term, so every description
   starts at the same left edge regardless of how long the term is. */
.subscribe-checklist li { align-items: flex-start; }
.subscribe-checklist li > div { display: flex; flex-direction: column; gap: 0.2rem; }
.subscribe-checklist b { color: var(--charcoal); }
.subscribe-checklist p { margin: 0; font-size: 0.95rem; color: var(--charcoal-mid); line-height: 1.65; }

.subscribe-options { display: flex; gap: 1.5rem; flex-wrap: wrap; max-width: 480px; margin: 1.5rem auto 0; }
.subscribe-options .form-group { flex: 1; min-width: 180px; margin: 0; }

.subscribe-color-mode { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.subscribe-radio { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); cursor: pointer; }
.subscribe-radio input { width: auto; }

.subscribe-mixed-colors { display: flex; flex-direction: column; gap: 0.85rem; max-width: 480px; }
.subscribe-mixed-colors .form-group { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; }
.subscribe-mixed-colors .form-group label { flex-shrink: 0; margin: 0; }
.subscribe-mixed-colors .form-group select { max-width: 200px; }

/* Builder steps — a task-oriented flow, not a scroll-story landing page, so
   it gets its own much tighter rhythm than the site's default 6rem section
   padding + 3.5rem header margin (which reads fine for a homepage, but made
   four steps in a row feel like four unrelated page sections). A numbered
   circle + connecting line (classic checkout-wizard styling) threads the
   steps together visually, continuing right through the alternating
   section backgrounds since the line lives at a fixed offset inside each
   step's .container rather than depending on the background color. */
.builder-step { padding: 2.75rem 0; }
.builder-step .section-header { margin-bottom: 2rem; }
.builder-step .container { position: relative; }
.builder-step-header { display: flex; gap: 1.5rem; align-items: flex-start; }
.builder-step-num {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--plum); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(71,22,62,0.28);
}
.builder-step-header .eyebrow { margin-bottom: 0.3rem; }
.builder-step .container::before {
  content: ''; position: absolute; z-index: 0;
  left: 24px; top: 0; bottom: 0; width: 2px; background: var(--border);
}
.builder-step-first .container::before { top: calc(2.75rem + 24px); }
.builder-step-last .container::before { bottom: calc(2.75rem + 24px); }

.subscribe-pick { cursor: pointer; transition: var(--trans); }
.subscribe-pick.is-selected, .charm-grid .charm-card.is-selected { border-color: var(--rose); box-shadow: 0 10px 26px rgba(185,154,151,0.18); }
.subscribe-pick .charm-foot .btn { pointer-events: none; }

/* Step 1 — Bracelet vs. Necklace is the first, foundational choice of the
   whole Journey, so it gets more visual weight than a generic charm-grid
   tile: fewer, bigger cards instead of the 3-up grid used for small charms. */
#bracelet-grid.charm-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
#bracelet-grid .charm-emblem { height: 260px; position: relative; }
/* "How to open your bracelet" corner link (Bracelet card only, see pickCard()
   in js/subscribe.js) — opens the reused shop.css lightbox. */
.charm-card-info {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,0.92); color: var(--plum-dark); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--trans); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.charm-card-info:hover { background: var(--white); color: var(--rose-dark); transform: scale(1.08); }
.charm-card-info svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  #bracelet-grid.charm-grid { grid-template-columns: 1fr; }
}

/* Step 2 — a single included spacer, shown as one centered preview card
   rather than stretched across a 3-up grid meant for multiple choices. */
.charm-grid-single { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
.charm-grid-single .charm-emblem { height: 200px; }

/* Step 4 — add-ons: at most the opposite jewelry piece + Bracelet Buddy right
   now, so the same fewer-bigger-cards treatment as Step 1 fits better than
   the 3-up grid. */
#addon-grid.charm-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
/* Add-on photos (e.g. Bracelet Buddy's supplier shots) are often tall
   portrait images, not the landscape-ish product shots the rest of the
   site's photos tend to be -- the site-wide full-bleed object-fit: cover
   (see .charm-emblem img in shop.css) was cropping out nearly all of a
   portrait photo to fill this short, wide box. contain shows the whole
   photo instead, letterboxed into the existing gradient background. */
#addon-grid .charm-emblem { height: 220px; position: relative; }
#addon-grid .charm-emblem img { object-fit: contain; padding: 10px; box-sizing: border-box; }
/* Prev/next buttons for browsing a product's photos (see the
   [data-addon-photo-nav] handler in js/subscribe.js) -- same corner-button
   look as .charm-card-info, just centered on each side instead. */
.charm-photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,0.92); color: var(--plum-dark); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--trans); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.charm-photo-nav:hover { background: var(--white); color: var(--rose-dark); transform: translateY(-50%) scale(1.08); }
.charm-photo-nav svg { width: 16px; height: 16px; }
.charm-photo-nav-prev { left: 8px; }
.charm-photo-nav-next { right: 8px; }
@media (max-width: 600px) {
  #addon-grid.charm-grid { grid-template-columns: 1fr; }
}
.addon-stepper { display: flex; align-items: center; gap: 0.6rem; }
.addon-step-btn {
  width: 28px; height: 28px; border-radius: 50%; padding: 0;
  border: 1.5px solid var(--border); color: var(--charcoal-mid); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; transition: var(--trans);
}
.addon-step-btn:hover:not(:disabled) { background: var(--plum); border-color: var(--plum); color: var(--white); }
.addon-step-btn:disabled { opacity: 0.3; cursor: default; }
.addon-step-count { min-width: 1.2em; text-align: center; font-family: var(--font-body); font-weight: 600; }

/* Step 3 — each collection gets its hero photo as a thumbnail so the order
   list reads visually, not just as names in a row. Sized up so the photo is
   actually recognizable, not a postage stamp. */
.subscribe-order-thumb {
  width: 76px; height: 76px; border-radius: var(--radius); flex-shrink: 0;
  overflow: hidden; background: linear-gradient(160deg, var(--ivory-dark), var(--ivory-deep));
}
.subscribe-order-thumb img { width: 100%; height: 100%; object-fit: cover; }

.subscribe-order-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 560px; }
.subscribe-order-row {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
}
.subscribe-order-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--plum-mist); color: var(--plum-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.subscribe-order-grip {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0; color: var(--charcoal-light);
  transition: color var(--trans);
}
.subscribe-order-grip svg { width: 100%; height: 100%; }
.subscribe-order-row:hover .subscribe-order-grip { color: var(--rose-dark); }
.subscribe-order-name { flex: 1; font-family: var(--font-display); font-size: 1.2rem; }
.subscribe-order-arrows { display: flex; gap: 0.4rem; }
.subscribe-order-arrows button {
  width: 32px; height: 32px; border-radius: var(--radius);
  border: 1.5px solid var(--border); color: var(--charcoal-mid);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.subscribe-order-arrows button:hover:not(:disabled) { background: var(--plum); border-color: var(--plum); color: var(--white); }
.subscribe-order-arrows button:disabled { opacity: 0.3; cursor: default; }

/* Drag-and-drop reordering (see js/drag-list.js) — the grip icon, thumbnail,
   and name are all grab points (a bigger, more obvious target than just the
   numbered circle used to be). Arrow buttons stay as an accessible/keyboard
   fallback for anyone who can't drag. */
[data-drag-handle] { cursor: grab; touch-action: none; }
.subscribe-order-row.is-dragging { opacity: 0.55; box-shadow: 0 14px 30px rgba(0,0,0,0.14); cursor: grabbing; }
.subscribe-order-row.is-dragging [data-drag-handle] { cursor: grabbing; }
.subscribe-order-list.is-reordering .subscribe-order-row:not(.is-dragging) { transition: transform 0.15s ease; }
.subscribe-order-row.is-locked { opacity: 0.55; background: var(--bg, #f8f6f3); }
.subscribe-order-row.is-locked [data-drag-handle] { cursor: default; }

/* "My Journey" summary (account.html) -- was a few loose <div class="mb-2">
   blocks with inline <br>s, which read as fragmented. Now a single bordered
   strip of labeled stats, with the chapter-progress line set off below its
   own divider. */
.journey-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.journey-summary-grid { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.journey-stat { display: flex; flex-direction: column; gap: 0.3rem; min-width: 110px; }
.journey-stat-label {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal-light);
}
.journey-stat-value { font-family: var(--font-display); font-size: 1.05rem; color: var(--charcoal); line-height: 1.3; }
.journey-progress {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem;
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--charcoal-mid);
}
.journey-progress strong { color: var(--plum-dark); }
.journey-progress-note { color: var(--charcoal-light); font-size: 0.78rem; }

/* Account portal reorder list — reuses the same .collection-card/.collection-top/
   .collection-body/.collection-includes styling as the public collections.html
   grid (see home.css) so the customer sees the same photo + theme + what's-
   included preview while choosing how their remaining chapters ship, not just
   a name in a bar. */
.acct-collection-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: 900px; gap: 1.5rem;
  /* stretch (the grid default) so both cards in a row match height even
     when their theme text/includes-row wrap differently -- .collection-card
     is already display:flex/column and .collection-body already flex:1
     (see home.css), so the stretched height just distributes into the
     body instead of leaving the shorter card visibly jagged. */
  align-items: stretch;
}
@media (max-width: 640px) {
  .acct-collection-list { grid-template-columns: 1fr; }
}
.acct-collection-card { position: relative; }
/* Sized by the artwork's own 3:2 ratio rather than a fixed pixel height. Every
   collection hero is 1536x1024, so a fixed height cropped a different amount at
   every card width -- worst at the single-column breakpoint, where a full-width
   card against a 280px band cut roughly a quarter off the top and bottom.
   aspect-ratio keeps the whole image visible at every width. min-height keeps
   the fallback line-art icon from collapsing when a collection has no photo. */
.acct-collection-card .collection-top {
  position: relative; aspect-ratio: 3 / 2; min-height: 180px;
}
.acct-collection-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--plum-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.acct-collection-card .collection-top[data-drag-handle] { cursor: grab; touch-action: none; }
.acct-collection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.acct-collection-heading h3 { margin: 0; }
.acct-collection-card.is-locked { opacity: 0.6; }
.acct-collection-card.is-locked .collection-top { filter: grayscale(0.2); }
.acct-collection-card.is-locked:hover { transform: none; box-shadow: none; }
.acct-collection-card.is-dragging { opacity: 0.55; box-shadow: 0 14px 30px rgba(0,0,0,0.14); }
.acct-collection-card.is-dragging .collection-top { cursor: grabbing; }
.acct-collection-list.is-reordering .acct-collection-card:not(.is-dragging) { transition: transform 0.15s ease; }

/* Type-a-position control (click the "Ship #" field, type a number, Enter
   or tab away to commit) -- a faster alternative to nudging one spot at a
   time with the arrows, especially useful for a big jump ("send this to
   last"). Lives in the card body, not on the photo, so it never conflicts
   with the drag handle now on .collection-top. */
.acct-collection-controls { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.acct-collection-pos {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--charcoal-light);
}
.acct-collection-pos input {
  width: 2.4em; padding: 0.25rem 0.3rem; text-align: center;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--charcoal);
}
.acct-collection-pos input:focus { outline: none; border-color: var(--rose-dark); }
.acct-collection-pos input::-webkit-outer-spin-button,
.acct-collection-pos input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.acct-collection-pos input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.subscribe-summary {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-soft);
}
/* Inline sign-in/create-account, shown only if Check Out is clicked signed
   out (see the click handler in js/subscribe.js) -- reuses account.html's
   .auth-tabs/.auth-tab styling from css/pages.css, already linked here. */
.checkout-auth { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.checkout-auth-lead { font-size: 0.92rem; color: var(--charcoal-mid); margin-bottom: 1rem; text-align: center; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--charcoal-mid); padding: 0.4rem 0; }
.subscribe-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border); margin-top: 0.75rem; padding-top: 0.75rem;
  font-family: var(--font-display); font-size: 1.15rem;
}


/* ── Collection charm preview modal (js/collection-preview.js) ────────────
   Opened by clicking a collection in either reorder list (the account
   portal's subscription list, redeem.html's Step 3). A modal rather than a
   link out to collections/<slug>.html because both callers hold unsaved
   state -- an unsaved reorder, or a whole in-progress redemption. */
.cp-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(38, 32, 36, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.cp-overlay[hidden] { display: none; }
.cp-modal {
  position: relative; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden;
  width: 100%; max-width: 680px; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.cp-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); color: var(--charcoal);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.cp-close:hover { background: var(--white); }
.cp-content { overflow-y: auto; }
.cp-head {
  aspect-ratio: 3 / 2; flex-shrink: 0;
  /* Cap it so the picture can't eat the whole modal on a short window and push
     the charms below the fold. */
  max-height: 42vh;
  display: flex; align-items: center; justify-content: center;
}
.cp-head img { width: 100%; height: 100%; object-fit: cover; }
.cp-head svg { width: 72px; height: 72px; color: rgba(255, 255, 255, 0.95); stroke-width: 1.3; }
.cp-body { padding: 1.6rem 1.75rem 2rem; }
.cp-body h3 { margin: 0.35rem 0 0.6rem; }
.cp-story { font-size: 0.92rem; color: var(--charcoal-mid); margin-bottom: 1.4rem; }
.cp-charms { display: flex; flex-direction: column; gap: 1.1rem; }
.cp-charm {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.cp-charms .cp-charm:first-child { padding-top: 0; border-top: none; }
.cp-card-row { margin-top: 1.1rem; }
.cp-charm-photo {
  width: 92px; height: 92px; flex-shrink: 0; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--plum-mist); color: var(--plum-dark);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.cp-charm-photo img { width: 100%; height: 100%; object-fit: cover; }
.cp-charm-photo svg { width: 34px; height: 34px; stroke-width: 1.3; }
.cp-charm-body { flex: 1; min-width: 0; }
.cp-charm-body h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.cp-charm-body p { font-size: 0.86rem; color: var(--charcoal-mid); margin: 0; }
.cp-words { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.cp-words span {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--plum-dark); background: var(--plum-mist);
  padding: 0.2rem 0.55rem; border-radius: var(--radius-pill);
}
@media (max-width: 560px) {
  .cp-overlay { padding: 0; }
  .cp-modal { max-height: 100vh; border-radius: 0; }
  .cp-body { padding: 1.25rem 1.25rem 1.75rem; }
  .cp-charm-photo { width: 68px; height: 68px; }
}

/* The click affordance on a reorder card -- the whole card body is clickable
   (see js/collection-preview.js), this just makes that discoverable. */
.acct-collection-view {
  align-self: flex-start; background: none; border: none; padding: 0;
  cursor: pointer; font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.03em; color: var(--rose-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.acct-collection-view:hover { color: var(--plum-dark); }
.acct-collection-card { cursor: pointer; }

/* ── Packaging revamp (2026-09) ──
   .pricing-grid-tri lives in css/pages.css alongside .pricing-grid itself,
   since how-it-works.html needs it too and doesn't load this file. */

/* Pay in Full's delivery choice — its own step, shown only while that package
   is selected. Same price either way, so it's a delivery decision rather than a
   fourth package. */
.plan-shipping-choice {
  max-width: 620px; margin: 0 auto; padding: 1.5rem 1.75rem; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white);
}
.plan-shipping-choice legend {
  padding: 0 0.5rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal-light);
}
.plan-shipping-choice .subscribe-radio { align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; line-height: 1.6; }
.plan-shipping-choice .subscribe-radio + .subscribe-radio { margin-top: 1rem; }
.plan-shipping-choice .subscribe-radio b { color: var(--charcoal); }
.plan-shipping-choice input { margin-top: 0.35rem; }

/* #site-nav is sticky at 94px, so a step scrolled to block:'start' would tuck
   its heading underneath it (see scrollToNextStep in js/subscribe.js). */
.builder-step { scroll-margin-top: 110px; }

/* Collection picker (Step 2) and the $29 add-more grid (Step 5). Both reuse
   .collection-card from css/home.css; these only add the selected state and
   the price/choose footer, which the public collections grid has no need for. */
#collection-grid .collection-card, #extra-collection-grid .collection-card { cursor: pointer; }
#collection-grid .collection-card.is-selected,
#extra-collection-grid .collection-card.is-selected {
  border-color: var(--rose); box-shadow: 0 10px 26px rgba(185,154,151,0.18);
}
.collection-pick-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: auto;
}
.collection-pick-foot .charm-price { font-family: var(--font-body); font-weight: 600; color: var(--charcoal); }
