/* THAIDIT FAQ Accordion 1.0.2 — styles are scoped to .tdfaq */
.tdfaq,
.tdfaq * {
    box-sizing: border-box;
}

.tdfaq {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: var(--tdfaq-font-size, 18px) !important;
}

.tdfaq .tdfaq__item {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid #d3dce7;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.tdfaq .tdfaq__item:last-child {
    margin-bottom: 0;
}

.tdfaq .tdfaq__question {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    margin: 0;
    padding: 12px 15px;
    border: 0;
    border-radius: 0;
    background: var(--tdfaq-inactive, #d6eafa);
    color: #102337;
    cursor: pointer;
    list-style: none;
    font-family: inherit;
    font-size: var(--tdfaq-font-size, 18px) !important;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
    transition: background-color 150ms ease;
}

.tdfaq .tdfaq__question::-webkit-details-marker {
    display: none;
}

.tdfaq .tdfaq__question::marker {
    content: "";
}

.tdfaq .tdfaq__item:not([open]) > .tdfaq__question:hover {
    background: color-mix(in srgb, var(--tdfaq-inactive, #d6eafa) 84%, var(--tdfaq-accent, #0a62d8));
}

.tdfaq .tdfaq__item[open] > .tdfaq__question,
.tdfaq .tdfaq__item[open] > .tdfaq__question:hover {
    background: var(--tdfaq-accent, #0a62d8) !important;
    color: #fff !important;
}

.tdfaq .tdfaq__question:focus-visible {
    outline: 3px solid var(--tdfaq-accent, #0a62d8);
    outline-offset: -4px;
}

.tdfaq .tdfaq__item[open] > .tdfaq__question:focus-visible {
    outline-color: #fff;
}

.tdfaq .tdfaq__prefix {
    flex: 0 0 auto;
    font-size: inherit !important;
    font-weight: 700;
}

.tdfaq .tdfaq__title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: inherit !important;
    line-height: inherit;
    overflow-wrap: anywhere;
}

.tdfaq .tdfaq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    font-family: Arial, sans-serif;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1;
}

.tdfaq .tdfaq__icon::before {
    content: "+";
}

.tdfaq .tdfaq__item[open] > .tdfaq__question .tdfaq__icon::before {
    content: "−";
}

.tdfaq .tdfaq__answer {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 18px 20px;
    background: #fff;
    color: #162231;
    font-size: var(--tdfaq-font-size, 18px) !important;
    font-weight: 400;
    line-height: 1.7;
}

.tdfaq .tdfaq__content {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    font-size: var(--tdfaq-font-size, 18px) !important;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.tdfaq .tdfaq__content p,
.tdfaq .tdfaq__content li,
.tdfaq .tdfaq__content h1,
.tdfaq .tdfaq__content h2,
.tdfaq .tdfaq__content h3,
.tdfaq .tdfaq__content h4,
.tdfaq .tdfaq__content h5,
.tdfaq .tdfaq__content h6 {
    font-size: var(--tdfaq-font-size, 18px) !important;
    line-height: 1.7;
}

.tdfaq .tdfaq__content > :first-child {
    margin-top: 0;
}

.tdfaq .tdfaq__content > :last-child {
    margin-bottom: 0;
}

.tdfaq .tdfaq__content a {
    color: var(--tdfaq-accent, #0a62d8);
    text-decoration: underline;
}

.tdfaq .tdfaq__content img,
.tdfaq .tdfaq__content video,
.tdfaq .tdfaq__content iframe {
    max-width: 100%;
    height: auto;
}

.tdfaq__empty {
    padding: 12px 15px;
    border: 1px dashed #d3dce7;
    border-radius: 6px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .tdfaq .tdfaq__question {
        min-height: 52px;
        gap: 8px;
        padding: 12px;
    }

    .tdfaq .tdfaq__answer {
        gap: 8px;
        padding: 15px 13px;
    }

    .tdfaq .tdfaq__icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }
}
