/* ============================================================
   Keyami Designs — Mobile Responsive Overlay
   stylesheet/mobile_responsive.css
   
   This stylesheet retrofits the existing table-based layout
   for mobile WITHOUT requiring a markup rewrite. Include AFTER
   all other stylesheets in index.cfm so it cascades correctly.
   ============================================================ */

/* Base typography & body */
@viewport { width: device-width; zoom: 1.0; }

* { box-sizing: border-box; }

body, html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* CRITICAL FIX: Make all images fluid — but ONLY if they don't have an
   explicit height attribute. Inline height="50" should be respected.
   This was the root cause of the footer logo, diamond shapes, and
   menu icons blowing up to fill their parent. */
img:not([height]) { max-width: 100%; height: auto; }

/* Images WITH a height attribute: respect that height, just cap width
   so they don't overflow tiny screens horizontally. */
img[height] { max-width: 100%; }

/* Images WITH a width attribute but no height: keep auto height. */
img[width]:not([height]) { height: auto; }

/* Make all videos/iframes fluid */
iframe { max-width: 100%; }

/* ============================================================
   MOBILE BREAKPOINT — applies under 768px
   ============================================================ */
@media screen and (max-width: 768px) {

  /* Force all top-level fixed-width tables to be fluid */
  table[width],
  table[width="100%"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Cells stack on mobile when nested deeply.
     EXCEPT cells inside swatch / shape / size pickers which need to stay inline. */
  table table[width]:not([width="100%"]):not(.keep-row) td:not(.no-stack):not([class*="swatch"]):not([class*="subMenu"]) {
    display: block;
    width: 100% !important;
    text-align: center !important;
  }

  /* Single column nav header */
  td[width="45%"], td[width="50%"], td[width="60%"], td[width="40%"] {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
  }

  /* Header logo and menu */
  div[style*="position: fixed"][style*="z-index: 500"] {
    position: relative !important;
  }

  /* Hide the desktop side menu on mobile (use top menu instead) */
  td[width="20%"][valign="top"] {
    display: none !important;
  }

  /* Product detail page — stack image and info */
  table[border="0"] td[width="50%"][valign="top"] {
    display: block;
    width: 100% !important;
  }

  /* Product grid items shouldn't be 350px wide */
  div[style*="width: 350px"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    margin-bottom: 20px !important;
  }

  /* Cart slider should be full screen on mobile */
  div[id*="cart"][style*="width: 450"],
  div[id="loginview"] > div[style*="width: 450"] {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Make form inputs touch-friendly (44px min target) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important; /* prevents iOS zoom-on-focus */
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Buttons fluid + touch-friendly */
  input[type="submit"],
  input[type="button"],
  button,
  .cartbtn,
  .whitebtn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 14px !important;
    margin: 6px 0 !important;
    cursor: pointer;
  }

  /* Headings smaller on mobile */
  font[style*="font-size:26px"],
  font[style*="font-size: 26px"] {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  font[style*="font-size:24px"],
  font[style*="font-size: 24px"] {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  font[style*="font-size:22px"],
  font[style*="font-size: 22px"] {
    font-size: 18px !important;
  }

  /* Email popup full-width */
  div[id="email-pop"] table[width="850"] {
    width: 95% !important;
    margin: 0 auto !important;
  }
  div[id="email-pop"] table[width="850"] td[id="img"] {
    display: none !important;
  }

  /* Footer — stack columns, center */
  td[width="33%"], td[width="32%"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 0 !important;
  }

  /* Cart line items stack instead of squishing */
  table[width="100%"] tr[bgcolor="#bgcolor1#"] td {
    font-size: 14px !important;
  }

  /* Hide pop-ups on mobile entirely on first visit (annoyance reducer) */
  /* Comment out next line if you want the popup on mobile */
  div[id="email-pop"] { display: none !important; }
}

/* ============================================================
   SMALL PHONE — under 480px tighter spacing
   ============================================================ */
@media screen and (max-width: 480px) {
  body { font-size: 14px; }

  /* Reduce padding everywhere to maximize content area */
  table[cellpadding] td { padding: 4px !important; }

  /* Cart pgcounter title smaller */
  font[style*="font-size:26px"] { font-size: 20px !important; }
}

/* ============================================================
   TRUST SIGNAL BAR — used by insert_trust_signals.cfm
   ============================================================ */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 18px 12px;
  background: #f7f5f2;
  border-top: 1px solid #e8e4dd;
  border-bottom: 1px solid #e8e4dd;
  margin: 20px 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.trust-bar .trust-item {
  flex: 1 1 200px;
  text-align: center;
  padding: 10px;
  min-width: 140px;
}

.trust-bar .trust-icon {
  font-size: 24px;
  color: #6c225d;
  margin-bottom: 6px;
  display: block;
}

.trust-bar .trust-label {
  font-size: 13px;
  font-weight: 600;
  color: #2c2c2c;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  line-height: 1.3;
}

.trust-bar .trust-sub {
  font-size: 11px;
  color: #777;
  display: block;
  margin-top: 3px;
  line-height: 1.3;
}

@media screen and (max-width: 480px) {
  .trust-bar .trust-item { flex: 1 1 50%; padding: 8px; }
  .trust-bar .trust-icon { font-size: 20px; }
  .trust-bar .trust-label { font-size: 11px; }
}

/* ============================================================
   GUEST CHECKOUT FORM — clean, mobile-first
   ============================================================ */
.guest-checkout-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.guest-checkout-wrap h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e4dd;
  color: #2c2c2c;
}

.gc-row { margin-bottom: 14px; }

.gc-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

.gc-row input,
.gc-row select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.gc-row input:focus,
.gc-row select:focus {
  outline: none;
  border-color: #6c225d;
  box-shadow: 0 0 0 2px rgba(108, 34, 93, 0.15);
}

.gc-row.half { display: inline-block; width: 49%; }
.gc-row.half + .gc-row.half { margin-left: 1.5%; }

@media screen and (max-width: 480px) {
  .gc-row.half { display: block; width: 100%; margin-left: 0; }
}

.gc-secure-note {
  background: #f7f5f2;
  border-left: 3px solid #6c225d;
  padding: 10px 14px;
  font-size: 13px;
  margin: 16px 0;
  color: #555;
}

.gc-submit {
  width: 100%;
  padding: 16px;
  background: #a10000;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 16px;
}

.gc-submit:hover { background: #bc0606; }

.gc-create-account {
  background: #fff;
  border: 1px dashed #ccc;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 13px;
  border-radius: 4px;
}


/* ============================================================
   PHASE 3 — Visual fixes from user feedback
   ============================================================ */

/* ----------------------------------------------------------
   1. HEADER LOGO — make it visibly the brand, not a footnote
   The HTML says height="60" but renders at ~35px. Force size.
   ---------------------------------------------------------- */
img[src*="logo_black.png"],
img[name="logo"] {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
}

/* ----------------------------------------------------------
   2. FOOTER LOGO — keep it tight
   HTML says height="50" but renders at ~80px. Force size.
   ---------------------------------------------------------- */
img[src*="logo_white.png"] {
  height: 50px !important;
  width: auto !important;
  max-width: 250px !important;
}

/* ----------------------------------------------------------
   3. MENU DROPDOWN SHAPE ICONS — Shop By Shape
   HTML has height="25" but they render at ~75px. Force.
   ---------------------------------------------------------- */
img[src*="/shapes/"] {
  height: 25px !important;
  width: auto !important;
  max-width: 30px !important;
  flex: 0 0 auto;
}

/* The container divs inside subMenu cells. Prevent flex stretch. */
.subMenu div[style*="display: flex"] {
  align-items: center !important;
}

/* ----------------------------------------------------------
   4. HOMEPAGE DIAMOND SHAPES — kept reasonable size
   Source has height="200" originally; we override.
   ---------------------------------------------------------- */
img[src*="diamond_round.jpg"],
img[src*="diamond_princess.jpg"],
img[src*="diamond_oval.jpg"],
img[src*="diamond_pear.jpg"],
img[src*="diamond_emerald.jpg"],
img[src*="diamond_radiant.jpg"],
img[src*="diamond_heart.jpg"],
img[src*="diamond_marquise.jpg"],
img[src*="diamond_asscher.jpg"],
img[src*="diamond_cushion.jpg"] {
  max-height: 170px !important;
  width: auto !important;
}

/* ----------------------------------------------------------
   5. SUBCATEGORY FILTER ROW (top of search page)
   The product images have wildly different aspect ratios.
   Force them all into a uniform 110x110 box.
   ---------------------------------------------------------- */
td.tmenu > img,
td.tmenu img[src*="clevergem.com"] {
  height: 100px !important;
  width: 100px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
}

/* The subcategory tile cells themselves — uniform size, breathing room */
td[width="60"].tmenu {
  width: 130px !important;
  min-width: 130px !important;
  padding: 8px !important;
  vertical-align: top !important;
}

/* The subcategory row container */
td[width="60"].tmenu nobr {
  font-size: 12px;
  display: block;
  margin-top: 8px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}

/* ----------------------------------------------------------
   6. SEARCH RESULT CARDS — fix swatch hover image expansion
   The img tag has height="270" but no width. Force width too
   so swatch hovers don't grow the image.
   ---------------------------------------------------------- */
img[id^="imgs"] {
  height: 270px !important;
  width: 270px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Clamp the entire result card to a fixed height so swap doesn't
   reflow neighbors. */
div[style*="width: 350px"][style*="height: 480px"] {
  width: 350px !important;
  height: 480px !important;
  overflow: hidden;
}

/* ----------------------------------------------------------
   7. PRODUCT DETAIL — the gray block at the bottom
   This is the dot_gray.gif spacer rendered at 100% width.
   Force it to be invisible — it serves no real purpose. */
img[src*="dot_gray.gif"],
img[src*="dot_clear.gif"][height="1"] {
  height: 1px !important;
  width: 100% !important;
  display: block;
}

/* Be defensive: any 1x1 spacer-style gif should never balloon. */
img[src*=".gif"][height="1"] {
  height: 1px !important;
  max-width: 100%;
}

/* ----------------------------------------------------------
   8. PRODUCT DETAIL PAGE — fix the small image / whitespace
   ---------------------------------------------------------- */
#itemimg #itemImages > div {
  width: 100% !important;
  max-width: 600px;
}
#itemimg #itemImages > div > div {
  width: 100% !important;
  height: auto !important;
}
#itemimg #itemImages img:not([id^="imgs"]) {
  max-width: 100%;
  height: auto;
}

@media screen and (min-width: 769px) {
  #itemimg {
    width: 50% !important;
    max-width: 600px;
  }
  td#itemdata {
    width: auto !important;
    padding-left: 30px;
  }
}

