/* Platform Override Styles */

.starbuy-product-preview {
  display: none;
}

#firstdetails .productColourPicker.colourPicker{
  display: none !important;
}

div#CustomerRewardPane {
  display: none !important;
}

#firstdetails > div.productColourPicker {
  order: -1;
}

.starbuy-drawer[data-state="open"] {
  opacity: 1;
  z-index: 999999999 !important;
}

div#product_just_stars {
  display: none;
}

a.kl.kl-cta {
    display: none !important;
}

.finance-output{
  display: none !important;
}

div#seconddetails {
  order: 3;
}

.cc-lookup-service-wrapper {
  order: 4;
}

/* Style .productSize as a card to match the sidepanel accordions */
.col-1:has(.productSize){
  margin-bottom: 0 !important;
  order: 0 !important;
}

.productSize {
  border: 1px solid var(--pdpSidePanel-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  min-width: 100%;
  padding: 0 14px;
  margin-bottom: 5px;
}

.productSize a.accordionTrigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pdpSidePanel-accent);
  text-decoration: none;
  background: transparent;
  border: none;
  min-width: 100% !important;
}

/* Icon — soft brand-green pill with a ruler icon (replaces the
   platform's ::before icon so it matches the accordion headers) */
.productSize a.accordionTrigger::before {
  content: '';
  display: flex;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--pdpSidePanel-brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314304e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z'/%3E%3Cpath d='m14.5 12.5 2-2'/%3E%3Cpath d='m11.5 9.5 2-2'/%3E%3Cpath d='m8.5 6.5 2-2'/%3E%3Cpath d='m17.5 15.5 2-2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  filter: none !important;
}

/* Right-pointing arrow — matches starbuys */
.productSize a.accordionTrigger::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #999;
  border-bottom: 1.5px solid #999;
  transform: rotate(-45deg) translateY(-1px);
  margin-left: auto;
  flex-shrink: 0;
}

.productSize a:hover::before{
  filter: none !important;
}

#firstdetails > div.cc-lookup-service-wrapper{
  margin-top: 1rem;
}


/* =============================================================================
   PDP Sidepanel
   Styles for the accordion CTA panel (rewards, Klarna, delivery, starbuys,
   coupons, contact) and the signpost toggles.

   All classes are namespaced with "pdpSidePanel-" to prevent collisions with
   host-site stylesheets.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Custom properties — adjust per deployment
   ----------------------------------------------------------------------------- */
:root {
  --pdpSidePanel-accent:           #1a1a1a;
  --pdpSidePanel-accent-subtle:    #f7f7f7;
  --pdpSidePanel-border:           #e5e5e5;
  --pdpSidePanel-radius:           0px;
  --pdpSidePanel-radius-card:      0px;
  --pdpSidePanel-font:             inherit;

  --pdpSidePanel-rewards-bg:       transparent;
  --pdpSidePanel-double-bg:        transparent;
  --pdpSidePanel-triple-bg:        transparent;
  --pdpSidePanel-free-delivery-bg: transparent;
  --pdpSidePanel-coupons-bg:       transparent;

  --pdpSidePanel-pip-bg:           #f5f5f5;
  --pdpSidePanel-pip-bg-hover:     #e5e5e5;

  --pdpSidePanel-copy-btn-bg:      #e87339;
  --pdpSidePanel-copy-btn-color:   #fff;

  /* Orange accent tints (pre-launch notice) */
  --pdpSidePanel-orange:           #e87339;   /* accent orange */
  --pdpSidePanel-orange-soft:      #fdf1ea;   /* pale orange tint */
  --pdpSidePanel-orange-border:    #f4cdb2;   /* light orange border */

  /* The Ski Shop (Captains Cabin Sevenoaks) brand palette — navy/blue with an orange accent */
  --pdpSidePanel-brand:               #33668b;    /* medium blue — solid brand pill */
  --pdpSidePanel-brand-dark:          #14304e;    /* navy — readable link/CTA text + icon glyphs */
  --pdpSidePanel-brand-darker:        #0e2338;    /* hover text */
  --pdpSidePanel-brand-soft:          #eaf1f6;    /* pale blue tint */
  --pdpSidePanel-icon-gradient:       linear-gradient(135deg, #3a76a1 0%, #14304e 100%); /* icon pills */
  --pdpSidePanel-icon-gradient-soft:  linear-gradient(135deg, #eaf1f6 0%, #cfe0ec 100%); /* soft pills */

  /* Aliases kept for the expert-advice card rules */
  --pdpSidePanel-green:            #14304e;
  --pdpSidePanel-green-hover:      #0e2338;
  --pdpSidePanel-green-soft:       #eaf1f6;
}


/* =============================================================================
   Layout
   ============================================================================= */

.pdpSidePanel-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}


/* =============================================================================
   Accordion — base
   ============================================================================= */

.pdpSidePanel-accordions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: none;
}

