/* Store-owned PDP container corrections. Keeps the Builder module flow intact. */
body.single-product .lq-sp {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

body.single-product .lq-sp > .site-container.gds-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px !important;
  margin-inline: auto !important;
  padding-inline: clamp(18px, 3vw, 48px) !important;
}

body.single-product .lq-sp .lqsp-desktop {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

body.single-product .lq-sp .lqsp-desktop > * {
  box-sizing: border-box;
  min-width: 0;
}

/* Keep the purchase decision compact and give the real add-to-cart action one
   clear, consistent treatment without changing Builder module behavior. */
body.single-product .lq-sp .lqsp-priceflow {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .lq-sp .lqsp-priceflow .lq-price-main {
  color: var(--gds-color-text, #111316) !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 750 !important;
  line-height: 1.05 !important;
}

/* Core already emits the sale percentage from WooCommerce's active sale data.
   Arrange its existing badge beside the current price without duplicating it. */
body.single-product .lq-sp .lqsp-priceflow .lq-price-anchor:has(.lq-badge-sale--inline[data-price-role="sale-pct"]) {
  display: grid !important;
  grid-template-columns: max-content max-content;
  grid-template-areas:
    "regular regular"
    "current badge";
  align-items: baseline;
  justify-content: start;
  column-gap: 10px;
  row-gap: 4px;
}

body.single-product .lq-sp .lqsp-priceflow .lq-price-anchor:has(.lq-badge-sale--inline[data-price-role="sale-pct"]) .lq-price-main {
  grid-area: current;
}

body.single-product .lq-sp .lqsp-priceflow .lq-price-row--regular {
  display: contents !important;
}

body.single-product .lq-sp .lqsp-priceflow .lq-price-regular-label {
  display: none !important;
}

body.single-product .lq-sp .lqsp-priceflow .lq-price-row--regular del {
  grid-area: regular;
  align-self: start;
}

body.single-product .lq-sp .lqsp-priceflow .lq-badge-sale--inline[data-price-role="sale-pct"] {
  position: static !important;
  inset: auto !important;
  grid-area: badge;
  display: inline-flex !important;
  align-items: center;
  align-self: center;
  justify-self: start;
  width: max-content !important;
  min-height: 24px !important;
  height: auto !important;
  justify-content: center;
  padding: 0 9px !important;
  border: 0;
  border-radius: 4px !important;
  background: var(--gds-color-success, #00a650) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1;
  white-space: nowrap;
}

body.single-product .lq-sp .lqsp-buyflow {
  margin-top: 12px !important;
}

body.single-product .lq-sp .lqsp-buyflow .lq-custom-btns {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  margin: 0 !important;
}

body.single-product .lq-sp .lqsp-buyflow .lq-custom-btns .lq-btn-buy-now {
  display: none !important;
}

body.single-product .lq-sp .lqsp-buyflow .lq-custom-btns .lq-btn-add-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0 !important;
  padding: 12px 20px;
  border: 1px solid var(--gds-color-text, #111316) !important;
  border-radius: var(--gds-radius-control, 8px) !important;
  background: var(--gds-color-text, #111316) !important;
  color: var(--gds-color-surface, #fff) !important;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  box-shadow: none !important;
}

body.single-product .lq-sp .lqsp-buyflow .lq-custom-btns .lq-btn-add-cart:hover,
body.single-product .lq-sp .lqsp-buyflow .lq-custom-btns .lq-btn-add-cart:focus-visible {
  background: #303236 !important;
  border-color: #303236 !important;
}

body.single-product .lq-sp .lqsp-shippingflow {
  margin-top: 14px !important;
}

@media (max-width: 1023px) {
  body.single-product .lq-sp > .site-container.gds-container {
    padding-inline: 18px !important;
  }

  body.single-product .lq-sp .lqsp-desktop {
    align-items: stretch;
  }

  body.single-product .lq-sp .lqsp-desktop > * {
    width: 100%;
    max-width: 100%;
  }

  body.single-product .lq-sp .lqsp-titleflow,
  body.single-product .lq-sp .lqsp-buyflow,
  body.single-product .lq-sp .lp-fragrance-notes,
  body.single-product .lq-sp .lq-tabs,
  body.single-product .lq-sp .lqsp-related-products-section {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Keep delivery information beside the price, ahead of format selection. */
  body.single-product .lq-sp .lqsp-desktop > * {
    order: 11;
  }

  body.single-product .lq-sp .loq-pdp-breadcrumbs { order: 0; }
  body.single-product .lq-sp .lqsp-gallery { order: 1; }
  body.single-product .lq-sp .lp-fragrance-identity { order: 2; }
  body.single-product .lq-sp .lqsp-titleflow { order: 3; }
  body.single-product .lq-sp .lp-pdp-reviews { order: 4; }
  body.single-product .lq-sp .lp-pdp-short-description { order: 5; }
  body.single-product .lq-sp .lqsp-priceflow { order: 6; }
  body.single-product .lq-sp .lq-shipping-minimal { order: 7; }
  body.single-product .lq-sp .lq-trust-info-section { order: 8 !important; }
  body.single-product .lq-sp .lp-fragrance-formats { order: 9; }
  body.single-product .lq-sp .lqsp-buyflow {
    order: 10;
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  body.single-product .lq-sp .lp-fragrance-notes { order: 11; }
  body.single-product .lq-sp .lq-tabs { order: 12; }
  body.single-product .lq-sp .lqsp-related-products-section { order: 13; }

  body.single-product .lq-sp .lqsp-priceflow {
    margin: 0 !important;
  }

  body.single-product .lq-sp .lqsp-buyflow {
    margin-top: 12px !important;
  }

  body.single-product .lq-sp .lqsp-titleflow .product_title {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  body.single-product .lq-sp .lp-fragrance-notes__grid {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.single-product .lq-sp .lp-fragrance-notes__card {
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  body.single-product .lq-sp .lqsp-desktop {
    column-gap: clamp(32px, 3.5vw, 56px);
  }

  /* Builder marks editorial blocks as full-width. Core's PDP grid keeps them
     in the purchase column unless the store enforces the full row here. */
  body.single-product .lq-sp .lqsp-desktop > .lqsp-block--full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100%;
  }

  /* Keep the purchase sequence explicit while preserving Builder blocks. */
  body.single-product .lq-sp .lqsp-priceflow {
    grid-column: 2 !important;
    grid-row: 6 !important;
    margin: 0 !important;
  }

  body.single-product .lq-sp .lp-pdp-reviews {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  body.single-product .lq-sp .lp-pdp-short-description {
    grid-column: 2 !important;
    grid-row: 5 !important;
  }

  body.single-product .lq-sp .lq-trust-info-section {
    grid-column: 2 !important;
    grid-row: 8 !important;
  }

  body.single-product .lq-sp .lp-fragrance-formats {
    grid-column: 2 !important;
    grid-row: 9 !important;
  }

  body.single-product .lq-sp .lqsp-buyflow {
    grid-column: 2 !important;
    grid-row: 10 !important;
  }

  body.single-product .lq-sp .lq-shipping-minimal {
    grid-column: 2 !important;
    grid-row: 7 !important;
  }
}

/* Unboxed delivery copy uses the published global benefit/success token. */
body.single-product .lq-sp .lq-shipping-minimal {
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--gds-color-success, #00a650) !important;
  font-size: 12px !important;
  line-height: 1.35;
}

body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-icon,
body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-main,
body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-sub,
body.single-product .lq-sp .lq-shipping-minimal strong {
  color: var(--gds-color-success, #00a650) !important;
}

body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 18px;
  margin: 0 !important;
}

body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-text *,
body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-main,
body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-sub {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.single-product .lq-sp .lq-shipping-minimal .lq-shipping-sub {
  opacity: 0.82;
}


/* Compra protegida sigue al envío como una línea de beneficio, sin tarjeta. */
body.single-product .lq-sp .lq-trust-info-section {
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--gds-color-success, #00a650) !important;
  font-size: 12px !important;
  line-height: 1.35;
}

body.single-product .lq-sp .lq-trust-info-section .lq-trust-info-row {
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .lq-sp .lq-trust-info-section .lq-trust-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0 !important;
  color: var(--gds-color-success, #00a650) !important;
}

body.single-product .lq-sp .lq-trust-info-section .lq-trust-info-content,
body.single-product .lq-sp .lq-trust-info-section .lq-trust-info-link,
body.single-product .lq-sp .lq-trust-info-section .lq-trust-info-text {
  color: var(--gds-color-success, #00a650) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.single-product .lq-sp .lq-trust-info-section .lq-trust-info-content * {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.single-product .lq-sp .lq-trust-info-section .lq-trust-info-link {
  font-weight: 650;
  text-decoration: none;
}

/* Keep the product identity stack compact on every PDP. */
body.single-product .lq-sp .lp-fragrance-identity {
  margin-block-end: -6px !important;
}

body.single-product .lq-sp .lqsp-titleflow {
  margin-block: -2px 0 !important;
}

body.single-product .lq-sp .lqsp-titleflow .product_title {
  margin-block: 0 !important;
}

body.single-product .lq-sp .lp-pdp-reviews {
  margin-block-start: -6px !important;
}