/* ----------------------------------------------------------
   9. SEARCH SIDE FILTER — close the gray space
   ---------------------------------------------------------- */
#sidemenu, [id="sidemenu"] {
  vertical-align: top !important;
  padding-top: 0 !important;
}

@media screen and (min-width: 769px) {
  #sfilter, #sidemenu { vertical-align: top; }
}

/* ----------------------------------------------------------
   10. CART BADGE polish — empty state subtle
   ---------------------------------------------------------- */
#cartcount font[color="##5e5e5e"],
#cartcount font[color="#5e5e5e"] {
  opacity: 0.55;
}


/* ============================================================
   ENRICHED FOOTER — replaces the empty black expanse
   ============================================================ */
.k-enriched-footer {
  background: #1a1a1a;
  color: #d0d0d0;
  padding: 50px 5% 24px 5%;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}
.k-enriched-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 36px;
  max-width: 1400px;
  margin: 0 auto;
}
.k-enriched-footer h4 {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 14px 0;
  font-weight: 600;
}
.k-enriched-footer a {
  display: block;
  color: #b8b8b8 !important;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  font-size: 13px;
}
.k-enriched-footer a:hover { color: #fff !important; }
.k-enriched-footer .k-brand-col img {
  height: 50px !important;
  width: auto !important;
  margin-bottom: 14px;
}
.k-enriched-footer .k-tagline {
  color: #999;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 14px 0;
  max-width: 280px;
}
.k-enriched-footer .k-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.k-enriched-footer .k-social a {
  width: 36px; height: 36px; padding: 0;
  border: 1px solid #444;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #d0d0d0 !important;
  transition: all 0.2s;
}
.k-enriched-footer .k-social a:hover {
  background: #6c225d;
  border-color: #6c225d;
  color: #fff !important;
}
.k-enriched-footer .k-news input {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.k-enriched-footer .k-news input::placeholder { color: #888; }
.k-enriched-footer .k-news button {
  width: 100%;
  padding: 10px;
  background: #fff;
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}
.k-enriched-footer .k-news button:hover { background: #b8a058; color: #fff; }
.k-enriched-footer .k-bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #777;
  font-size: 12px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.k-enriched-footer .k-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 18px 0 28px 0;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.k-enriched-footer .k-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b0b0b0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.k-enriched-footer .k-trust-item i { color: #b8a058; font-size: 18px; }

@media screen and (max-width: 900px) {
  .k-enriched-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .k-enriched-footer .k-brand-col { grid-column: 1 / -1; }
}
@media screen and (max-width: 480px) {
  .k-enriched-footer-grid { grid-template-columns: 1fr; }
  .k-enriched-footer .k-trust { flex-direction: column; gap: 10px; }
  .k-enriched-footer .k-bottom { justify-content: center; text-align: center; }
}


/* ============================================================
   PHASE 4 — Product Detail Page Refinements
   ============================================================ */

/* ----------------------------------------------------------
   1. Image column scrolls naturally; info column stays in view
   On desktop only (>= 769px). On mobile, normal stacking.
   ---------------------------------------------------------- */
@media screen and (min-width: 769px) {

  /* Stack the product images vertically inside the left cell */
  #itemImages > div {
    display: block !important;
    width: 100% !important;
  }
  #itemImages > div > div {
    display: block !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
  }
  #itemImages img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Info column sticks while image column scrolls */
  td#itemdata {
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start !important;
    vertical-align: top !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: thin;
  }

  /* Scrollbar styling on the info column */
  td#itemdata::-webkit-scrollbar { width: 6px; }
  td#itemdata::-webkit-scrollbar-track { background: transparent; }
  td#itemdata::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 3px;
  }

  /* Image cell takes its natural height; sticky on info works because
     of the asymmetric heights in the parent flex/table row. */
  td#itemimg {
    vertical-align: top !important;
  }
}