/* Every dropdown is a rounded, subtly-bordered card */
.pdpSidePanel-accordion {
  border: 1px solid var(--pdpSidePanel-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 0 14px;
}

/* Hide the native checkbox */
.pdpSidePanel-accordion > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Accordion header */
.pdpSidePanel-accordion__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
  font-family: var(--pdpSidePanel-font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pdpSidePanel-accent);
}

/* Chevron via ::after */
.pdpSidePanel-accordion__header::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #999;
  border-bottom: 1.5px solid #999;
  transform: rotate(45deg) translateY(-2px);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Rotate chevron when open */
.pdpSidePanel-accordion > input[type="checkbox"]:checked ~ .pdpSidePanel-accordion__header::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Icon — soft circular pill tinted in the brand green */
.pdpSidePanel-accordion__header .pdpSidePanel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pdpSidePanel-brand-soft);
  color: var(--pdpSidePanel-brand-dark);
}

.pdpSidePanel-accordion__header .pdpSidePanel-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Content panel — hidden by default */
.pdpSidePanel-accordion__content {
  display: none;
  padding: 0 0 13px;
  border-top: none;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #555;
}

.pdpSidePanel-accordion > input[type="checkbox"]:checked ~ .pdpSidePanel-accordion__content {
  display: block;
}

.pdpSidePanel-accordion__content p {
  margin: 0 0 8px;
}

.pdpSidePanel-accordion__content p:last-child {
  margin-bottom: 0;
}

.pdpSidePanel-accordion__content a {
  color: var(--pdpSidePanel-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pdpSidePanel-accordion__content a:hover {
  opacity: 0.7;
}

/* CTA links inside content */
.pdpSidePanel-accordion__content a.pdpSidePanel-delivery-link,
.pdpSidePanel-accordion__content a.pdpSidePanel-rewards-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--pdpSidePanel-accent);
}

.pdpSidePanel-accordion__content a.pdpSidePanel-delivery-link:hover,
.pdpSidePanel-accordion__content a.pdpSidePanel-rewards-link:hover {
  opacity: 0.6;
}


/* =============================================================================
   Accordion — variant: rewards
   ============================================================================= */

/* Highlighted rewards card */
#cta-cr {
  background: linear-gradient(180deg, var(--pdpSidePanel-brand-soft) 0%, #f7fafc 100%);
  border-color: #b1c9da;
}

#cta-cr .pdpSidePanel-accordion__header {
  font-weight: 700;
}

/* Solid brand-green icon pill to make rewards stand out */
#cta-cr .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  background: var(--pdpSidePanel-brand);
  color: #fff;
}


/* =============================================================================
   Accordion — variant: starbuys (link-style, no checkbox toggle)
   ============================================================================= */

/* Highlighted star buys card — soft orange to make the deal stand out */
#cta-starbuys {
  background: linear-gradient(180deg, var(--pdpSidePanel-orange-soft) 0%, #fffaf7 100%);
  border-color: var(--pdpSidePanel-orange-border);
}

/* Solid orange icon pill */
#cta-starbuys .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  background: var(--pdpSidePanel-orange);
  color: #fff;
}

#cta-starbuys a {
  display: block;
  text-decoration: none;
  color: inherit;
}

#cta-starbuys .pdpSidePanel-accordion__header {
  pointer-events: none;
  font-weight: 700;
}

