/**
 * FurryNestLab Module S1: Tiered Quantity Discount Bundles Styling
 */

.fnl-tiered-bundle-container {
    margin: 16px 0 20px 0;
    font-family: inherit;
    box-sizing: border-box;
}

.fnl-bundle-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #1e293b;
    margin-bottom: 10px;
}

.fnl-bundle-icon {
    font-size: 15px;
    line-height: 1;
}

.fnl-bundle-title {
    font-weight: 500;
}

.fnl-bundle-title strong {
    color: #0f172a;
    font-weight: 700;
}

.fnl-bundle-cards {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Individual Tier Card */
.fnl-tier-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    user-select: none;
    outline: none;
}

.fnl-tier-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-1px);
}

.fnl-tier-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

/* Selected Card State */
.fnl-tier-card.is-selected {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

/* Top Right Badges */
.fnl-tier-badge {
    position: absolute;
    top: -9px;
    right: 14px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fnl-tier-badge.badge-popular {
    background: #0d9488;
    color: #ffffff;
}

.fnl-tier-badge.badge-value {
    background: #6366f1;
    color: #ffffff;
}

/* Left Group: Radio + Info */
.fnl-tier-radio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.fnl-tier-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.fnl-tier-card.is-selected .fnl-tier-radio {
    border-color: #0d9488;
    background: #0d9488;
}

.fnl-tier-card.is-selected .fnl-tier-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.fnl-tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fnl-tier-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.fnl-tier-card.is-selected .fnl-tier-label {
    color: #0f766e;
}

.fnl-tier-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.2;
}

.fnl-tier-card.is-selected .fnl-tier-desc {
    color: #0d9488;
    font-weight: 600;
}

/* Right Group: Pricing */
.fnl-tier-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.fnl-tier-unit-price {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.fnl-tier-unit-price small {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.fnl-tier-card.is-selected .fnl-tier-unit-price {
    color: #0f766e;
}

.fnl-tier-total-price {
    font-size: 11px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

/* Mobile Responsiveness */
@media (max-width: 680px) {
    .fnl-tier-card {
        padding: 10px 14px;
    }

    .fnl-tier-radio-row {
        gap: 10px;
    }

    .fnl-tier-label {
        font-size: 12.5px;
    }

    .fnl-tier-desc {
        font-size: 11px;
    }

    .fnl-tier-unit-price {
        font-size: 13.5px;
    }

    .fnl-tier-badge {
        font-size: 9px;
        padding: 1.5px 6px;
        top: -8px;
        right: 10px;
    }
}
