/**
 * Provider Shortcode Styles
 *
 * Horizontal comparison layout: 1 provider per row.
 * Each row: Logo | Bonus info | CTA button, with terms below.
 */

/* ==========================================================================
   Container
   ========================================================================== */

.oe-provider {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 1.5em 0;
}

/* ==========================================================================
   Item (single provider card)
   ========================================================================== */

.oe-provider__item {
    background: #fff;
    border: 1px solid var(--oe-color-border);
    border-left: 3px solid var(--oe-color-primary);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.oe-provider__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left-color: var(--oe-color-primary-dark);
}

/* ==========================================================================
   Row (the 3-column horizontal layout)
   ========================================================================== */

.oe-provider__row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.oe-provider__logo {
    flex-shrink: 0;
    width: 120px;
}

.oe-provider__logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-provider__logo img {
    max-width: 100%;
    max-height: 56px;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Body (bonus headline + subtitle)
   ========================================================================== */

.oe-provider__body {
    flex: 1;
    min-width: 0;
}

.oe-provider__offer-bonus {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--oe-color-primary-dark);
    line-height: 1.3;
}

.oe-provider__offer-description {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--oe-color-text-light);
    line-height: 1.4;
}

/* ==========================================================================
   Rating (stars + numeric badge)
   ========================================================================== */

.oe-provider__rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.oe-provider__stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.oe-provider__star {
    flex-shrink: 0;
}

.oe-provider__star--full {
    color: #f59e0b;
}

.oe-provider__star--half {
    color: #f59e0b;
}

.oe-provider__star--empty {
    color: #d1d5db;
}

.oe-provider__rating-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--oe-color-text);
    line-height: 1;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.oe-provider__cta {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
}

.oe-provider__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(180deg, #1ea34a 0%, #15803d 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.25);
    line-height: 1.3;
}

.oe-provider__button::after {
    content: "\2192";
    font-size: 1rem;
    transition: transform 0.15s ease;
}

.oe-provider__button:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
    color: #fff;
}

.oe-provider__button:hover::after {
    transform: translateX(3px);
}

.oe-provider__button:active {
    box-shadow: 0 1px 2px rgba(21, 128, 61, 0.2);
}

.oe-provider__review-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--oe-color-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.oe-provider__review-link:hover {
    color: var(--oe-color-primary-dark);
}

/* ==========================================================================
   Promo Code (click to copy, inside CTA column)
   ========================================================================== */

.oe-provider__promo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.oe-provider__promo-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/*
 * Promo code button — high specificity to prevent Elementor overrides.
 * .oe-provider .oe-provider__cta button[data-code] = specificity 0-2-2
 * Beats Elementor's typical .elementor-widget button (0-1-1)
 */
.oe-provider .oe-provider__cta button.oe-provider__promo-code[data-code] {
    padding: 0.25rem 0.625rem;
    background: #fff;
    border: 1.5px dashed var(--oe-color-primary);
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--oe-color-primary-dark);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.oe-provider .oe-provider__cta button.oe-provider__promo-code[data-code]:hover {
    background: var(--oe-color-primary);
    color: #fff;
    border-color: var(--oe-color-primary);
}

.oe-provider .oe-provider__cta button.oe-provider__promo-code[data-code]:active {
    transform: scale(0.97);
}

.oe-provider .oe-provider__cta button.oe-provider__promo-code--copied[data-code] {
    background: var(--oe-color-primary);
    color: #fff;
    border-style: solid;
    border-color: var(--oe-color-primary);
}

/* ==========================================================================
   Terms (full-width below the row)
   ========================================================================== */

.oe-provider__terms {
    padding: 0.625rem 1.5rem;
    border-top: 1px solid var(--oe-color-border);
    font-size: 0.6875rem;
    color: var(--oe-color-text-muted);
    line-height: 1.5;
}

.oe-provider__terms a {
    color: var(--oe-color-text-light);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .oe-provider__row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
        padding: 1rem;
    }

    .oe-provider__logo {
        width: auto;
        text-align: center;
    }

    .oe-provider__logo img {
        max-height: 48px;
    }

    .oe-provider__body {
        text-align: center;
    }

    .oe-provider__rating {
        justify-content: center;
    }

    .oe-provider__cta {
        width: 100%;
    }

    .oe-provider__terms {
        padding: 0.5rem 1rem;
        font-size: 0.625rem;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .oe-provider__item {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .oe-provider__button {
        background: #000;
        color: #fff;
        box-shadow: none;
    }

    .oe-provider__button::after {
        display: none;
    }
}
