/* ========================================
   AI Search Add-On Purchase Page
   Based on FabSoftQuotaPurchase-Page.css
   ======================================== */

/* ── Tier Selection (radio-button rows) ── */
.ai-search-tier-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.ai-search-tier-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ai-search-tier-option:hover {
    border-color: #1a4e8a;
    box-shadow: 0 2px 10px rgba(26, 78, 138, 0.10);
}

.ai-search-tier-option--featured {
    border-color: #1a4e8a;
}

.ai-search-tier-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-search-tier-radio-indicator {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #bbb;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s;
}

.ai-search-tier-radio:checked ~ .ai-search-tier-radio-indicator {
    border-color: #1a4e8a;
}

.ai-search-tier-radio:checked ~ .ai-search-tier-radio-indicator::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: #1a4e8a;
    border-radius: 50%;
}

.ai-search-tier-radio:checked ~ .ai-search-tier-info,
.ai-search-tier-radio:checked ~ .ai-search-tier-price {
    color: #1a4e8a;
}

.ai-search-tier-option:has(.ai-search-tier-radio:checked) {
    border-color: #1a4e8a;
    background: #f0f6ff;
    box-shadow: 0 2px 12px rgba(26, 78, 138, 0.15);
}

.ai-search-tier-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-search-tier-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}

.ai-search-tier-badge {
    display: inline-block;
    align-self: flex-start;
    background: #1a4e8a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 20px;
}

.ai-search-tier-desc {
    font-size: 1.2rem;
    color: #666;
}

.ai-search-tier-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a4e8a;
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-search-tier-price span {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
}


/* ══════════════════════════════════════════════════
   Override shared FabSoftQuotaPurchase-Page.css
   minimum 1.2rem (approx 19px) for all text labels
   ══════════════════════════════════════════════════ */

.AIFileProQuotaPurchase_wrapper .qp-field-label {
    font-size: 1.2rem !important;
}

.AIFileProQuotaPurchase_wrapper .AIFileProQuotaPurchase_note {
    font-size: 1.2rem !important;
}

.AIFileProQuotaPurchase_wrapper .AIFileProQuotaPurchase_checkbox-group {
    margin-bottom: 0 !important;
}

.AIFileProQuotaPurchase_wrapper .AIFileProQuotaPurchase_checkbox-group label {
    font-size: 1.2rem !important;
}

.AIFileProQuotaPurchase_wrapper .qp-submit-reassurance {
    font-size: 1.2rem !important;
}

.AIFileProQuotaPurchase_wrapper .qp-tos-body {
    font-size: 1.2rem !important;
}

.AIFileProQuotaPurchase_wrapper .yourprofile-Error {
    font-size: 1.2rem !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ai-search-tier-grid {
        gap: 10px;
    }

    .ai-search-tier-option {
        padding: 14px 16px;
        gap: 12px;
    }

    .ai-search-tier-price {
        font-size: 1.4rem;
    }
}