/* ----------------------------------------------------------
   2. ADD TO BAG button — bigger, polished, full-width
   ---------------------------------------------------------- */
.k-add-to-bag,
input.cartbtn[value="ADD TO BAG"],
input[type="button"][value="ADD TO BAG"].cartbtn {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 56px !important;
  padding: 16px 24px !important;
  background: #2c2c2c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.k-add-to-bag:hover,
input.cartbtn[value="ADD TO BAG"]:hover {
  background: #6c225d !important;
  color: #fff !important;
}

.k-add-to-bag:active {
  transform: translateY(1px);
}


/* ----------------------------------------------------------
   3. Weight selector buttons (1.50 ct, 2.00 ct, etc.)
   The text was overflowing 55px-wide labels. Make them
   uniform pill-buttons with full text fit.
   ---------------------------------------------------------- */

/* The wrapping div that holds each option. Reset rigid sizing for all
   spec selectors: metal (120x35), shape/color/clarity (120x25), weight (80x35). */
#itemdata div[style*="width: 80px"][style*="height: 35px"],
#itemdata div[style*="width: 120px"][style*="height: 35px"],
#itemdata div[style*="width: 120px"][style*="height: 25px"],
td#itemdata td > div > div[style*="width: 80px"],
td#itemdata td > div > div[style*="width: 120px"] {
  width: auto !important;
  height: auto !important;
  min-width: 70px !important;
  padding: 0 !important;
  margin: 4px 6px 4px 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* The label inside each spec option — make it the actual button.
   Covers: weights, metal, shape, color, clarity. */
#itemdata label[for="weights"][id="weights"],
#itemdata label[for="metal"],
#itemdata label[for="shape"][id="shape"],
#itemdata label[for="color"][id="color"],
#itemdata label[for="clarity"][id="clarity"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 80px !important;
  height: 38px !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2c2c2c !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

#itemdata label[for="weights"][id="weights"]:hover,
#itemdata label[for="metal"]:hover,
#itemdata label[for="shape"][id="shape"]:hover,
#itemdata label[for="color"][id="color"]:hover,
#itemdata label[for="clarity"][id="clarity"]:hover {
  border-color: #6c225d !important;
  background: #faf6f9 !important;
}