/* Right-pointing arrow in place of chevron */
#cta-starbuys .pdpSidePanel-accordion__header::after,
#cta-reviews .pdpSidePanel-accordion__header::after {
  transform: rotate(-45deg) translateY(-1px);
}

#cta-reviews a {
  display: block;
  text-decoration: none;
  color: inherit;
}

#cta-reviews .pdpSidePanel-accordion__header {
  pointer-events: none;
}

/* Finance provider tabs */
.pdpSidePanel-finance-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 16px;
}

.pdpSidePanel-finance-tab {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  border: 1px solid #e5e5e5;
  border-bottom: none;
  margin-bottom: -1px;
  background: #f7f7f7;
  font-family: var(--pdpSidePanel-font);
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  color: #888;
  transition: color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.pdpSidePanel-finance-tab + .pdpSidePanel-finance-tab {
  border-left: none;
}

/* Rounded top corners on the tab strip. The right radius follows the last
   VISIBLE tab, since the Novuna tab starts hidden (display:none) as last child. */
.pdpSidePanel-finance-tab:first-child {
  border-top-left-radius: 8px;
}

.pdpSidePanel-finance-tab:last-child:not(.pdpSidePanel-finance-tab--hidden),
.pdpSidePanel-finance-tab:not(.pdpSidePanel-finance-tab--hidden):has(+ .pdpSidePanel-finance-tab--hidden:last-child) {
  border-top-right-radius: 8px;
}

.pdpSidePanel-finance-tab:hover {
  background: #efefef;
  color: #1a1a1a;
}

.pdpSidePanel-finance-tab--active {
  background: #fff;
  color: #1a1a1a;
  font-weight: 500;
  border-bottom-color: #fff;
}

.pdpSidePanel-finance-tab--hidden {
  display: none;
}

/* Finance content panels */
.pdpSidePanel-finance-panel {
  display: none;
}

.pdpSidePanel-finance-panel--active {
  display: block;
  padding-top: 4px;
}

.pdpSidePanel-klarna-details {
  padding: 4px 0;
}

/* PayPal panel fine print */
.pdpSidePanel-paypal-terms {
  font-size: 0.72rem !important;
  color: #888 !important;
  line-height: 1.55;
  margin-top: 8px;
}

.pdpSidePanel-paypal-terms a {
  color: #0070ba !important;
}


/* Novuna panel — mirror iframe wrapper */
#pdpSidePanel-novuna-content iframe {
  display: block;
  width: 100%;
  border: none;
}


/* =============================================================================
   Colour swatches
   ============================================================================= */

.pdpSidePanel-colour-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdpSidePanel-colour-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--pdpSidePanel-accent);
}

.pdpSidePanel-colour-swatch img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  object-fit: cover;
  transition: outline-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.pdpSidePanel-colour-swatch:hover img {
  outline-color: var(--pdpSidePanel-border);
  transform: scale(1.07);
}

.pdpSidePanel-colour-swatch--active img {
  border-color: var(--pdpSidePanel-accent);
  outline-color: var(--pdpSidePanel-accent);
  outline-offset: 1px;
}

.pdpSidePanel-colour-swatch__name {
  font-size: 0.6875rem;
  text-align: center;
  line-height: 1.2;
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #777;
}

.pdpSidePanel-colour-swatch--active .pdpSidePanel-colour-swatch__name {
  font-weight: 700;
  color: var(--pdpSidePanel-accent);
}


/* =============================================================================
   Coupon items
   ============================================================================= */

.pdpSidePanel-coupon-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid var(--pdpSidePanel-border);
  padding-block: .8rem;
}

.pdpSidePanel-coupon-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdpSidePanel-coupon-item__code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdpSidePanel-coupon-code {
  display: inline-block;
  padding: 3px 10px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  font-family: monospace;
  color: #1a1a1a;
}

.pdpSidePanel-coupon-copy {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pdpSidePanel-coupon-copy:hover {
  opacity: 0.82;
  text-decoration: none;
  /* color: var(--pdpSidePanel-copy-btn-color); */
}

.pdpSidePanel-coupon-desc {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pdpSidePanel-accent);
}

.pdpSidePanel-coupon-how {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
}


/* =============================================================================
   "Why buy" title
   ============================================================================= */

