/**
 * AIEO Brand Gifts — front-end styling for:
 *   (B) single-product picker section (.aieo-bg-product-section)
 *   (C) archive eligibility badge      (.aieo-bg-archive-badge)
 *
 * The reward-card layout (A1) lives in aieo-side-cart.css since it
 * sits inside the side-cart panel and shares its base styling.
 */

/* ==========================================================================
   (C) Archive badge — visual styling only. Positioning + stacking with
   .onsale and .aieo-pro-badge is owned centrally by the inline stylesheet
   in class-aieo-dmm-role-pricing.php so all three badges stay in sync
   under both layout modes (top-left over image / below favourite icon).
   ========================================================================== */
.aieo-bg-archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f59e0b;          /* warm gold to match the gift motif */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}
.aieo-bg-archive-badge-icon { font-size: 13px; line-height: 1; }

/* ==========================================================================
   (B) Single-product page picker
   ========================================================================== */
.aieo-bg-product-section {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aieo-bg-product-card {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff8e1;
}
.aieo-bg-product-card.is-qualified { background: #d1fae5; border-color: #86efac; }
.aieo-bg-product-card-headline {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}
.aieo-bg-product-card-label {
    display: block;
    font-size: 11px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.aieo-bg-product-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
.aieo-bg-product-variation { margin-top: 8px; }
.aieo-bg-variation-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}
.aieo-bg-product-card-only {
    font-size: 13px;
    color: #1f2937;
}

/* ==========================================================================
   (D) Archive banner — top-of-archive promo for the active gift offer
   on brand / category / pa_need archive pages. Renders via both classic
   (woocommerce_archive_description) and block (render_block_*) hook
   paths; once-only PHP guard ensures a single instance per request.
   ========================================================================== */
.aieo-bg-archive-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 0 0 16px;
    background: var(--aieo-bg-archive-banner-bg, #fff7ed);
    border: 1px solid var(--aieo-bg-archive-banner-border, #fed7aa);
    border-radius: 8px;
    color: var(--aieo-bg-archive-banner-color, #7c2d12);
}
.aieo-bg-archive-banner-headline {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.aieo-bg-archive-banner-headline a {
    color: inherit;
    text-decoration: underline;
}
.aieo-bg-archive-banner-thumbs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.aieo-bg-archive-banner-thumb {
    display: flex;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #fdba74;
}
.aieo-bg-archive-banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aieo-bg-archive-banner-more {
    font-size: 11px;
    font-weight: 600;
    color: #9a3412;
    padding: 0 6px;
    background: #fed7aa;
    border-radius: 999px;
}
@media (max-width: 600px) {
    /* Stack on narrow viewports — thumbnails drop below the headline. */
    .aieo-bg-archive-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .aieo-bg-archive-banner-thumbs {
        align-self: stretch;
    }
}
