/*
 * Hummingbird cart-detailed-product-line renders the regular price natively inside
 * .product-line__item--prices when a specific price applies.
 * Hide our hook-injected discount block in that context to avoid duplication.
 * In the blockcart modal there is no .product-line__item--prices ancestor, so it remains visible.
 */
.product-line__item--prices:has(.product-line__item-regular-price) .akenlab-discount-display {
    display: none;
}


/* =====================================================================
   SEO skeleton — #akenlab-configurator-root content before React mounts.

   DisplayProductAdditionalInfoHook renders this HTML into the container.
   React replaces it when the JS bundle loads. The goal here is:
     1. A readable, on-brand appearance for crawlers and slow-JS visitors.
     2. Reduced CLS: min-height keeps the container tall so page content
        below doesn't shift dramatically when the React configurator expands.
   ===================================================================== */

/* Reserve space so page content below doesn't jump when React renders. */
#akenlab-configurator-root {
    min-height: 80vh;
}

.akenlab-configurator-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.akenlab-configurator-intro {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, #444);
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

/* Vertical stack of option cards */
.akenlab-configurator-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Each option as a card matching the configurator's block language */
.akenlab-configurator-option {
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Option label — mirrors ConfiguratorBlock .label */
.akenlab-configurator-option__label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
    font-family: var(--font, system-ui, sans-serif);
}

/* "choisissez entre X, Y…" sentence from DefaultOptionSeoFormatter */
.akenlab-configurator-option__summary {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #444);
    margin: 0.15rem 0 0;
    line-height: 1.5;
}

/* Hint label — small secondary tag */
.akenlab-configurator-option__hint-label {
    display: inline-block;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    color: var(--color-text-muted, #888);
    background: var(--color-surface, #f5f5f5);
    padding: 0.1em 0.5em;
    border-radius: 9999px;
    width: fit-content;
    margin-top: 0.15rem;
}

/* Hint content — plain <p> (ColourOptionSeoFormatter) or Markdown <div> with inner <p> */
.akenlab-configurator-option__hint-content {
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #444);
    line-height: 1.5;
    margin: 0.2rem 0 0;
}

.akenlab-configurator-option__hint-content p {
    margin: 0 0 0.4em;
}

.akenlab-configurator-option__hint-content p:last-child {
    margin-bottom: 0;
}

/* Choices as pill chips — used by ColourOptionSeoFormatter */
.akenlab-configurator-option__choices {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.akenlab-configurator-option__choices li {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--color-text-secondary, #444);
    background: var(--color-surface, #f5f5f5);
    line-height: 1.5;
    white-space: nowrap;
}
