/** Shopify CDN: Minification failed

Line 343:0 Unexpected "}"

**/
.addson-wrapper button,
.mattress-drawer button {
  border: none;
  outline: none;
  font-family: inherit;
}



body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

button.mattress-drawer-close-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  border-radius: 50%;
  aspect-ratio: 1;
  background: #ccc;
  width: 30px;
  height: 30px;
  font-size: 22px;
  color: #555;
  cursor: pointer;
}

.addsoon_products_icon img {
  max-width: 85px;
  width: 100%;
  object-fit: contain;
}

/* hide size tabs, they are controlled by JS */
.mattress-drawer-variant-tabs.only-variants {
  display: none;
}

.addson-main-button-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin: 22px 0;
  border-radius: 16px;
  border: 1px solid #e2d5af;
  background: #fff7e0;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(254, 193, 73, 0.12);
  position: relative;
  overflow: hidden;
}

/* subtle highlight stripe on the left */

/* keep content above the overlay */
.addson-main-button-div > * {
  position: relative;
  z-index: 1;
}

/* left side text block inside this bar */
.addsoon_products_title h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2933;
}

/* optional small subtext under the title if you use a <p> */
.addsoon_products_title p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6b7280;
}

/* tweak the button inside this bar to feel more “CTA” */
.addson-main-button-div .mattress-drawer-open-btn {
  min-width: 170px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


button.change-product-btn {
  background: #023020;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
}

.addsoon_products_title h4 {
  color: #023020;
  font-size: 18px;
  max-width: 345px;
  text-align: left;
  margin: 0;
}

.mattress-drawer-open-btn,
button#change-product-btn {
  display: inline-block;
  background-color: #023020;
  color: white;
  padding: 9px 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px #edf7f5;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 1px solid #023020;
}

.mattress-drawer-open-btn:hover,
button#change-product-btn:hover {
  background-color: white;
  border: 1px solid #023020;
  color: #023020;
}

.mattress-drawer-open-btn:focus,
button#change-product-btn:focus {
  outline: 2px solid #023020;
  outline-offset: 2px;
}

/* ===== OVERLAY: hidden by default, visible when .active ===== */
.mattress-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9998;
}

.mattress-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: block !important; /* Override :empty rule */
}

/* ===== DRAWER PANEL ===== */
.mattress-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 560px;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  padding: 24px 28px 30px; /* bottom padding for sticky button */
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    visibility 0.4s ease;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

/* hidden state - page load */
.mattress-drawer:not(.active) {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* visible state - after button click */
.mattress-drawer.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

h2#mattress-drawer-label {
  font-size: 20px;
  letter-spacing: 0px;
  margin-bottom: 10px;
  font-weight: 700;
}

.select-heading {
  margin: 12px 0;
  font-size: 18px;
}

.mattress-drawer-variant-tabs,
.height-buttons,
.button-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mattress-drawer-variant-tab,
.mattress-drawer-metafield-tab {
  padding: 8px 16px;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0px;
  text-wrap: nowrap;
}

.mattress-drawer-variant-tab.active,
.mattress-drawer-metafield-tab.active {
  background-color: #023020;
  color: #fff;
  border-color: #023020;
}

.mattress-drawer-variant-tab:hover:not(.active),
.mattress-drawer-variant-tab:focus:not(.active),
.mattress-drawer-metafield-tab:hover:not(.active),
.mattress-drawer-metafield-tab:focus:not(.active) {
  background-color: #023020;
  color: white;
  outline: none;
}

.mattress-drawer-services-row {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
  margin: 25px 0;
}

