/* Platform Override Styles */

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

div#CustomerRewardPane {
  display: none !important;
}

.col-1.zflex-w.zflex-v.colourPicker.productColourPicker {
  display: none;
}

/* div#product_just_stars {
  display: none;
} */

div#seconddetails {
  order: 3;
}

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

/* Style .productSize to match the sidepanel accordion appearance */
.productSize {
  border: 1px solid #dce8d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
  min-width: 100%;
}

.productSize:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.productSize a.accordionTrigger {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #151515;
  text-decoration: none;
  transition: background 0.15s ease;
  background: #fff;
  border: none;
  min-width: 100% !important;
}

/* Icon pill — ruler SVG, matches accordion icon slot */
.productSize a.accordionTrigger::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23151515' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3.746 20.254l16.508-16.508M3.746 20.254a2.5 2.5 0 0 1 0-3.536L17.182 3.282a2.5 2.5 0 0 1 3.536 0l.001.001a2.5 2.5 0 0 1 0 3.536L7.282 20.254a2.5 2.5 0 0 1-3.536 0m5.304-10.84l1.768 1.768m2.122-2.122l1.768 1.769m-7.071 7.07l1.768 1.769'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
}

.productSize a.accordionTrigger:hover {
  background: #f5f5f5;
}

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


/* =============================================================================
   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:           #151515;      /* fontColor-primary                    */
  --pdpSidePanel-accent-subtle:    #f5f5f5;      /* backgroundColor-secondary            */
  --pdpSidePanel-border:           #dce8d9;      /* green-tinted dividers                */
  --pdpSidePanel-radius:           10px;         /* global-radius                        */
  --pdpSidePanel-radius-card:      10px;         /* global-radius                        */
  --pdpSidePanel-font:             inherit;      /* Inherits site font stack by default  */

  --pdpSidePanel-rewards-bg:       #e3f2df;      /* light tint of #a8d29e               */
  --pdpSidePanel-double-bg:        #d5ecce;      /* mid tint of #a8d29e                 */
  --pdpSidePanel-triple-bg:        #c8e5c0;      /* deeper tint of #a8d29e              */

  --pdpSidePanel-free-delivery-bg: #e3f2df;      /* matches rewards light tint           */
  --pdpSidePanel-coupons-bg:       #fde8ec;      /* light tint of #C04058                */

  --pdpSidePanel-pip-bg:           #f5f5f5;      /* backgroundColor-secondary            */
  --pdpSidePanel-pip-bg-hover:     #dce8d9;

  --pdpSidePanel-copy-btn-bg:      #445e30;      /* color4 dark green                    */
  --pdpSidePanel-copy-btn-color:   #f8f8f8;      /* fontColor-secondary                  */
}


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

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


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

.pdpSidePanel-accordions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdpSidePanel-accordion {
  border: 1px solid var(--pdpSidePanel-border);
  border-radius: var(--pdpSidePanel-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.pdpSidePanel-accordion:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 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: 11px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  font-family: var(--pdpSidePanel-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdpSidePanel-accent);
  transition: background 0.15s ease;
}

.pdpSidePanel-accordion__header:hover {
  background: var(--pdpSidePanel-accent-subtle);
}

/* Subtle background shift when open */
.pdpSidePanel-accordion > input[type="checkbox"]:checked ~ .pdpSidePanel-accordion__header {
  background: var(--pdpSidePanel-accent-subtle);
}

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

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

/* Icon slot — pill background */
.pdpSidePanel-accordion__header .pdpSidePanel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--pdpSidePanel-accent);
}

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

/* Content panel — hidden by default */
.pdpSidePanel-accordion__content {
  display: none;
  padding: 13px 14px 15px;
  border-top: 1px solid var(--pdpSidePanel-border);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #4a4a4a;
}

.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;
}