p.pdpSidePanel-reasons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pdpSidePanel-brand-dark);
  margin: 0 0 12px;
}


/* =============================================================================
   Expert advice — "Need Help Choosing the Right Gear?"
   Standalone rounded card that overrides the flat accordion styling.
   Scoped to #cta-talk so other accordions are unaffected.
   ============================================================================= */

/* Push the "Need Expert Ski Advice?" card to the bottom of the accordion column
   (the flex parent), below reviews/colours which are appended after render. */
#cta-talk {
  order: 1;
}

/* Header — bold title (shares the base card + brand icon pill) */
#cta-talk .pdpSidePanel-accordion__header {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Content — acts as a query container so the options reflow to the
   space actually available (not the viewport width) */
#cta-talk .pdpSidePanel-accordion__content {
  padding: 0 0 13px;
  color: #333;
  container-type: inline-size;
  container-name: pdpContact;
}

.pdpSidePanel-contact-intro {
  margin: 0 0 14px !important;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #333;
}

/* Options grid — single column of rounded card tiles */
.pdpSidePanel-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Each tile: icon on the left, title/desc/link stacked to its right */
.pdpSidePanel-contact-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon desc"
    "icon cta";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border: 1px solid var(--pdpSidePanel-border);
  border-radius: 10px;
}

/* Keep tiles completely static in every interaction state (cancels the generic
   content-link hover fade + any host-site a: styling that bleeds in). */
#cta-talk .pdpSidePanel-accordion__content a.pdpSidePanel-contact-option,
#cta-talk .pdpSidePanel-accordion__content a.pdpSidePanel-contact-option:hover,
#cta-talk .pdpSidePanel-accordion__content a.pdpSidePanel-contact-option:focus,
#cta-talk .pdpSidePanel-accordion__content a.pdpSidePanel-contact-option:active,
#cta-talk .pdpSidePanel-accordion__content a.pdpSidePanel-contact-option:visited {
  opacity: 1;
  background: #fff;
  border:1px solid var(--pdpSidePanel-border);
  outline: none;
  box-shadow: none;
  color: inherit;
  text-decoration: none !important;
}


.pdpSidePanel-contact-option__icon {
  grid-area: icon;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pdpSidePanel-brand-soft);
  color: var(--pdpSidePanel-brand-dark);
}

.pdpSidePanel-contact-option__icon svg {
  width: 18px;
  height: 18px;
}

.pdpSidePanel-contact-option__title {
  grid-area: title;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.pdpSidePanel-contact-option__desc {
  grid-area: desc;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #555;
}

.pdpSidePanel-contact-option__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pdpSidePanel-copy-btn-bg); /* orange accent — CTA text + arrow */
}

.pdpSidePanel-contact-option__arrow {
  display: inline-flex;
  align-items: center;
}

.pdpSidePanel-contact-option__arrow svg {
  width: 13px;
  height: 13px;
}

/* =============================================================================
   Signpost toggles
   ============================================================================= */

.pdpSidePanel-hps-st-toggle {
  display: block;
}

.pdpSidePanel-hps-st-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  padding: 5px 13px;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  color: var(--pdpSidePanel-accent);
  transition: border-color 0.15s ease;
}

.pdpSidePanel-hps-st-toggle-btn:hover {
  border-color: #999;
}

.pdpSidePanel-hps-st-toggle-btn[aria-expanded="true"] {
  background: var(--pdpSidePanel-accent);
  color: #fff;
  border-color: var(--pdpSidePanel-accent);
}

.pdpSidePanel-hps-st-toggle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pdpSidePanel-hps-st-toggle-list[hidden] {
  display: none;
}

.pdpSidePanel-hps-st-toggle-list a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--pdpSidePanel-pip-bg);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--pdpSidePanel-accent);
  text-decoration: none;
  transition: background 0.15s ease;
}

.pdpSidePanel-hps-st-toggle-list a:hover {
  background: var(--pdpSidePanel-pip-bg-hover);
}


/* =============================================================================
   Utility
   ============================================================================= */

.pdpSidePanel-weight-bold {
  font-weight: 700;
}

.pdpSidePanel-zflex {
  display: flex;
  flex-direction: column;
}