/* ✅ Card container */
.mattress-drawer-service-option {
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 0; /* label will handle inner padding */
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.25s ease,
    transform 0.18s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

/* Hover state */
.mattress-drawer-service-option:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Content layout – mobile first */
.mattress-drawer-service-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

/* Icon */
.mattress-drawer-service-icon {
  width: 120px;
  height: 120px;

  object-fit: cover;
  border-radius: 12px;
  margin-right: 0; /* gap handles space */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.mattress-drawer-service-text {
  flex: 1;
}

.mattress-drawer-add-title {
      text-align: left;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    line-height: 1.3em;
 
  
}

.mattress-drawer-service-text p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Price row */
.mattress-drawer-service-price {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mattress-drawer-service-price span {
  font-weight: 700;
  font-size: 1.05rem;
  color: #222;
  transition: color 0.2s ease;
}

/* ✅ Selected mattress – make it pop */
.mattress-drawer-service-option label.selected {
  background: white;
    border-radius: 14px;
    border: solid 3px;
    border-color: #053021;
}
}

.mattress-drawer-service-option label.selected .mattress-drawer-add-title {
  color: #023020;
  font-weight: 600;
}

.mattress-drawer-service-option label.selected .mattress-drawer-service-price span {
  color: #023020;
}

/* Checkbox highlight ring when selected */
.mattress-drawer-service-option label.selected::before {
  box-shadow: 0 0 0 3px rgba(2, 48, 32, 0.25);
}

.mattress-drawer-toggle-btn {
  background-color: #023020;
  width: 100%;
  color: #fff;
  border-radius: 5px;
  padding: 9px 25px;
  cursor: pointer;
  font-weight: 600;
  border: 1px solid #023020;
  transition: background-color 0.3s ease;
      font-size: 20px;
}

.mattress-drawer-toggle-btn:hover,
.mattress-drawer-toggle-btn:focus {
  background-color: #edf7f5;
  color: #0a3f63;
  outline: none;
}

.mattress-drawer::-webkit-scrollbar,
.mattress-drawer-services-row::-webkit-scrollbar {
  width: 7px;
}

.mattress-drawer::-webkit-scrollbar-thumb,
.mattress-drawer-services-row::-webkit-scrollbar-thumb {
  background-color: rgba(26, 115, 232, 0.4);
  border-radius: 20px;
}

.mattress-drawer-price-info {
      margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
     background: #fec14921;
    width: fit-content;
    padding: 2px 17px;
    border-radius: 100px;
    border: solid 1px;
    border-color: #9a72235e;
}

span.price-details a {
  font-size: 11px;
  text-decoration: underline;
}

.price-current {
  font-size: 14px;
  font-weight: bold;
  color: #023020;
  display: block;
}

span.selected-size.for-desktop {
  font-size: 12px;
}

.price-compare {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  display: block;
}

.price-save {
  font-size: 13px;
  padding: 5px 10px 4px;
  background-color: var(--product-sale-price-color);
  border-radius: 5px;
  line-height: 1;
  align-self: start;
  color: white;
  font-weight: 500;
}

.mattress-drawer-buttons {
  margin-top: 10px;
  display: none;
}

/* sticky Add to Basket */
.mattress-drawer-add-to-basket {
  display: none; /* shown via JS when a product is selected */
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 28px;
  border-top: 1px solid #ddd;
  text-align: right;
  z-index: 10000;
}

.mattress-drawer-service-option input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.mattress-drawer-service-option label {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: stretch;
  padding: 14px 56px 14px 18px; /* extra space on the RIGHT for checkbox */
  width: 100%;
  box-sizing: border-box;
}

/* Checkbox box – on the RIGHT */
.mattress-drawer-service-option label::before {
  content: "";
  position: absolute;
  right: 22px;                 /* move to right side */
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #023020;
  border-radius: 4px;
  background: white;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

/* Tick INSIDE the box */
.mattress-drawer-service-option label::after {
  content: "";
  position: absolute;
  right: 28px;                 /* inside the box */
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.mattress-drawer-service-option label.selected::before {
  background-color: #023020;
  border-color: #023020;
}

.mattress-drawer-service-option label.selected::after {
  opacity: 1;
}

.selected-product-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2%;
  flex-wrap: wrap;
}

.selected_products_title {
  width: 60%;
}

.selected_products_icon {
  border-radius: 12px;
  overflow: hidden;
  width: 18%;
  aspect-ratio: 1;
}

.selected_products_title h4 {
  margin: 0;

}

.selected-product-div p {
  font-size: 12px;
  color: #595959;
}
.mattress-drawer-price-box {
    display: flex;
      gap: 5px;
}

.mattress-details-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.mattress-details-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mattress-details-sidebar {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(780px, calc(100% - 32px));
  max-height: min(85vh, 760px);
  background: #ffffff;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.14),
    0 12px 32px rgba(0, 0, 0, 0.1);
  padding: 20px 24px 22px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
}

.mattress-details-sidebar.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.mattress-details-close-btn {
  border: none;
  background: #f3f4f6;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mattress-details-inner {
  margin-top: 10px;
  overflow-y: auto; /* Centralized scroll container */
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 8px; /* Space for scrollbar */
}

.mattress-details-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.mattress-details-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #6b7280;
}

.mattress-details-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.mattress-details-variant {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.mattress-details-price {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.details-price-current {
  font-size: 18px;
  font-weight: 700;
  color: #023020;
}

.details-price-compare {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 500;
}

.details-price-save {
  background: #0a7e45;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.mattress-details-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  /* overflow removed */
}

.mattress-details-media {
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mattress-details-image {
  width: 100%;
  max-height: min-content;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

.mattress-details-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* overflow removed */
}

.mattress-details-description {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  scroll-behavior: smooth; 
  /* All overflow and scrollbar styles removed */
}


.mattress-details-link {
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  background: #023020;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mattress-details-link:hover {
  background: #035c2c;
  box-shadow: 0 10px 24px rgba(2, 48, 32, 0.18);
  transform: translateY(-1px);
}

.mattress-details-btn {
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #023020;
  background: #ffffff;
  color: #023020;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mattress-details-btn:hover,
.mattress-details-btn:focus-visible {
  background: #023020;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(2, 48, 32, 0.18);
  outline: none;
}


@media (max-width: 767px) {
  .selected-product-div .mattress-drawer-open-btn {
    width: 100%;
  }
  .addson-main-button-div {
    flex-direction: column;

    align-items: center;
    padding: 14px 14px 16px;
  }

  .addson-main-button-div .mattress-drawer-open-btn {
    width: 100%;
    justify-content: center;
  }
  .mattress-drawer-open-btn {
    width: 100%;
    padding: 16px 0;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(2, 48, 32, 0.25);
  }
  .mattress-drawer {
    width: 100vw;
    max-width: 100vw;
    padding: 20px 16px 30px;
  }
  .mattress-drawer-service-icon {
    width: 110px;
    height: 110px;
  }
  .mattress-drawer-variant-tab {
    padding: 8px 14px;
    font-size: 14px;
  }
  .mattress-drawer-service-price span {
    font-size: 1.05rem;
  }
  .height-buttons,
  .button-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: visible;
    overflow-y: hidden;
  }
  .mattress-drawer-metafield-tab {
    font-size: 12px;
  }
  .mattress-drawer-add-title,
  .select-heading {
    font-size: 14px;
  }
  .price-current {
    font-size: 15px;
  }
 .mattress-drawer-service-option label::before {
    right: 18px;  /* still on the right, slightly tighter */
  }
  .mattress-drawer-price-info {
    gap: 8px;
    padding: 0px 10px;
}

.mattress-drawer-price-box {
    gap: 0px;
    flex-direction: column;
    align-items: flex-start;
}
.mattress-drawer-service-option label::after {
  right: 24px;
}

  .mattress-details-sidebar {
    width: calc(100% - 24px);
    max-height: 90vh;
    padding: 16px;
  }

  .mattress-details-body {
    grid-template-columns: 1fr;
  }

  .mattress-details-image {
    max-height: 250px;
  }
}

.mattress-drawer-empty {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff8e6;
  color: #3b3b3b;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mattress-drawer-empty[aria-hidden="false"] {
  display: flex;
}

.mattress-drawer-empty button.mattress-drawer-reset {
  background: #023020;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.selected-product-show {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  gap: 6px;
}

.selected-product-show .addsoon_products_title {
  width: 60%;
}

.selected-product-show .addsoon_products_title h4 {
  max-width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
  color: inherit;
}

span.main-comp-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content;
  gap: 10px;
  margin: 0;
}

span.save-comp {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 750px) {
  .for-desktop {
    display: none !important;
  }
}

@media screen and (min-width: 750px) {
  .for-mobile {
    display: none !important;
  }

  /* ✅ One card per row on desktop */
  .mattress-drawer-services-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .selected-product-show-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
  }

  /* Desktop content layout: image left, text right */
  .mattress-drawer-service-content {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .mattress-drawer-service-option label {
    padding: 16px 22px;
  }
}

/* Mobile repositioning - Hide addons in media wrapper and show above add to cart */
@media screen and (max-width: 749px) {
  /* Hide the original addon container in media column on mobile */
  .product__media-wrapper .addson-products {
    display: none !important;
  }

  /* Container for mobile addons - will be inserted via JavaScript */
  .mobile-addons-container {
    display: block !important;
    margin: 20px 0;
    width: 100%;
  }

  /* Prevent multiple click events on addon buttons */
  .mobile-addons-container .mattress-drawer-open-btn {
    pointer-events: auto !important;
  }

  /* Ensure no event propagation issues */
  .mobile-addons-container .addson-main-button-div {
    position: relative;
    z-index: 10;
  }
}

.main-btn-price-size {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-product-show span.save-comp {
  display: none;
}