/* Pill-style CTA links inside content */
.pdpSidePanel-accordion__content a.pdpSidePanel-delivery-link,
.pdpSidePanel-accordion__content a.pdpSidePanel-rewards-link {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 13px;
  border: 1px solid var(--pdpSidePanel-border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pdpSidePanel-accent);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pdpSidePanel-accordion__content a.pdpSidePanel-delivery-link:hover,
.pdpSidePanel-accordion__content a.pdpSidePanel-rewards-link:hover {
  background: var(--pdpSidePanel-accent-subtle);
  border-color: #c0d4bc;
  opacity: 1;
}


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

#cta-cr {
  background: var(--pdpSidePanel-rewards-bg);
  border-color: #a8d29e;
}

#cta-cr.pdpSidePanel-double {
  background: var(--pdpSidePanel-double-bg);
  border-color: #7dba70;
}

#cta-cr.pdpSidePanel-triple {
  background: var(--pdpSidePanel-triple-bg);
  border-color: #53703c;
}

#cta-cr .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  background: rgba(83, 112, 60, 0.12);
  color: #53703c;
}

#cta-cr .pdpSidePanel-accordion__content {
  background: rgba(255, 255, 255, 0.6);
}


/* =============================================================================
   Accordion — variant: free delivery
   ============================================================================= */

#cta-delivery.pdpSidePanel-free-delivery {
  background: var(--pdpSidePanel-free-delivery-bg);
  border-color: #a8d29e;
}

#cta-delivery.pdpSidePanel-free-delivery .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  background: rgba(83, 112, 60, 0.12);
  color: #53703c;
}

#cta-delivery.pdpSidePanel-free-delivery .pdpSidePanel-accordion__content {
  background: rgba(255, 255, 255, 0.6);
}


/* =============================================================================
   Accordion — variant: coupons
   ============================================================================= */

#cta-coupons {
  background: var(--pdpSidePanel-coupons-bg);
  border-color: #e8a0b0;
}

#cta-coupons .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  background: rgba(192, 64, 88, 0.1);
  color: #C04058;
}

#cta-coupons .pdpSidePanel-accordion__content {
  background: rgba(255, 255, 255, 0.6);
}

.pdpSidePanel-coupon-code {
  border-color: #e8a0b0;
  color: #C04058;
}


/* =============================================================================
   Accordion — variant: colours (rainbow border)
   ============================================================================= */

#cta-colours {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(
      from 0deg,
      #ff0000, #ff7700, #ffdd00, #00cc44, #0088ff, #7700ff, #ff0000
    ) border-box;
}

#cta-colours .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  background: linear-gradient(135deg, #ffeeee, #eeeeff);
  color: #7700ff;
}


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

#cta-starbuys {
  cursor: pointer;
  background: #f4eef8;
  border-color: #e0d0ed;
}

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

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

/* Right-pointing arrow in place of chevron */
#cta-starbuys .pdpSidePanel-accordion__header::after {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0.45;
}

#cta-starbuys:hover {
  background: #e0d0ed;
}

#cta-starbuys .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  background: rgba(145, 88, 191, 0.12);
  color: #9158bf;
}


/* =============================================================================
   Accordion — variant: Klarna (popup trigger)
   ============================================================================= */

#cta-finance.pdpSidePanel-popup .pdpSidePanel-accordion__header {
  cursor: pointer;
}

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


/* =============================================================================
   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: 48px;
  height: 48px;
  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: 54px;
  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;
  padding: 10px 0;
  border-bottom: 1px solid var(--pdpSidePanel-border);
}

.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: #fff;
  border: 1px dashed #b3c4f5;
  border-radius: 6px;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  font-family: monospace;
  color: #3355cc;
}

.pdpSidePanel-coupon-copy {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--pdpSidePanel-copy-btn-bg);
  color: var(--pdpSidePanel-copy-btn-color);
  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.875rem;
  font-weight: 700;
  color: var(--pdpSidePanel-accent);
  margin: 0 0 10px;
}


/* =============================================================================
   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 var(--pdpSidePanel-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--pdpSidePanel-accent);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pdpSidePanel-hps-st-toggle-btn:hover {
  background: var(--pdpSidePanel-accent-subtle);
  border-color: #c0d4bc;
}

.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%;
}


.maxInner:has(#prodInfoLeft){
  overflow: visible !important;
}