.pdpSidePanel-col-1 {
  width: 100%;
}


/* =============================================================================
   Platform coupon block — #detailfast-coupons
   Restyled to match the sidepanel minimal aesthetic
   ============================================================================= */

#detailfast-coupons {
  font-family: inherit;
  font-size: 0.8125rem;
  color: #1a1a1a;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 0;
}

.coupon-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.coupon-preview:hover .coupon-view-icon {
  opacity: 1;
}

.coupon-preview-label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.coupon-preview-label .coupon-description {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.coupon-icon {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  opacity: 0.45 !important;
}

.coupon-code-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.coupon-code {
  display: inline-block !important;
  padding: 3px 10px !important;
  background: #f7f7f7 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 2px !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.06em !important;
  font-family: monospace !important;
  color: #1a1a1a !important;
  font-weight: 400 !important;
  user-select: all;
}

/* Override feather font icon — replace with green copy button */
.coupon-copy-icon {
  font-family: inherit !important;
  font-size: 0 !important;
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  cursor: pointer !important;
  background-color: #e87339 !important;
  border-radius: 2px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Crect width='13' height='13' x='9' y='9' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 15px 15px !important;
  transition: opacity 0.15s ease !important;
  opacity: 1 !important;
}

.coupon-copy-icon::before {
  content: '' !important;
}

.coupon-copy-icon:hover {
  opacity: 0.75 !important;
}

/* Copied state — tick icon */
.coupon-copy-icon[data-active="true"] {
  background-color: #c85a24 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") !important;
}

.coupon-copy-icon[data-active="true"]:hover {
  opacity: 1 !important;
  cursor: default !important;
}

.coupon-copy-icon[data-active="true"]::before {
  content: '' !important;
}

/* Hide the view/arrow icon — not needed in this context */
.coupon-view-icon {
  display: none !important;
}

/* =============================================================================
   Pre-launch product notice (host #preLaunchText) + terms popup (#preOrderTerms)
   Standalone element — a soft info card with a live countdown (built by
   initPreLaunchCountdown in pdp-sidepanel.js). Scoped to the IDs so nothing
   bleeds onto other host elements; !important overrides host utility classes
   (colorwhite / centralise).
   ============================================================================= */
#preLaunchText.pdpSidePanel-prelaunch {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding: .5rem !important;
  padding-left: 1rem !important;
  margin: 0 0 10px !important;
  background: var(--pdpSidePanel-orange-soft) !important;
  color: var(--pdpSidePanel-brand-dark) !important;
  border: 1px solid var(--pdpSidePanel-orange-border);
  border-radius: 10px;
  text-align: left !important;
  font-size: 0.75rem;
  line-height: 1.4;
  order: -1;
}

/* Clock icon pill (reuses the ruler-icon pattern) */
.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e87339' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pdpSidePanel-orange);
}

/* Fallback text when no confirmed despatch date is available */
.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__tbc {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pdpSidePanel-brand-dark);
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__count {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__num {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pdpSidePanel-brand-dark);
  font-variant-numeric: tabular-nums;
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__unit {
  font-size: 0.625rem;
  font-weight: 500;
  color: #667;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* "Available now" replacement once the countdown hits zero */
.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__count--ready {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pdpSidePanel-brand-dark);
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 0.6875rem;
  color: var(--pdpSidePanel-brand-dark);
}

.pdpSidePanel-prelaunch .pdpSidePanel-prelaunch__date {
  opacity: 0.8;
}

/* "Find out more" link — orange accent + arrow */
#preLaunchText.pdpSidePanel-prelaunch a {
  color: var(--pdpSidePanel-copy-btn-bg) !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  background: none !important;
  padding: 5px;
  width: fit-content;
  line-height: normal;
}

#preLaunchText.pdpSidePanel-prelaunch a::after {
  content: ' →';
}

#preLaunchText.pdpSidePanel-prelaunch a:hover {
  text-decoration: underline !important;
}

/* ---- Terms popup ---------------------------------------------------------- */
#preOrderTerms {
  max-width: 460px;
  padding: 20px 22px !important;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #333;
}

