/* Custom order page (template product.mcs-custom). Scoped to .mcc; shared theme styles stay untouched. */

.mcc {
  --fb-ink: #000;
  --fb-muted: #5f5f5f;
  --fb-line: #e3e3e3;
  --fb-soft: #f5f5f5;
  --fb-error: #b42318;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 96px;
  color: var(--fb-ink);
  line-height: 1.45;
}
.mcc *,
.mcc *::before,
.mcc *::after { box-sizing: border-box; }
.mcc [hidden] { display: none !important; }
.mcc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout: one column on phones, gallery + purchase column on desktop. */
.mcc-grid { display: block; }
.mcc-variants {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mcc-gallery { min-width: 0; }
.mcc-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin-top: 20px;
}

/* Gallery */
.mcc-hero-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.mcc-hero { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Previous / next arrows with the counter, centred under the main image (reference layout) */
.mcc-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
}
.mcc-gallery-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--fb-line);
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mcc-gallery-arrow:hover { border-color: #000; }
.mcc-image-count {
  min-width: 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.mcc-gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mcc-gallery-thumbs::-webkit-scrollbar { display: none; }
.mcc-thumb {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.mcc-thumb[aria-pressed="true"] { border-color: #000; box-shadow: 0 0 0 1px #000; }
.mcc-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Title and price */
/* Same sizes as the store's other product pages: title 20px on phones, 32px on desktop; price block 20/16/15 and 27/24/20 */
.mcc-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.mcc-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.mcc-price {
  --sale-price-font-size: 20px;
  --regular-price-font-size: 16px;
  --save-price-font-size: 15px;
}
.mcc-price-note { font-size: 13px; color: var(--fb-muted); }
/* 1px black divider under the offers box, like the store's product pages */
.mcc-divider { display: block; width: 100%; height: 1px; margin: 0; border: 0; background: #000; }
.mcc-error { margin: 0; font-size: 14px; color: var(--fb-error); }
.mcc-retry {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fb-ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Field labels and fieldsets */
.mcc-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.mcc-label {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.mcc-selected-style { font-weight: 400; margin-left: 6px; }

/* Style: image cards, twelve at first, black frame on the selected card (reference: hoodie product page) */
.mcc-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mcc-style-choice { position: relative; min-width: 0; }
.mcc-style-radio {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.mcc-style-label {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6px 6px 8px;
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}
.mcc-style-label:hover { border-color: #9a9a9a; }
.mcc-style-radio:checked + .mcc-style-label {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}
.mcc-style-radio:focus-visible + .mcc-style-label { outline: 2px solid #000; outline-offset: 2px; }
.mcc-style-image-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.mcc-style-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.mcc-style-name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mcc-show-all {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.mcc-show-all:hover { background: #f5f5f5; }

/* Size */
/* One normal row above the buttons: "Size" on the left, the small size guide link on the right (no overlap with the buttons) */
.mcc-size-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
.mcc-size-head .mcc-label { margin: 0; }
.mcc-selected-size { font-size: 13px; color: var(--fb-muted); }
.mcc-size-guide {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.mcc-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mcc-size-choice { position: relative; }
.mcc-size-choice label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mcc-size-radio {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.mcc-size-radio:checked + label { background: #000; border-color: #000; color: #fff; }
.mcc-size-radio:focus-visible + label { outline: 2px solid #000; outline-offset: 2px; }
.mcc-size-radio:disabled + label { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* Size guide dialog */
.mcc-dialog {
  width: min(960px, calc(100vw - 24px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--fb-ink);
  overflow: hidden;
}
.mcc-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.mcc-dialog[open] { display: flex; flex-direction: column; }
.mcc-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--fb-line);
}
.mcc-dialog-head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.mcc-dialog-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.mcc-size-dialog-body { padding: 16px 20px 20px; overflow-y: auto; }
.mcc-chart-name { margin: 0 0 12px; font-weight: 700; }
.mcc-chart { display: block; width: 100%; height: auto; margin-bottom: 12px; }
.mcc-chart-fallback { font-size: 14px; color: var(--fb-muted); }
.mcc-dialog-return {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Quantity: the shared quantity-input snippet provides the control itself */
.mcc-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mcc-quantity .mcc-label { margin: 0; }
.mcc-inventory:empty { display: none; }
.mcc-inventory { font-size: 13px; color: var(--fb-error); }

/* Purchase: store button classes are kept on purpose (see header comment) */
.mcc-purchase .product-form__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Payment icons and shipping / returns help: same layout as the store's other product pages */
.mcc-payment { margin-top: 28px; }
.mcc-payment img { display: block; max-width: 100%; height: auto; }
.mcc-help {
  margin: -2px 0 18px;
  padding: 0;
  color: #222;
  text-align: left;
  background: #fff;
}
.mcc-help-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #e5e5e5;
  background: transparent;
}
.mcc-help-item:last-of-type { border-bottom: 1px solid #e5e5e5; }
.mcc-help summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 46px;
  padding: 10px 0;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.mcc-help summary::-webkit-details-marker { display: none; }
.mcc-help summary::after { content: "+"; flex: 0 0 auto; font: 400 19px/1 Arial, sans-serif; }
.mcc-help details[open] > summary::after { content: "−"; }
.mcc-help summary:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.mcc-help-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mcc-help-emoji {
  flex: 0 0 20px;
  width: 20px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.mcc-help-answer { padding: 0 0 13px; color: #444; font-size: 14px; line-height: 1.6; text-align: left; }
.mcc-help-answer p { margin: 0 0 9px; font: inherit; }
.mcc-help a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.mcc-help-contact { margin: 13px 0 0; font-size: 14px; line-height: 1.6; }
.mcc-help-contact a { text-decoration: none; }
.mcc-help-contact a:hover { text-decoration: underline; }

/* Sticky purchase bar (phones only; the script also hides it while the add button is in view) */
.mcc-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fb-line);
  background: #fff;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.mcc-sticky-text { flex: 1 1 auto; min-width: 0; }
.mcc-sticky-style,
.mcc-sticky-price {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcc-sticky-style { font-size: 13px; font-weight: 700; }
.mcc-sticky-price { font-size: 13px; color: var(--fb-muted); }
.mcc-sticky-add {
  flex: 0 0 auto;
  min-width: 150px;
  min-height: 44px;
}

/* Tablet and desktop: four style cards per row */
@media (min-width: 640px) {
  .mcc-style-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 639px) {
  .mcc-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}
@media (min-width: 960px) {
  /* The store header's sub-nav sits over the top ~40px of the page, so start the product below it. */
  .mcc { padding: 48px 40px 56px; }
  .mcc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: start;
  }
  .mcc-gallery { position: sticky; top: 24px; }
  .mcc-info { margin-top: 0; gap: 22px; }
  .mcc-title { font-size: 32px; }
  .mcc-price {
    --sale-price-font-size: 27px;
    --regular-price-font-size: 24px;
    --save-price-font-size: 20px;
  }
  .mcc { padding-bottom: 56px; }
  .mcc-sticky { display: none !important; }
}

/* ==========================================================================
   Custom order look: warm ivory page, deep navy carries the page (title, selected states, buttons),
   champagne gold draws the fine lines and cranberry is kept for a few accents. Same palette as the product images.
   Buttons keep the store's own classes and only get recoloured.
   ========================================================================== */
.mcc {
  --cc-navy: #1c2333;
  --cc-navy-dark: #121827;
  --cc-navy-soft: #eef0f4;
  --cc-gold: #b8954f;
  --cc-gold-soft: rgba(184, 149, 79, 0.5);
  --cc-ivory: #f7f3ea;
  --cc-card: #fffdf8;
  --cc-line: #e4dccb;
  --cc-muted: #5b6272;
  --cc-berry: #8e2430;
  --cc-berry-dark: #731c27;
  --cc-serif: "Playfair Display", "Noto Serif", Georgia, "Times New Roman", serif;
  position: relative;
  isolation: isolate;
  color: var(--cc-navy);
}
html { background-color: #f7f3ea; }
body {
  background-color: #f7f3ea;
  background-image: radial-gradient(120% 640px at 50% 0%, rgba(28, 35, 51, 0.06), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 900px;
}
#MainContent .shopline-section { background: transparent !important; }

/* Gallery */
.mcc-hero-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(28, 35, 51, 0.84);
  color: var(--cc-ivory);
  font-size: 12px;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.mcc-hero-note[hidden] { display: none; }
.mcc-hero-wrap {
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(28, 35, 51, 0.08);
}
.mcc-gallery-arrow { border-color: var(--cc-navy); border-radius: 50%; background: var(--cc-navy); color: var(--cc-ivory); font-size: 20px; }
.mcc-gallery-arrow:hover { border-color: var(--cc-navy-dark); background: var(--cc-navy-dark); }
.mcc-image-count { color: var(--cc-navy); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; }
.mcc-thumb { border-color: var(--cc-line); border-radius: 8px; background: #fff; }
.mcc-thumb[aria-pressed="true"] { border-color: var(--cc-navy); box-shadow: 0 0 0 1px var(--cc-navy); }

/* Title, price, promise line, divider, labels */
.mcc .mcc-title {
  color: var(--cc-navy);
  font-family: var(--cc-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.mcc-price { color: var(--cc-navy); }
.mcc-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 0;
  padding: 0;
  list-style: none;
}
.mcc-promise li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  background: var(--cc-card);
  color: var(--cc-navy);
  font-size: 12.5px;
}
.mcc-promise li::before { content: "\2713"; color: var(--cc-gold); font-weight: 700; }
.mcc-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--cc-gold-soft) 15%, var(--cc-gold-soft) 85%, transparent);
}
.mcc-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cc-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mcc-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cc-navy);
  color: var(--cc-ivory);
  font-family: var(--cc-serif);
  font-size: 12px;
  /* Playfair defaults to old-style figures (3, 4 drop below the line), which sit low in the circle. */
  font-variant-numeric: lining-nums;
  line-height: 1;
  letter-spacing: 0;
}
.mcc-selected-style {
  margin-left: 2px;
  color: var(--cc-berry);
  font-family: var(--cc-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.mcc-quantity .mcc-label { letter-spacing: 0.16em; }

/* Style cards */
.mcc-style-label {
  position: relative;
  border-color: var(--cc-line);
  border-radius: 10px;
  background: var(--cc-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mcc-style-label:hover { border-color: var(--cc-gold); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28, 35, 51, 0.08); }
.mcc-style-image-wrap { background: #f2eee6; }
.mcc-style-name { color: var(--cc-navy); font-weight: 600; }
.mcc-style-from { display: block; margin-top: 2px; color: var(--cc-muted); font-size: 11.5px; }
.mcc-style-radio:checked + .mcc-style-label {
  border-color: var(--cc-navy);
  box-shadow: 0 0 0 1px var(--cc-navy), 0 10px 22px rgba(28, 35, 51, 0.12);
}
.mcc-style-radio:checked + .mcc-style-label::after {
  content: "\2713";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cc-navy);
  box-shadow: 0 0 0 2px #fff;
  color: var(--cc-ivory);
  font: 700 11px/20px Arial, sans-serif;
  text-align: center;
}
.mcc-style-radio:focus-visible + .mcc-style-label { outline-color: var(--cc-navy); }
.mcc-show-all {
  border: 1px solid var(--cc-navy);
  border-radius: 8px;
  background: transparent;
  color: var(--cc-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mcc-show-all:hover { background: var(--cc-navy); color: var(--cc-ivory); }

/* Sizes */
.mcc-size-choice label { border-color: #d9d0bc; border-radius: 8px; background: #fff; color: var(--cc-navy); font-weight: 600; }
.mcc-size-choice label:hover { border-color: var(--cc-navy); }
.mcc-size-radio:checked + label { background: var(--cc-navy); border-color: var(--cc-navy); color: var(--cc-ivory); }
.mcc-size-radio:focus-visible + label { outline-color: var(--cc-navy); }
.mcc-size-guide { color: var(--cc-navy); font-size: 12px; letter-spacing: 0.06em; }

/* Design choice: two cards with a short explanation and the fee */
.mcc-design-options { display: grid; gap: 10px; }
.mcc-design-choice { position: relative; }
.mcc-design-radio { position: absolute !important; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mcc-design-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: var(--cc-card);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mcc-design-label:hover { border-color: var(--cc-gold); }
.mcc-design-dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b9b1a0;
  border-radius: 50%;
  background: #fff;
}
.mcc-design-copy { flex: 1 1 auto; min-width: 0; }
.mcc-design-title { display: block; color: var(--cc-navy); font-size: 15px; font-weight: 700; }
.mcc-design-text { display: block; margin-top: 2px; color: var(--cc-muted); font-size: 13px; line-height: 1.4; }
.mcc-design-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cc-navy-soft);
  color: var(--cc-navy);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.mcc-design-radio:checked + .mcc-design-label { border-color: var(--cc-navy); box-shadow: 0 0 0 1px var(--cc-navy); }
.mcc-design-radio:checked + .mcc-design-label .mcc-design-dot { border: 6px solid var(--cc-navy); }
.mcc-design-radio:focus-visible + .mcc-design-label { outline: 2px solid var(--cc-navy); outline-offset: 2px; }

/* Estimated delivery (store app block, pink by default): a soft neutral note instead. */
.mcc .j-shopline-EstimatedDeliveryTime {
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background-color: var(--cc-card) !important;
  color: var(--cc-navy) !important;
}

/* Purchase buttons: store classes stay, only the colours change. Add to cart is navy, Buy now is cranberry. */
.mcc .mcc-add { background: var(--cc-navy); color: var(--cc-ivory); letter-spacing: 0.06em; }
.mcc .mcc-add::after { box-shadow: 0 0 0 1px var(--cc-navy); }
.mcc .mcc-add:not([disabled]):hover { background: var(--cc-navy-dark); color: var(--cc-ivory); }
.mcc .mcc-add[disabled] { background: #fff; color: #8a8a8a; }
.mcc .mcc-add[disabled]::after { box-shadow: 0 0 0 1px #d9d0bc; }
.mcc .pay-button-buy-now,
.mcc .shopline-payment-button-wrapper .btn-primary { background: var(--cc-berry); border-color: var(--cc-berry); color: #fff; }
.mcc .pay-button-buy-now::after { box-shadow: 0 0 0 1px var(--cc-berry), 0 0 0 1px var(--cc-berry); }
.mcc .pay-button-buy-now:hover { background: var(--cc-berry-dark); }
.mcc-after-note {
  margin: -8px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--cc-gold);
  border-radius: 0 8px 8px 0;
  background: var(--cc-card);
  color: var(--cc-muted);
  font-size: 13px;
  line-height: 1.5;
}
.mcc-after-note a { color: var(--cc-navy); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Price under the quantity */
.mcc-priceline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: -6px;
  padding-top: 12px;
  border-top: 1px solid var(--cc-line);
}
.mcc-priceline-label { color: var(--cc-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mcc-priceline-value { color: var(--cc-navy); font-size: 22px; font-weight: 700; line-height: 1.1; }

/* How it works */
.mcc-how {
  padding: 20px 18px 6px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: var(--cc-card);
}
.mcc-how-title { margin: 0 0 14px; color: var(--cc-navy); font-family: var(--cc-serif); font-size: 24px; font-weight: 500; }
.mcc-how-title em { color: var(--cc-berry); font-style: italic; }
.mcc-how-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.mcc-how-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 30px;
  left: 15px;
  width: 1px;
  background: repeating-linear-gradient(var(--cc-gold) 0 4px, transparent 4px 8px);
}
.mcc-how-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.mcc-how-no {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cc-navy);
  box-shadow: 0 0 0 4px var(--cc-card);
  color: var(--cc-ivory);
  font-family: var(--cc-serif);
  font-size: 15px;
  font-variant-numeric: lining-nums;
  line-height: 32px;
  text-align: center;
}
.mcc-how-steps b { display: block; color: var(--cc-navy); font-size: 14.5px; }
.mcc-how-steps li > span:last-child { color: var(--cc-muted); font-size: 13.5px; line-height: 1.45; padding-top: 5px; }

/* Payment, help accordion */
.mcc-payment { margin-top: 4px; padding: 8px; border: 1px solid var(--cc-line); border-radius: 8px; background: #fff; }
.mcc-help { background: transparent; color: #2b2b2b; }
.mcc-help-item { border-top-color: var(--cc-line); }
.mcc-help-item:last-of-type { border-bottom-color: var(--cc-line); }
.mcc-help summary { color: var(--cc-navy); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mcc-help summary::after { color: var(--cc-gold); }
.mcc-help-contact a { color: var(--cc-navy); }

/* Sticky bar on phones: navy with a gold hairline and an ivory button. */
.mcc-sticky { border-top: 1px solid var(--cc-gold-soft); background: var(--cc-navy); }
.mcc-sticky-style { color: var(--cc-ivory); font-family: var(--cc-serif); font-size: 14px; font-style: italic; font-weight: 400; }
.mcc-sticky-price { color: rgba(247, 243, 234, 0.72); }
.mcc .mcc-sticky-add { background: var(--cc-ivory); color: var(--cc-navy); letter-spacing: 0.05em; }
.mcc .mcc-sticky-add::after { box-shadow: 0 0 0 1px var(--cc-ivory); }
.mcc .mcc-sticky-add:hover { background: #fff; color: var(--cc-navy); }

/* Size guide dialog */
.mcc-dialog { border: 1px solid var(--cc-gold-soft); border-radius: 12px; background: var(--cc-ivory); }
.mcc-dialog-head { border-bottom: 1px solid var(--cc-line); }
.mcc-dialog-head h2 { color: var(--cc-navy); font-family: var(--cc-serif); font-weight: 500; }
.mcc-dialog-close { color: var(--cc-navy); }
.mcc-dialog-return { border-color: var(--cc-navy); border-radius: 8px; background: var(--cc-navy); color: var(--cc-ivory); }
.mcc-chart-fallback { font-size: 14px; line-height: 1.6; }

/* Size chart tables (data from the store's size chart app; see size_charts.py) */
.mcc-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mcc-chart-head .mcc-chart-name { margin: 0; color: var(--cc-navy); }
.mcc-units { display: inline-flex; flex: none; border: 1px solid var(--cc-navy); border-radius: 999px; overflow: hidden; }
.mcc-units[hidden] { display: none; }
.mcc-units button { min-width: 50px; min-height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--cc-navy); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; }
.mcc-units button[aria-pressed="true"] { background: var(--cc-navy); color: var(--cc-ivory); }
.mcc-chart-wrap { margin-bottom: 14px; border: 1px solid var(--cc-line); border-radius: 10px; background: #fff; overflow-x: auto; }
.mcc-chart-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; text-align: center; }
.mcc-chart-table caption { padding: 10px 12px 2px; color: var(--cc-navy); font-weight: 700; text-align: left; }
.mcc-chart-table th, .mcc-chart-table td { padding: 9px 8px; border-bottom: 1px solid var(--cc-line); white-space: nowrap; }
.mcc-chart-table thead th { background: #f6f2ea; color: var(--cc-navy); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mcc-chart-table tbody th { color: var(--cc-navy); font-weight: 700; }
.mcc-chart-table tbody tr:last-child > * { border-bottom: 0; }
.mcc-chart-table tr.is-selected > * { background: rgba(28, 35, 51, 0.09); }
@media (max-width: 639px) {
  /* Women's charts in cm have four range columns; tighter cells keep them on a 390px phone without scrolling. */
  .mcc-chart-table { font-size: 13px; }
  .mcc-chart-table th, .mcc-chart-table td { padding: 8px 4px; }
}

@media (min-width: 960px) {
  .mcc .mcc-title { font-size: 36px; }
  .mcc-design-options { grid-template-columns: 1fr 1fr; }
  .mcc-design-label { align-items: flex-start; flex-wrap: wrap; height: 100%; }
  .mcc-design-badge { margin-left: 34px; }
  .mcc-design-copy { flex-basis: calc(100% - 40px); }
}

/* The store's custom code adds a "Custom hero design – email us for a quote" block to every product page.
   This page takes payment first, so hide that block here only. */
#MainContent:has([data-mcs-custom]) > #mcs-nightmare-hero-design-product-recommendations { display: none; }

/* Thumbnails: centered when they fit, but when they scroll (Ugly Christmas has 7) the first ones must stay reachable;
   justify-content: center pushes them off the left edge where they cannot be scrolled to. */
.mcc-gallery-thumbs { justify-content: flex-start; }
.mcc-gallery-thumbs > :first-child { margin-left: auto; }
.mcc-gallery-thumbs > :last-child { margin-right: auto; }

/* Store-wide Black Friday box. Store custom code (mcsBlackFridayOffer) puts it under the price on every product page,
   black with gold; on this page it takes the page's own ivory, navy and gold look instead. Other pages are unchanged. */
.mcc .mcs-bfo {
  --bfo-gold-text: #87672c;  /* darker gold so small text stays readable on ivory */
  max-width: none;
  margin: 14px 0 18px;
  padding: 14px 16px 10px;
  border: 1px solid var(--cc-gold-soft);
  border-left: 3px solid var(--cc-berry);
  border-radius: 10px;
  background: var(--cc-card);
  color: var(--cc-navy);
  box-shadow: 0 6px 18px rgba(28, 35, 51, 0.05);
}
.mcc .mcs-bfo .mcs-bfo__h { margin-bottom: 4px; color: var(--cc-berry); font-size: 12.5px; letter-spacing: 0.14em; }
.mcc .mcs-bfo p { color: var(--cc-navy); }
.mcc .mcs-bfo summary { color: var(--bfo-gold-text); letter-spacing: 0.1em; }
.mcc .mcs-bfo summary:focus-visible { outline-color: var(--cc-navy); }
.mcc .mcs-bfo .mcs-bfo__rules ul { border-top-color: var(--cc-line); }
.mcc .mcs-bfo .mcs-bfo__rules li { border-bottom-color: var(--cc-line); color: var(--cc-navy); }
.mcc .mcs-bfo .mcs-bfo__rules li b { color: var(--cc-berry); }
.mcc .mcs-bfo .mcs-bfo__rules p { color: var(--cc-muted); }
.mcc .mcs-bfo .mcs-bfo__rules p.mcs-bfo__ship { margin: 10px 0 4px; padding: 8px 11px; border-radius: 8px; background: rgba(184, 149, 79, 0.13); color: var(--cc-navy); font-weight: 600; }
