/* Platform Override Styles */

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

div#CustomerRewardPane {
  display: none !important;
}

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

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 to match the sidepanel accordion appearance */
.col-1:has(.productSize){
  margin-bottom: 0 !important;
}

.productSize {
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  min-width: 100%;
}

.productSize a.accordionTrigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
  background: transparent;
  border: none;
  min-width: 100% !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;
}

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

.starbuy-drawer[data-drawer-number="1"]{
  z-index: 1500 !important;
}
/* =============================================================================
   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:      #92c849;
  --pdpSidePanel-copy-btn-color:   #fff;
}


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

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


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

.pdpSidePanel-accordions {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--pdpSidePanel-border);
}

.pdpSidePanel-accordion {
  border: none;
  border-bottom: 1px solid var(--pdpSidePanel-border);
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

/* 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: 15px 0;
  cursor: pointer;
  user-select: none;
  font-family: var(--pdpSidePanel-font);
  font-size: 0.875rem;
  font-weight: 400;
  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 — no pill, just the raw SVG */
.pdpSidePanel-accordion__header .pdpSidePanel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: none;
  color: #888;
}

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

/* Content panel — hidden by default */
.pdpSidePanel-accordion__content {
  display: none;
  padding: 0 0 16px;
  border-top: none;
  font-size: 0.8125rem;
  line-height: 1.65;
  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
   ============================================================================= */

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

#cta-cr .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  color: #92c849;
}

#cta-delivery.pdpSidePanel-free-delivery .pdpSidePanel-accordion__header .pdpSidePanel-icon {
  color: #92c849;
}


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

#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,
#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;
}

.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: 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;
  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: #92c849;
  margin: 0 0 12px;
}


/* =============================================================================
   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: #92c849 !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: #5a8a3a !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;
}

