.clinic-faq-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .05);
}

.clinic-faq-entry-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.clinic-faq-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #14532d;
    background: #ecfdf5;
    flex-shrink: 0;
}

.clinic-faq-entry-icon svg {
    width: 24px;
    height: 24px;
}

.clinic-faq-entry-copy {
    min-width: 0;
}

.clinic-faq-kicker {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.clinic-faq-entry h2,
.clinic-faq-dialog h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.clinic-faq-entry p {
    display: -webkit-box;
    margin: 5px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.clinic-faq-entry-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 520px;
    flex-wrap: wrap;
}

.clinic-faq-chip,
.clinic-faq-open-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    /*max-width: 190px;*/
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.clinic-faq-chip {
    border: 1px solid #dbe5ee;
    color: #334155;
    background: #f8fafc;
}

.clinic-faq-chip:hover,
.clinic-faq-chip:focus-visible {
    color: #14532d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.clinic-faq-open-all {
    border: 1px solid #14532d;
    color: #fff;
    background: #14532d;
    flex-shrink: 0;
}

.clinic-faq-open-all:hover,
.clinic-faq-open-all:focus-visible {
    background: #166534;
}

.clinic-faq-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .54);
}

.clinic-faq-modal.is-open {
    display: flex;
}

body.clinic-faq-modal-open {
    overflow: hidden;
}

.clinic-faq-dialog {
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(760px, calc(100dvh - 48px));
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .92);
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .26);
    overflow: hidden;
}

.clinic-faq-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.clinic-faq-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe5ee;
    border-radius: 12px;
    color: #475569;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.clinic-faq-close svg {
    width: 20px;
    height: 20px;
}

.clinic-faq-close:hover,
.clinic-faq-close:focus-visible {
    color: #0f172a;
    background: #f8fafc;
}

.clinic-info-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 12px 20px 0;
    padding: 4px;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    background: #f8fafc;
    align-self: flex-start;
}

.clinic-info-tab {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.clinic-info-tab.is-active {
    background: #ffffff;
    color: #14532d;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.clinic-info-tab.is-disabled {
    cursor: not-allowed;
    opacity: .52;
}

.clinic-faq-dialog-body {
    padding: 12px 20px 20px;
    overflow: auto;
}

.clinic-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.clinic-faq-item + .clinic-faq-item {
    margin-top: 8px;
}

.clinic-faq-item[open] {
    border-color: #dbeafe;
    background: #f8fbff;
}

.clinic-faq-item.is-highlighted[open] {
    border-color: #bbf7d0;
    background: #f7fff9;
}

.clinic-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 12px 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.clinic-faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform .18s ease;
    flex-shrink: 0;
}

.clinic-faq-item[open] .faq-chevron {
    transform: rotate(225deg);
}

.clinic-faq-answer {
    padding: 0 14px 14px;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .clinic-faq-entry {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .clinic-faq-entry-actions {
        justify-content: flex-start;
        max-width: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }

    .clinic-faq-chip {
        max-width: 220px;
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .clinic-faq-entry {
        margin: 12px 0 14px;
        padding: 13px;
        border-radius: 12px;
    }

    .clinic-faq-entry-main {
        align-items: flex-start;
        gap: 11px;
    }

    .clinic-faq-entry-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .clinic-faq-entry-icon svg {
        width: 21px;
        height: 21px;
    }

    .clinic-faq-entry h2,
    .clinic-faq-dialog h2 {
        font-size: 16px;
    }

    .clinic-faq-entry p {
        -webkit-line-clamp: 1;
    }

    .clinic-faq-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .clinic-faq-dialog {
        width: 100%;
        max-height: min(82dvh, 720px);
        border-radius: 18px 18px 14px 14px;
    }

    .clinic-faq-dialog-head {
        padding: 16px 16px 10px;
    }

    .clinic-info-tabs {
        margin: 10px 16px 0;
        width: calc(100% - 32px);
    }

    .clinic-info-tab {
        flex: 1;
    }

    .clinic-faq-dialog-body {
        padding: 10px 12px 14px;
    }

    .clinic-faq-item summary {
        min-height: 46px;
        padding: 11px 12px;
        font-size: 14px;
    }

    .clinic-faq-answer {
        padding: 0 12px 12px;
        font-size: 13px;
    }
}