/* Hide the radio input — the label IS the button */
#itemdata label[for="weights"] input[type="radio"],
#itemdata label[for="metal"] input[type="radio"],
#itemdata label[for="shape"] input[type="radio"],
#itemdata label[for="color"] input[type="radio"],
#itemdata label[for="clarity"] input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}

/* Currently-selected option: filled dark style.
   The site uses JS to set `radio.checked = true` on page load for the
   currently-active variant — :has() catches that. */
#itemdata label[for="weights"]:has(input[type="radio"]:checked),
#itemdata label[for="metal"]:has(input[type="radio"]:checked),
#itemdata label[for="shape"]:has(input[type="radio"]:checked),
#itemdata label[for="color"]:has(input[type="radio"]:checked),
#itemdata label[for="clarity"]:has(input[type="radio"]:checked) {
  background: #2c2c2c !important;
  color: #fff !important;
  border-color: #2c2c2c !important;
}

/* Inherit color into nested font/nobr tags so the dark-fill state
   doesn't leave the text dark on dark. */
#itemdata label[for="weights"] font,
#itemdata label[for="metal"] font,
#itemdata label[for="shape"] font,
#itemdata label[for="color"] font,
#itemdata label[for="clarity"] font,
#itemdata label[for="weights"] nobr,
#itemdata label[for="metal"] nobr,
#itemdata label[for="shape"] nobr,
#itemdata label[for="color"] nobr,
#itemdata label[for="clarity"] nobr {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-block;
}


