/*
Theme Name: Compact Comfort Theme
Theme URI: https://limegreen-bear-630635.hostingersite.com
Author: Ahmad / Compact Comfort
Description: Single-page Compact Comfort landing page (hero, features, products, gallery, FAQ, contact) built from Mocha HTML.
Version: 1.0
*/

/* =============== GLOBAL =============== */
body {
  background: #ffffff;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =============== HERO =============== */
#home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  background-image: url("https://limegreen-bear-630635.hostingersite.com/wp-content/uploads/2025/10/images.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 47, 42, 0.7);
  z-index: 10;
}

#home h1,
#home p,
#home button,
#home .relative {
  position: relative;
  z-index: 20;
}

/* =============== COLOUR VARIABLES =============== */
:root {
  --cc-green: #0a2f2a;
  --cc-green-dark: #0f3e36;
  --cc-gold: #e5a341;
  --cc-bg: #f7fbfa;
}

/* =============== SINGLE PRODUCT LAYOUT =============== */

/* page background for products */
body.single-product {
  background: #f7fbfa;
}

/* center the page content */
body.single-product .site-main,
body.single-product .content-area,
body.single-product .woocommerce,
body.single-product .woocommerce-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem 1.25rem;
  box-sizing: border-box;
}

/* main product wrapper */
body.single-product div.product {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(10, 47, 42, 0.04);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
}

@media (max-width: 992px) {
  body.single-product div.product {
    grid-template-columns: 1fr;
  }
}

/* left (images) */
body.single-product div.product div.images {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
}

/* main product image */
body.single-product div.product div.images img {
  border-radius: 1rem;
  display: block;
  width: 100%;
  height: auto;
}

/* right (summary) */
body.single-product div.product .summary.entry-summary {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1rem 0 0 0;
}

/* title */
body.single-product div.product .product_title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--cc-green);
  margin-bottom: 0.75rem;
}

/* price */
body.single-product div.product p.price,
body.single-product div.product span.price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--cc-green);
  margin-bottom: 1.25rem;
}