#preOrderTerms .title {
  color: var(--pdpSidePanel-brand-dark);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
}

#preOrderTerms #preLaunchDescription {
  margin-bottom: 10px;
}

#preOrderTerms p {
  margin: 0 0 10px;
}

#preOrderTerms .fancybox-close-small {
  color: var(--pdpSidePanel-brand-dark);
}

/* Inner date box (host adds .hideme by default — styled in case it's shown) */
#preOrderTerms .prelaunch {
  background: var(--pdpSidePanel-brand-soft);
  color: var(--pdpSidePanel-brand-dark);
  border-radius: 8px;
  font-weight: 600;
}

/* ========= PDP Image Layout - 2x2 Grid (.JS in Assets Folder) ======= */

:root {
    --pdp-image-radius: 5px;              /* corner radius for all PDP gallery images/tiles */
    --pdp-border-color: #c2c2c261;        /* border around images/tiles */
    --pdp-bg: #fff;                       /* gallery/tile background */
    --pdp-play-btn-bg: rgb(0 0 0 / 36%);  /* YouTube play button */
    --pdp-play-btn-border: #fff;
    --pdp-play-btn-hover: #FF0000;
}

/* --- DESKTOP VIEW --- */
@media screen and (min-width: 1024px) {

    /* 1. LAYOUT COLUMNS */
    div#prodInfoLeft {
        margin-block: 1rem;
        width: 60%;
        min-height: 100vh;
    }

    div#prodInfoRight {
        width: 40%;
    }

    /* 2. OVERFLOW FIXES */
    .grid.fixed.productPageTop,
    .container,
    .maxInner,
    .zflex-w,
    #prodInfoRight {
        overflow: visible !important;
    }

    .productPageTop .zflex-w {
        align-items: stretch !important;
    }

    div#webdes_pdp .productPageTop .maxInner {
        max-width: 100%;
        padding-inline: 1rem;
    }

    /* 3. 2x2 IMAGE GRID
       Main image top-left, first extra image top-right,
       remaining images flow 2-per-row down the page. */
    div#prodInfoLeft {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-content: start;
    }

    /* Thumbnail wrapper dissolves so its links join the grid */
    div#detailMivThumb {
        display: contents;
    }

    /* 4. MAIN IMAGE */
    #detailMiv {
        border: 1px solid var(--pdp-border-color);
        border-radius: var(--pdp-image-radius);
        aspect-ratio: 1/1;
        max-height: 80vh; /* keep the whole image on screen on laptops */
    }

    div#detailMiv img {
        border-radius: var(--pdp-image-radius);
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    /* Single-image products: main image spans the full width and sticky-scrolls
       alongside the product details. The lone grid row must stretch to the full
       column height, or sticky has no room to travel.
       (the hidden #ModularShortDescription link doesn't count as a thumbnail) */
    #prodInfoLeft:not(:has(a.col-thumbnail:not([href="#ModularShortDescription"]))) {
        align-content: stretch;
    }

    #prodInfoLeft:not(:has(a.col-thumbnail:not([href="#ModularShortDescription"]))) #detailMiv {
        grid-column: 1 / -1;
        align-self: start;
        position: -webkit-sticky;
        position: sticky;
        top: 90px;
    }

    /* Multi-image products: pin the whole image column while the details scroll.
       align-self:flex-start lets the column keep its natural height inside the
       stretched flex row, giving sticky room to travel. */
    #prodInfoLeft:has(a.col-thumbnail:not([href="#ModularShortDescription"])) {
        position: -webkit-sticky;
        position: sticky;
        top: 90px;
        align-self: flex-start;
        min-height: 0;
    }

    .MIVicon {
        border-radius: var(--pdp-image-radius);
        margin: .5rem;
    }

    /* 5. THUMBNAILS (!important beats the base theme's small thumb sizing) */
    div#detailMivThumb a,
    div#detailMivThumb #youTubeLink {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        flex: none !important;
        aspect-ratio: 1/1;
        border: 1px solid var(--pdp-border-color);
        border-radius: var(--pdp-image-radius);
        overflow: hidden;
        filter: grayscale(0) !important;
    }

    div#detailMivThumb a img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover;
        border-radius: var(--pdp-image-radius);
        display: block;
        filter: grayscale(0) !important;
    }

    div#detailMivThumb #youTubeLink .bgStandard {
        display: none !important;
        padding: 0 !important;
    }

    /* Logo filler tile (added by JS when image count is odd) */
    #pdpLogoTile {
        aspect-ratio: 1/1;
        border: 1px solid var(--pdp-border-color);
        border-radius: var(--pdp-image-radius);
        background: var(--pdp-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100% !important;
    }

    #pdpLogoTile img {
        max-width: 60%;
        max-height: 60%;
        object-fit: contain;
    }

    /* Show more button spans both grid columns */
    #pdpShowMoreBtn {
        grid-column: 1 / -1;
    }

    /* 6. STICKY */
    #firstdetails {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 90px;
        align-self: flex-start;
        height: fit-content !important;
        z-index: 50;
        margin-bottom: 0 !important;
        overflow: scroll !important;
        padding-top: 1rem !important;
    }
}