/* ----------------------------------------------------------
   4. Ring Size dropdown — match new visual language
   ---------------------------------------------------------- */
#itemdata select[name="ringsize"] {
  width: 100% !important;
  max-width: 360px !important;
  height: 44px !important;
  padding: 8px 14px !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  font-size: 14px !important;
  color: #2c2c2c !important;
  cursor: pointer;
}


/* ----------------------------------------------------------
   5. RING SIZER link styling — make it look like a small
   secondary action, not a header element
   ---------------------------------------------------------- */
#itemdata a.header[href*="ring_sizer"] {
  display: inline-block;
  margin-left: 12px;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #6c225d !important;
  text-decoration: underline;
  text-transform: uppercase;
}


/* ----------------------------------------------------------
   6. Trust signals — tighten on detail page so they don't
   dominate. Already partly addressed in Phase 3.
   ---------------------------------------------------------- */
#itemdata .trust-bar {
  margin: 16px 0 8px 0 !important;
  padding: 14px 8px !important;
}


/* ============================================================
   MOBILE — keep stacking, no sticky behavior
   ============================================================ */
@media screen and (max-width: 768px) {
  td#itemdata {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    padding: 16px !important;
  }
  td#itemimg {
    width: 100% !important;
    display: block;
  }

  .k-add-to-bag {
    min-height: 52px !important;
    font-size: 13px !important;
    padding: 14px 18px !important;
  }
}


/* ============================================================
   PHASE 6 — Stripe-style checkout
   ============================================================ */

.gc6-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* Two-column grid: form left, summary right */
.gc6-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .gc6-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- Sections ---- */
.gc6-section {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.gc6-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.gc6-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #1a1a1a;
}

.gc6-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.gc6-secure-badge {
  margin-left: auto;
  font-size: 11px;
  color: #6c225d;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gc6-section-body {
  padding: 20px;
}

/* ---- Fields ---- */
.gc6-field {
  margin-bottom: 14px;
}

.gc6-field label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #4a4a4a;
  margin-bottom: 6px;
}

