/* =============================================================================
   FAQ shortcode — accordion of <details>/<summary> inside categories.
   Restyled to consume --cb-* tokens (soft cards with inset shadow when open).
   ============================================================================= */

.cashback-faq {
    max-width: 880px;
    margin: 0 auto;
    color: var(--cb-text-primary, #16151c);
}

.cashback-faq__category {
    margin: 0 0 36px;
}

.cashback-faq__category-title {
    margin: 0 0 16px;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cb-text-primary, #16151c);
    border-bottom: 2px solid var(--cb-accent, #5b6cf7);
    padding-bottom: 8px;
}

.cashback-faq__item {
    border: 1px solid var(--cb-border, rgba(22, 21, 28, 0.06));
    border-radius: var(--cb-radius-md, 16px);
    margin: 0 0 12px;
    background: var(--cb-bg-surface, #fff);
    box-shadow: var(--cb-shadow-soft, 0 8px 24px -12px rgba(15, 18, 34, 0.10));
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

.cashback-faq__item[open] {
    border-color: var(--cb-border-strong, rgba(22, 21, 28, 0.12));
    box-shadow: var(--cb-shadow-raised, 0 18px 36px -16px rgba(15, 18, 34, 0.14));
}

.cashback-faq__question {
    list-style: none;
    cursor: pointer;
    padding: 16px 52px 16px 20px;
    font-size: 1.02em;
    font-weight: 600;
    color: var(--cb-text-primary, #16151c);
    position: relative;
    user-select: none;
    line-height: 1.45;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cashback-faq__question::-webkit-details-marker {
    display: none;
}

/* Chevron — rendered with borders, rotated on open */
.cashback-faq__question::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.6;
}

.cashback-faq__item[open] > .cashback-faq__question::after {
    transform: translateY(-30%) rotate(-135deg);
    opacity: 1;
    color: var(--cb-accent, #5b6cf7);
}

.cashback-faq__question:hover,
.cashback-faq__question:focus {
    color: var(--cb-accent, #5b6cf7);
    outline: none;
}

.cashback-faq__question:focus-visible {
    box-shadow: var(--cb-shadow-focus, 0 0 0 3px rgba(91, 108, 247, 0.25));
    border-radius: var(--cb-radius-md, 16px);
}

.cashback-faq__answer {
    padding: 0 20px 18px;
    color: var(--cb-text-secondary, #5b5c70);
    line-height: 1.65;
}

.cashback-faq__answer p {
    margin: 0 0 12px;
}

.cashback-faq__answer p:last-child {
    margin-bottom: 0;
}

.cashback-faq__answer ul,
.cashback-faq__answer ol {
    margin: 0 0 12px 22px;
    padding: 0;
}

.cashback-faq__answer li {
    margin-bottom: 6px;
}

.cashback-faq__answer a {
    color: var(--cb-accent, #5b6cf7);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.cashback-faq__answer a:hover {
    color: var(--cb-accent-hover, #4555e8);
    text-decoration-thickness: 2px;
}

@media (max-width: 600px) {
    .cashback-faq__category-title {
        font-size: 1.2em;
    }

    .cashback-faq__question {
        padding: 14px 44px 14px 16px;
        font-size: 0.98em;
    }

    .cashback-faq__answer {
        padding: 0 16px 16px;
    }

    .cashback-faq__question::after {
        right: 16px;
    }
}