/* --- MOBILE VIEW (unchanged) --- */
@media screen and (max-width: 1024px) {
    div#prodInfoLeft {
        display: flex;
        flex-flow: row;
        overflow-x: scroll;
        padding: .5rem;
        background: var(--pdp-bg);
    }

    #detailMiv::before {
       content: 'More Images >';
       font-size: 0.7rem;
       position: absolute;
       bottom: 1rem;
       right: 2rem;
       letter-spacing: 0.05rem;
       z-index: 1;
       background: var(--color4);
       padding: .5rem;
       border-radius: var(--pdp-image-radius);
    }

    div#detailMivThumb {
        display: flex;
        flex-flow: row;
        overflow: visible;
        gap: 1rem;
        margin-block: 0;
    }

    #detailMivThumb > a img,
    .cssItemImg > a img {
        min-width: 85vw !important;
        width: 85vw !important;
        height: 100% !important;
        aspect-ratio: 1/1 !important;
        border-radius: var(--pdp-image-radius);
        object-fit: cover;
        border: 1px solid var(--pdp-border-color);
    }

    .cssItemImg > a img {
        margin-right: 1rem;
    }

    /* Hiding logic for single images */
    #prodInfoLeft:has(#detailMivThumb .col-thumbnail:only-child) {
        overflow: hidden;
    }

    #prodInfoLeft:has(#detailMivThumb .col-thumbnail:only-child) .cssItemImg > a img {
        width: 100% !important;
        padding: .5rem !important;
    }

    #detailMivThumb:has(> .col-thumbnail:only-child) {
        display: none;
    }

    #prodInfoLeft:has(#detailMivThumb .col-thumbnail:only-child) #detailMiv::before {
       display: none;
    }

    #detailMivThumb .col-thumbnail {
        flex: 0 !important;
        min-width: 85vw;
        border-radius: var(--pdp-image-radius);
    }

    #youTubeLink .bgStandard {
        background: transparent;
        border-radius: var(--pdp-image-radius);
    }

    #brand-logo-area > a {
        padding-right: 1rem !important;
        padding-top: 0;
    }

    #brand-logo-area > a img {
        border-radius: var(--pdp-image-radius) !important;
    }

    .MIViconZoom {
        display: none;
    }

    /* Desktop-only logo filler tile */
    #pdpLogoTile {
        display: none;
    }
}

/* Hide short desc */
a[href="#ModularShortDescription"] {
    display: none !important;
}

/* --- YOUTUBE PLAY BUTTON STYLING --- */
#youTubeLink {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

#youTubeLink::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--pdp-play-btn-bg);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30px;
    border-radius: 50%;
    border: 2px solid var(--pdp-play-btn-border);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

#youTubeLink:hover::after {
    background-color: var(--pdp-play-btn-hover);
    transform: scale(1.1);
    border-color: var(--pdp-play-btn-hover);
}

/* --- SHOW MORE (text link style) --- */
#pdpShowMoreBtn {
    width: 100%;
    padding: 12px 0;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color1);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 4px;
    line-height: normal;
    margin-bottom: 1rem;
}

#pdpShowMoreBtn:hover {
    text-decoration-thickness: 2px;
}

