/* FAQ: the category filters and the questions. */

.tb-faq-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.tb-faq-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 8px;
    color: var(--tb-ink-soft);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 300ms ease-out;
}

.tb-faq-filter span {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.7;
}

.tb-faq-filter.active {
    background: var(--tb-ink);
    border-color: var(--tb-ink);
    color: #fff;
}

.tb-faq-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 24px;
    padding-bottom: 80px;
}

.tb-faq-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tb-faq-group[hidden] {
    display: none;
}

.tb-faq .accordion {
    border-top: 1px solid var(--tb-line);
}

.tb-faq .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--tb-line);
    border-radius: 0;
}

.tb-faq .accordion-header {
    font-size: inherit;
}

.tb-faq .accordion-button {
    gap: 20px;
    min-height: 56px;
    padding: 16px 4px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--tb-ink);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.45;
    transition: color 300ms ease-out;
}

/* !important because legacy/base.css colours every open accordion that way. */
.tb-faq .accordion-button:not(.collapsed),
.tb-faq .accordion-button:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

.tb-faq .accordion-button:not(.collapsed) {
    color: var(--tb-teal-ink) !important;
    font-weight: 600;
}

.tb-faq .accordion-button:focus-visible {
    outline: 2px solid var(--tb-teal-ui);
    outline-offset: 2px;
}

/* A plus in a circle that turns into a cross when open. */
.tb-faq .accordion-button::after {
    width: 32px;
    height: 32px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--tb-page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform 300ms ease-out, background-color 300ms ease-out;
}

.tb-faq .accordion-button:not(.collapsed)::after {
    background: var(--tb-teal-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
    transform: rotate(45deg);
}

.tb-faq .accordion-body {
    padding: 0 56px 22px 4px;
    color: var(--tb-ink-muted);
    font-size: 14px;
    line-height: 1.75;
}

.tb-faq .accordion-body p:last-child {
    margin-bottom: 0;
}

.tb-faq-help-text {
    display: flex;
    flex: 1 1 380px;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.tb-faq-help-text .tb-info-icon {
    background: #fff;
    border: 1px solid var(--tb-teal-tint-border);
    color: var(--tb-teal-ink);
}

@media (max-width: 759.98px) {
    .tb-faq-list {
        padding-top: 16px;
        padding-bottom: 56px;
    }

    .tb-faq .accordion-button {
        font-size: 14.5px;
    }
}

/* South Africa: the "Just got your blend? Start here" card above the questions, linking to Using your blend. */
.tb-faq-start-section {
    padding-bottom: 32px;
}

.tb-faq-start {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--tb-teal-wash);
    border: 1px solid var(--tb-teal-tint-border);
    border-radius: 8px;
    color: var(--tb-ink-muted);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.tb-faq-start:hover {
    border-color: var(--tb-teal-ui);
    color: var(--tb-ink-muted);
}

.tb-faq-start-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.tb-faq-start-text strong {
    color: var(--tb-ink);
    font-size: 16px;
    font-weight: 600;
}

.tb-faq-start-arrow {
    display: flex;
    color: var(--tb-teal-ink);
}