/* short description */
body.single-product div.product .woocommerce-product-details__short-description {
  color: rgba(17, 20, 23, 0.75);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* variation labels */
body.single-product div.product table.variations td.label label {
  font-weight: 600;
  color: var(--cc-green);
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* variation selects */
body.single-product div.product table.variations select {
  border: 1px solid rgba(10, 47, 42, 0.12);
  border-radius: 0.6rem;
  padding: 0.35rem 0.5rem;
  min-width: 160px;
  background: #ffffff;
}

/* add-to-cart box */
body.single-product div.product form.cart {
  background: #f7fbfa;
  border: 1px solid rgba(10, 47, 42, 0.05);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* quantity */
body.single-product div.product form.cart .quantity input.qty {
  border: 1px solid rgba(10, 47, 42, 0.15);
  border-radius: 0.75rem;
  padding: 0.35rem 0.5rem;
  width: 70px;
}

/* add-to-cart button */
body.single-product div.product form.cart button.single_add_to_cart_button,
body.single-product .woocommerce-variation-add-to-cart button {
  background: var(--cc-gold);
  color: #0a2f2a;
  border: none;
  border-radius: 0.85rem;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(229, 163, 65, 0.25);
  transition: 0.15s ease-in-out;
  cursor: pointer;
}

body.single-product div.product form.cart button.single_add_to_cart_button:hover,
body.single-product .woocommerce-variation-add-to-cart button:hover {
  background: #f1b862;
}

/* custom product-details block */
body.single-product .cc-product-details {
  background: #ffffff;
  border-radius: 1rem;
  margin-top: 1.5rem;
}

body.single-product .cc-product-details h2 {
  color: #0a2f2a;
}

/* product meta – subtle */
body.single-product .product_meta {
  background: transparent;
  border-top: 1px solid rgba(10, 47, 42, 0.08);
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  color: rgba(17, 20, 23, 0.55);
  font-size: 0.8rem;
}

body.single-product .product_meta a {
  color: #0a2f2a;
  font-weight: 500;
}

/* tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid rgba(10, 47, 42, 0.08);
  padding-left: 0;
  margin-top: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  margin-right: 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: rgba(10, 47, 42, 0.5);
  font-weight: 500;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #0a2f2a;
  border-bottom: 2px solid #e5a341;
  padding-bottom: 0.5rem;
}

/* tab content */
.woocommerce div.product .woocommerce-tabs .panel {
  background: #ffffff;
  border: none;
  padding: 1.5rem 0;
}

/* related products */
.single-product .related,
.single-product .upsells {
  margin-top: 3rem;
  margin-bottom: 3rem;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem 1rem 1rem 1rem;
  box-shadow: 0 12px 40px rgba(10, 47, 42, 0.04);
}

.single-product .related > h2 {
  color: #0a2f2a;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* footer – make dark */
footer,
.site-footer,
#colophon {
  background: #0a2f2a;
  color: #f7fbfa;
  padding: 2.5rem 1.5rem;
}

footer a,
.site-footer a,
#colophon a {
  color: #f7fbfa;
  text-decoration: none;
}

/***************** ALL-IN-ONE WOO PRODUCT PAGE FIX *****************
   Scope: WordPress + WooCommerce (product page + related products)
   What it fixes:
   - Mobile/laptop sideways scroll
   - Vertical/rotated text on variations & related products
   - Messy variation (colour) dropdown layout
   - Neat, responsive “You may also like” grid
*******************************************************************/

/* === Global safety nets === */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

/* Media should never overflow containers */
img, picture, video, canvas { max-width: 100%; height: auto; display: block; }

/* Long words/SKUs/URLs wrap instead of pushing layout */
.single-product, .single-product * { overflow-wrap: anywhere; word-break: break-word; }

/* Fix any accidental vertical text anywhere in product/related sections */
.single-product, .single-product * ,
.related.products, .related.products * {
  writing-mode: horizontal-tb !important;
  text-orientation: initial !important;
  transform: none !important;
  white-space: normal !important;
}

/* Prevent flex/grid children from forcing overflow */
.single-product .summary, 
.single-product .images, 
.single-product .entry-summary, 
.single-product .product, 
.single-product .product .flex > *, 
.single-product .product .grid > *, 
.related.products li.product {
  min-width: 0;
}

/* Tame common slider wrappers if present */
.swiper, .slick-slider, .slick-list { overflow: hidden; }
.swiper-slide, .slick-slide { max-width: 100%; }

/* === Product media/image areas === */
.product, .product-page, 
.product__media, .product-media, 
.woocommerce-product-gallery, .woocommerce-product-gallery__wrapper, 
.product-image-wrap, .gallery, .image-wrap {
  width: 100%; max-width: 100%; overflow: hidden;
}

.product img, 
.product__media img, 
.product-media img, 
.woocommerce-product-gallery__image img, 
.gallery img, 
.image-wrap img {
  display: block; max-width: 100%; height: auto; object-fit: contain;
}

/* === Variations (Colour dropdown & labels) === */
/* Use WooCommerce’s table layout but tidy and consistent */
.single-product .variations {
  display: table !important;
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  margin: 0 0 1rem 0;
}
.single-product .variations tr { display: table-row !important; }
.single-product .variations td { 
  display: table-cell !important; 
  padding: .5rem 0; 
  vertical-align: middle; 
}
.single-product .variations td.label {
  width: 1%;
  white-space: nowrap;
  padding-right: .75rem;
  font-weight: 600;
}
.single-product .variations td.value { width: auto; }

/* Dropdown styling */
.single-product .variations select {
  width: 100%;
  max-width: 360px;
  padding: .6rem .8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

/* “Clear” link */
.single-product .reset_variations {
  display: inline-block;
  margin-top: .25rem;
  font-size: .875rem;
  opacity: .85;
}

/* Swatches plugins: keep swatches neat & horizontal */
.variable-items-wrapper,
.variations .swatches {
  display: flex !important;
  flex-wrap: wrap;
  gap: .5rem;
}

/* === “You may also like” / Related products === */
.related.products { margin-top: 2rem; }
.related.products > h2,
.related.products > h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Responsive grid: fills space nicely; solid on mobile & desktop */
.related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
@media (min-width: 992px) {
  .related.products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.related.products ul.products li.product {
  list-style: none;
  margin: 0 !important;
  min-width: 0;
}

.related.products img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Titles, prices, and buttons tidy & horizontal */
.related.products .woocommerce-loop-product__title,
.related.products .price,
.related.products .button,
.related.products .added_to_cart {
  display: block;
  white-space: normal !important;
  line-height: 1.3;
}
.related.products .woocommerce-loop-product__title { font-size: .95rem; margin-top: .5rem; }
.related.products .price { margin: .25rem 0 .5rem; font-weight: 600; }

/* === Optional: Buttons and tables won’t cause overflow */
button, .button, .btn { max-width: 100%; }
table { display: block; max-width: 100%; overflow-x: auto; }

/***************** FINAL COMPLETE FIX FOR ALL DEVICES *****************
   Works for: WooCommerce (WordPress)
   Fixes: 
   - Vertical text
   - Overflow/side scroll on mobile
   - Squashed layout on laptop
   - Neat variations and related products
**********************************************************************/

/* === GLOBAL RESET (keeps mobile clean) === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* Media fits container properly */
img, picture, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent weird vertical writing */
.single-product, .single-product *,
.related.products, .related.products * {
  writing-mode: horizontal-tb !important;
  text-orientation: initial !important;
  transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Keep flex/grid elements from forcing overflow */
.single-product .summary,
.single-product .images,
.single-product .entry-summary,
.related.products li.product {
  min-width: 0;
}

/* Product image areas full width */
.product, .product-page,
.woocommerce-product-gallery, 
.woocommerce-product-gallery__wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.woocommerce-product-gallery__image img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* === VARIATIONS (Colour dropdown) === */
.single-product .variations {
  display: table !important;
  width: 100%;
  table-layout: auto;
  margin: 1rem 0;
}
.single-product .variations td {
  padding: .5rem 0;
  vertical-align: middle;
}
.single-product .variations td.label {
  width: 1%;
  white-space: nowrap;
  padding-right: 1rem;
  font-weight: 600;
}
.single-product .variations select {
  width: 100%;
  max-width: 360px;
  padding: .6rem .8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

/* Reset clear link */
.single-product .reset_variations {
  display: inline-block;
  margin-top: .25rem;
  font-size: .875rem;
  opacity: .85;
}

/* === RELATED PRODUCTS === */
.related.products {
  margin-top: 2rem;
}
.related.products > h2,
.related.products > h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Clean grid layout for related products */
.related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.related.products ul.products li.product {
  list-style: none;
  margin: 0 !important;
  min-width: 0;
  text-align: center;
}
.related.products img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.related.products .woocommerce-loop-product__title,
.related.products .price,
.related.products .button,
.related.products .added_to_cart {
  display: block;
  white-space: normal !important;
  line-height: 1.3;
}

/* === DESKTOP FIXES (remove squashed layout, restore full width) === */
@media (min-width: 992px) {
  html, body {
    max-width: none !important;
    overflow-x: visible !important;
  }

  /* Restore normal centered content width on laptops/desktops */
  .single-product .site,
  .single-product .container,
  .single-product .content-area,
  .single-product .product,
  .single-product .entry-summary,
  .single-product .summary,
  .related.products {
    max-width: 1200px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  /* Related products - 4 columns on desktop */
  .related.products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem;
  }

  /* Reset text wrapping for desktop */
  .single-product, .single-product *,
  .related.products, .related.products * {
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
  }
}

.woocommerce-tabs.wc-tabs-wrapper { max-width: 900px; margin: 0 auto; }

/************ DESKTOP PRODUCT IMAGE: FORCE PROPER SIZE & POSITION ************/
@media (min-width: 992px) {

  /* 1) Make the two columns sane (works even if the theme uses grid or flex) */
  .single-product .product {
    display: grid !important;
    grid-template-columns: minmax(520px, 1fr) minmax(420px, 1fr) !important; /* image | summary */
    gap: 2rem !important;
    align-items: start !important;
  }

  /* 2) Gallery column: let it expand and stay centered */
  .single-product .woocommerce-product-gallery,
  .single-product .images,
  .single-product .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    max-width: 720px !important;  /* bump this up/down if you want bigger/smaller */
    margin: 0 auto !important;    /* centers the main image on its column */
    float: none !important;
    flex: 1 1 auto !important;    /* if the theme falls back to flex */
    min-width: 0 !important;      /* prevents weird squashing */
  }

  /* 3) The actual image should fill the gallery area cleanly */
  .single-product .woocommerce-product-gallery__image,
  .single-product .woocommerce-product-gallery__image a,
  .single-product .woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 680px !important; /* keep tall images under control */
    object-fit: contain !important;
  }

  /* 4) Summary column width & wrapping (prevents vertical letter stacking) */
  .single-product .entry-summary,
  .single-product .summary {
    max-width: 560px !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  /* 5) Tabs section (Description / Additional info / Reviews) centered & readable */
  .single-product .woocommerce-tabs.wc-tabs-wrapper {
    max-width: 900px !important;
    margin: 0 auto !important;
  }

  /* 6) If your theme still insists on flex, these lines keep the 2 columns balanced */
  .single-product .images,
  .single-product .woocommerce-product-gallery { flex: 1 1 56% !important; }
  .single-product .entry-summary,
  .single-product .summary { flex: 1 1 44% !important; }
}

/* Safety (applies at all sizes) – images never overflow their box */
.single-product .woocommerce-product-gallery__image img { max-width: 100% !important; height: auto !important; }

/************ RELATED PRODUCTS — DESKTOP (STRICT, NO OVERFLOW) ************/
@media (min-width: 992px) {

  /* Clamp the section itself and isolate it from outside layout math */
  .single-product .related.products {
    position: relative;
    width: 100% !important;
    max-width: 1500px !important;   /* adjust if your page is wider/narrower */
    margin: 2rem auto 0 !important;
    padding-inline: 12px !important;
    box-sizing: border-box;
    overflow: clip !important;       /* hard-stop any horizontal overflow */
    contain: layout paint inline-size;/* keeps inner layout from affecting page width */
  }

  /* Defensive defaults inside the block only */
  .single-product .related.products * {
    box-sizing: border-box;
    max-width: 100% !important;      /* nothing can exceed its container */
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
  }

  /* Grid that can NEVER exceed 100% width, no floats */
  .single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;  /* one column only */
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden !important;
  }

  /* On narrower laptops, use 3 columns to avoid squeeze */
  @media (min-width: 992px) and (max-width: 1199.98px) {
    .single-product .related.products ul.products {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }

  /* Card: fully contained, no floats, no child min-width blowouts */
  .single-product .related.products ul.products li.product {
    position: relative;               /* for badges/ribbons */
    list-style: none;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0 !important;          /* critical for grid children */
    max-width: 100% !important;
    float: none !important;
    overflow: hidden;                  /* traps any inner overflow */
    text-align: center;
  }

  /* Image: smaller and uniform */
  .single-product .related.products ul.products li.product img {
    display: block !important;
    width: 100% !important;
    max-width: 180px !important;      /* tweak if you want smaller/bigger */
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    object-fit: cover !important;     /* switch to 'contain' for no cropping */
    border-radius: 8px !important;
    margin-bottom: .5rem !important;
  }

  /* Keep badges/ribbons inside the card, not hanging outside the grid */
  .single-product .related.products ul.products li.product .onsale,
  .single-product .related.products ul.products li.product .badge,
  .single-product .related.products ul.products li.product .ribbon {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    transform: none !important;
  }

  /* Titles, prices, and buttons tidy */
  .single-product .related.products .woocommerce-loop-product__title {
    font-size: .95rem;
    line-height: 1.3;
    margin-top: .25rem;
  }
  .single-product .related.products .price {
    font-weight: 600;
    margin: .25rem 0 .5rem;
  }
  .single-product .related.products .button,
  .single-product .related.products .added_to_cart {
    margin-top: auto;
    width: 100%;
  }

  /* Neutralise Woo's columns-* utilities if present */
  .single-product .related.products ul.products[class*="columns-"] {
    display: grid !important;
    width: 100% !important;
  }
  .single-product .related.products ul.products[class*="columns-"] li.product {
    width: auto !important;
    margin-right: 0 !important;
  }
}

/* ============= Compact Comfort – Trust badges (safe, responsive) ============= */

/* Base block */
.cc-trust{
  max-width: 100%;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;      /* 2 columns by default (mobile/tablet) */
  gap: .5rem .75rem;
  font-size: .95rem;
  line-height: 1.3;
  box-sizing: border-box;
}

/* Items */
.cc-trust__item{
  display: flex; 
  align-items: center; 
  gap: .5rem;
  min-width: 0;                   /* critical: prevents overflow in tight columns */
  white-space: normal; 
  overflow-wrap: anywhere;
}

/* Desktop: spread nicely without breaking layouts */
@media (min-width: 992px){
  .cc-trust{ 
    grid-template-columns: repeat(4, minmax(0,1fr)); 
  }
}

/* Slightly smaller variant spacing on Cart/Checkout if you want tighter look */
.cc-trust--cart, 
.cc-trust--checkout { 
  margin-top: 12px; 
}

/* Keep it from ever causing sideways scroll */
.cc-trust, 
.cc-trust * {
  box-sizing: border-box;
  max-width: 100%;
}

/* Optional: match your button/font vibe a bit closer */
.cc-trust{
  /* color: #222; /            / uncomment/tweak if you want a darker text */
  /* background: #fff; /       / already set; adjust if your site uses grey cards */
  /* border-color: #e6e6e6; */
  /* font-weight: 500; */
}

/************ PRODUCT PAGES — FULL-WIDTH DESKTOP (SAFE, NO OVERFLOW) ************/
@media (min-width: 1200px) {

  /* Make the product page containers fluid (100% of viewport width) */
  .single-product .site,
  .single-product .site-content,
  .single-product .content-area,
  .single-product .container,
  .single-product .container-fluid,
  .single-product .ast-container,         /* Astra */
  .single-product .blocksy-container,     /* Blocksy */
  .single-product .flatsome-container,    /* Flatsome */
  .single-product .storefront-sf-container, /* Storefront */
  .single-product .entry-content,
  .single-product .product {
    max-width: none !important;   /* remove any cap */
    width: 100% !important;       /* use all available width */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-inline: clamp(12px, 2vw, 24px) !important; /* gentle side padding */
    box-sizing: border-box !important;
  }

  /* Keep gallery & summary behaving inside the fluid container */
  .single-product .woocommerce-product-gallery,
  .single-product .images,
  .single-product .entry-summary,
  .single-product .summary {
    max-width: 100% !important;
    min-width: 0 !important;      /* prevents squashing/overflow in flex/grid */
  }

  /* Tabs (Description / Additional info / Reviews) should also span fluid width */
  .single-product .woocommerce-tabs.wc-tabs-wrapper {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Safety: media never exceed their box (prevents side scroll) */
.single-product .woocommerce-product-gallery__image img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/************ TRUST BOX — STACKED LIST STYLE (NEAT BOXES, NO OVERFLOW) ************/
.cc-trust {
  width: 100% !important;
  max-width: 600px !important;          /* keeps it neat and centered */
  margin: 16px auto !important;         /* center horizontally */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;                         /* space between mini-boxes */
  padding: 0;                           /* parent box no padding */
  border: none;
  background: transparent;              /* no outer border */
  box-sizing: border-box;
  overflow: hidden;
}

/* Each item looks like its own small card */
.cc-trust__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;                     /* touch-friendly */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cc-trust__item:hover {
  background: #fafafa;
  transform: translateY(-1px);
}

.cc-trust__item span {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

/* Centered on all screen sizes */
@media (max-width: 768px) {
  .cc-trust {
    max-width: 100% !important;
    padding-inline: 12px;
  }
}

/* ===== Partner Program mini styles ===== */
.ccp-hero { padding:48px 16px; background:#F7FBFA; text-align:center; }
.ccp-hero .ccp-wrap { max-width:880px; margin:0 auto; }
.ccp-hero h1 { font-size:34px; color:#0A2F2A; margin:0 0 8px; }
.ccp-hero p { color:#1a2d2a; opacity:.85; margin:0 0 22px; }
.ccp-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.ccp-btn { display:inline-block; font-weight:700; border-radius:12px; text-decoration:none; padding:12px 18px; }
.ccp-btn--primary { background:#E5A341; color:#0A2F2A; box-shadow:0 8px 18px rgba(229,163,65,.25); }
.ccp-btn--primary:hover { filter:brightness(1.05); }
.ccp-btn--outline { border:2px solid #E5A341; color:#E5A341; }
.ccp-btn--dark { background:#0A2F2A; color:#F7FBFA; }

.ccp-form { display:grid; gap:12px; max-width:620px; }
.ccp-form input, .ccp-form select, .ccp-form textarea {
  padding:12px; border:1px solid #cfd9d6; border-radius:10px; width:100%;
}
.ccp-grid { display:grid; gap:12px; grid-template-columns:1fr 1fr; }
@media (max-width: 640px){ .ccp-grid { grid-template-columns:1fr; } }

.ccp-success { padding:12px 14px; background:#E6F7EE; border:1px solid #b9e3c8; border-radius:10px; color:#0A2F2A; }
.ccp-error   { padding:12px 14px; background:#FDECEC; border:1px solid #e7b5b5; border-radius:10px; color:#7a1f1f; }

/***** Compact Comfort product slider *****/
.cc-product-slider {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.cc-product-slider-track {
  display: flex;
  flex-wrap: nowrap;
}

.cc-product-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px; /* tweak this number for taller/shorter box */
}

.cc-product-slide-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* fit inside box, no cropping */
  display: block;
}

/* Make sure any old thumbnail nav is hidden if the theme still outputs it */
.woocommerce-product-thumbnails,
.woocommerce-product-gallery .flex-control-nav {
  display: none !important;
}

/***** UNIVERSAL FIX FOR LIGHTBOX CLOSE BUTTON (PHONE + LAPTOP) *****/

/* Force the close button to always exist, be on top, be clickable, and visible */
.mfp-close,
.pswp__button--close,
.lg-close,
.fancybox-close-small {
    display: block !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    font-size: 26px !important;
    text-align: center !important;
    color: #ffffff !important;
    background: rgba(0,0,0,0.7) !important;
    border-radius: 50% !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    pointer-events: auto !important; /* FIX: multiple taps problem on phone */
    opacity: 1 !important;
}

/* For gallery wrappers that sometimes block the X from being clicked */
.mfp-wrap,
.mfp-container,
.pswp,
.lg-outer,
.fancybox-container {
    pointer-events: auto !important;
    z-index: 99999 !important;
}

/* Mobile-only adjustment: slightly bigger tap area for phones */
@media (max-width: 767px) {
    .mfp-close,
    .pswp__button--close,
    .lg-close,
    .fancybox-close-small {
        width: 56px !important;
        height: 56px !important;
        line-height: 56px !important;
        font-size: 28px !important;
    }
}

/***** Compact Comfort gallery close button fix (center SVG inside circle) *****/

/* Style the clickable close button */
#ccLightboxClose,
.cc-lightbox-close {
  display: flex !important;            /* center children */
  align-items: center !important;       /* vertical center */
  justify-content: center !important;   /* horizontal center */
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.75) !important;
  color: #ffffff !important;
  z-index: 999999 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  padding: 0 !important;                 /* prevent shifting */
}

/* Make sure the SVG icon fits and stays centered */
#ccLightboxClose svg,
.cc-lightbox-close svg {
  width: 60% !important;
  height: 60% !important;
  display: block !important;
  pointer-events: none !important;
}

/* Ensure overlay doesn't block or hide the X */
#ccLightbox,
.cc-lightbox,
.cc-lightbox-wrap {
  z-index: 99999 !important;
  pointer-events: auto !important;
}

/* Bigger tap area on mobile */
@media (max-width: 767px) {
  #ccLightboxClose,
  .cc-lightbox-close {
    width: 56px !important;
    height: 56px !important;
  }
}

/* Trust strip styling */
#trust-strip .cc-strip-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Make icons match theme gold */
#trust-strip svg {
  color: #E5A341;           /* uses currentColor for stroke/fill */
}

/* Slightly smoother text on small screens */
#trust-strip p {
  line-height: 1.3;
}

/* --------------------------------------------------
   CLARITY SECTION — Mattress Comparison Styling
   -------------------------------------------------- */

/* Light background gradient for subtle depth */
#mattress-clarity {
  background: linear-gradient(
    135deg,
    #f7fbfa 0%,
    #f7fbfa 60%,
    #f2f6f5 100%
  );
}

/* Card hover effect */
#mattress-clarity .comparison-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#mattress-clarity .comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* Icon circles */
#mattress-clarity .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Improve spacing in bullet lists */
#mattress-clarity ul li {
  margin-bottom: 4px;
}

/* Mobile optimization */
@media (max-width: 640px) {
  #mattress-clarity h2 {
    font-size: 1.4rem;
  }

  #mattress-clarity p {
    font-size: 0.9rem;
  }

  #mattress-clarity .comparison-card {
    padding: 20px;
  }
}