.gc6-optional {
  color: #9a9a9a;
  font-weight: 400;
  font-size: 12px;
}

.gc6-field input[type="text"],
.gc6-field input[type="email"],
.gc6-field input[type="tel"],
.gc6-field input[type="password"],
.gc6-field select {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* Add the chevron back to selects (we removed default appearance) */
.gc6-field select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23606060%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 32px;
}

.gc6-field input:focus,
.gc6-field select:focus {
  outline: none;
  border-color: #6c225d;
  box-shadow: 0 0 0 3px rgba(108, 34, 93, 0.15);
}

.gc6-field input.gc-error,
.gc6-field select.gc-error {
  border-color: #c00000;
  box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.12);
}

/* Field rows */
.gc6-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gc6-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .gc6-row-2,
  .gc6-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---- Card payment block — Stripe-style segmented inputs ---- */
.gc6-card-block {
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
  margin-bottom: 14px;
}

.gc6-card-block .gc6-field {
  margin-bottom: 10px;
}

.gc6-card-block .gc6-field:last-child {
  margin-bottom: 0;
}

.gc6-card-block input,
.gc6-card-block select {
  background: #ffffff;
}

.gc6-card-extras {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .gc6-card-extras {
    grid-template-columns: 1fr 1fr;
  }
  .gc6-field-third:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.gc6-secure-note {
  font-size: 12px;
  color: #6a6a6a;
  margin: 8px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.gc6-secure-note i {
  color: #6c225d;
}

/* ---- Save info ---- */
.gc6-save-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4a4a4a;
  cursor: pointer;
  padding: 10px 0;
}

.gc6-save-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6c225d;
  margin: 0;
}

.gc6-pw-fields {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: #f9f7f9;
  border: 1px dashed #d4c0d0;
  border-radius: 6px;
}

.gc6-pw-fields input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.gc6-pw-help {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

/* ---- Pay button ---- */
.gc6-pay-btn {
  width: 100%;
  min-height: 52px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
  font-family: inherit;
}

.gc6-pay-btn:hover {
  background: #6c225d;
}

.gc6-pay-btn:active {
  transform: translateY(1px);
}

.gc6-pay-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.gc6-pay-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
}

.gc6-pay-amount {
  font-size: 16px;
  font-weight: 700;
}

.gc6-pay-amount::before {
  content: "·";
  margin-right: 8px;
  opacity: 0.4;
}

.gc6-fine-print {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin: 14px 0 0 0;
  line-height: 1.5;
}

.gc6-fine-print a {
  color: #6c225d;
  text-decoration: none;
}

.gc6-fine-print a:hover {
  text-decoration: underline;
}

/* ============================================================
   ORDER SUMMARY — sticky right column
   ============================================================ */

.gc6-summary-col {
  position: sticky;
  top: 24px;
}

@media (max-width: 860px) {
  .gc6-summary-col {
    position: static;
    order: -1; /* on mobile, summary appears above form */
  }
}

.gc6-summary {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.gc6-summary-title {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4a4a4a;
}

.gc6-summary-items {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.gc6-line-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.gc6-line-item + .gc6-line-item {
  border-top: 1px solid #f6f6f6;
}

.gc6-line-thumb {
  position: relative;
  flex-shrink: 0;
}

.gc6-line-thumb img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #fafafa;
  padding: 4px;
  box-sizing: border-box;
}

.gc6-line-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.gc6-line-info {
  flex: 1;
  min-width: 0;
}

.gc6-line-title {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 3px;
}

.gc6-line-meta {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.2px;
}

.gc6-line-price {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.gc6-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #4a4a4a;
}

.gc6-summary-row span:last-child {
  font-weight: 500;
  color: #1a1a1a;
}

.gc6-free {
  color: #2e7d32 !important;
  font-weight: 600 !important;
}

.gc6-muted {
  color: #888 !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}

.gc6-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 4px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.gc6-trust-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.gc6-trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
  padding: 5px 0;
}

.gc6-trust-list li i {
  color: #6c225d;
  width: 14px;
  text-align: center;
}
