.webien-faq {
    --webien-faq-accent: #0f172a;
    --webien-faq-accent-soft: rgba(15, 23, 42, 0.08);
    --webien-faq-item-bg: transparent;
    --webien-faq-border: rgba(15, 23, 42, 0.12);
    --webien-faq-text: #0f172a;
    --webien-faq-muted: #475569;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--webien-faq-text);
}

.webien-faq__groups {
    display: block;
}

.webien-faq__group {
    display: grid;
    gap: 0.85rem;
}

.webien-faq__group:not(:last-child) {
    margin-bottom: 1.5rem;
}

.webien-faq__group.is-hidden {
    display: none;
}

.webien-faq__items {
    display: grid;
    gap: 0.85rem;
}

.webien-faq__collection-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--webien-faq-text);
}

.webien-faq__collection-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
}

.webien-faq__collection-title-icon img,
.webien-faq__collection-title-icon svg {
    display: block;
    width: 1.1em;
    height: 1.1em;
}

.webien-faq__collection-title-icon-image {
    display: block;
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
}

.webien-faq__search-wrap {
    display: block;
    margin-bottom: 0.9rem;
}

.webien-faq__search {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--webien-faq-border);
    background: #fff;
    color: var(--webien-faq-text);
    padding: 0.65rem 0.8rem;
}

.webien-faq__search::placeholder {
    color: var(--webien-faq-muted);
}

.webien-faq__actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.webien-faq__action-btn {
    border: 1px solid var(--webien-faq-border);
    background: #fff;
    color: var(--webien-faq-text);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.webien-faq__group-footer[hidden] {
    display: none;
}

.webien-faq__group-footer {
    display: flex;
    justify-content: flex-start;
}

.webien-faq__group-more {
    --webien-faq-group-more-gap: 0.45rem;
    display: inline-grid;
    align-items: center;
    justify-content: center;
}

.webien-faq__group-more-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--webien-faq-group-more-gap);
    grid-area: 1 / 1;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.webien-faq__group-more-state--collapse {
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
}

.webien-faq__group-more[aria-expanded="true"] .webien-faq__group-more-state--expand {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.webien-faq__group-more[aria-expanded="true"] .webien-faq__group-more-state--collapse {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.webien-faq__group-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.webien-faq__group-more-icon img,
.webien-faq__group-more-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.webien-faq__item {
    border: 1px solid var(--webien-faq-border);
    background: var(--webien-faq-item-bg);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.webien-faq__item:hover {
    border-color: rgba(15, 23, 42, 0.2);
}

.webien-faq__item.is-hidden {
    display: none;
}

.webien-faq__item.is-open {
    border-color: rgba(15, 23, 42, 0.25);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.webien-faq__question-wrap {
    margin: 0;
}

.webien-faq__question {
    width: 100%;
    border: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-align: left;
    outline: none;
    box-sizing: border-box;
    text-decoration: none;
    font: inherit;
    line-height: inherit;
}

.webien-faq__question:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.3);
    outline-offset: -2px;
}

.webien-faq__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    min-width: 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--webien-faq-accent);
    background: var(--webien-faq-accent-soft);
}

.webien-faq__question-text {
    font-weight: 600;
    line-height: 1.35;
    flex: 1 1 auto;
}

.webien-faq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    min-height: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--webien-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.webien-faq__icon::before {
    display: block;
    line-height: 1;
}

.webien-faq--icon-plus-circle .webien-faq__icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 0.9rem;
}

.webien-faq--icon-plus-circle .webien-faq__icon::before {
    content: "+";
}

.webien-faq--icon-plus-circle .webien-faq__item.is-open .webien-faq__icon::before {
    content: "-";
}

.webien-faq--icon-plus-plain .webien-faq__icon {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
}

.webien-faq--icon-plus-plain .webien-faq__icon::before {
    content: "+";
}

.webien-faq--icon-plus-plain .webien-faq__item.is-open .webien-faq__icon::before {
    content: "\2212";
}

.webien-faq--icon-arrow .webien-faq__icon,
.webien-faq--icon-chevron .webien-faq__icon,
.webien-faq--icon-caret .webien-faq__icon {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
}

.webien-faq--icon-arrow .webien-faq__icon::before {
    content: "\2193";
}

.webien-faq--icon-arrow .webien-faq__item.is-open .webien-faq__icon::before {
    content: "\2191";
}

.webien-faq--icon-chevron .webien-faq__icon::before {
    content: "\2304";
}

.webien-faq--icon-chevron .webien-faq__item.is-open .webien-faq__icon::before {
    content: "\2303";
}

.webien-faq--icon-caret .webien-faq__icon {
    font-size: 0.88rem;
}

.webien-faq--icon-caret .webien-faq__icon::before {
    content: "\25BE";
}

.webien-faq--icon-caret .webien-faq__item.is-open .webien-faq__icon::before {
    content: "\25B4";
}

.webien-faq--icon-custom .webien-faq__icon::before {
    content: none;
}

.webien-faq--icon-custom .webien-faq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.webien-faq--icon-custom .webien-faq__icon-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.webien-faq--icon-custom .webien-faq__icon--open {
    display: none;
}

.webien-faq--icon-custom .webien-faq__item.is-open .webien-faq__icon--open {
    display: inline-flex;
}

.webien-faq--icon-custom .webien-faq__item.is-open .webien-faq__icon--closed {
    display: none;
}

/* Ensure SVG/icon elements inherit sizing and color from the wrapper */
.webien-faq__icon-inner {
    line-height: 1;
    font-size: inherit;
}

.webien-faq__icon-inner svg,
.webien-faq__icon-inner img {
    width: 1em;
    height: 1em;
    display: block;
    vertical-align: middle;
    fill: currentColor;
}

.webien-faq__icon-inner i,
.webien-faq__icon-inner .eicon,
.webien-faq__icon-inner .fa {
    font-size: 1em;
    line-height: 1;
}

.webien-faq__item.is-open .webien-faq__icon {
    color: var(--webien-faq-accent);
}

.webien-faq__answer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 320ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
}

.webien-faq__answer-inner {
    padding: 0.95rem 1.1rem 1.1rem;
    color: var(--webien-faq-muted);
    line-height: 1.65;
}

.webien-faq__answer[aria-hidden="false"] {
    opacity: 1;
}

.webien-faq__item.is-open .webien-faq__answer {
    /* when JS opens, max-height will be set inline to scrollHeight; this rule is a fallback */
    max-height: 2000px;
    opacity: 1;
}

.webien-faq__answer-inner > :first-child {
    margin-top: 0;
}

.webien-faq__answer-inner > :last-child {
    margin-bottom: 0;
}

.webien-faq__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0;
    font-weight: 600;
    text-decoration: none;
}

.webien-faq__read-more--inline {
    display: inline-flex;
    margin-left: 0.35rem;
}

.webien-faq__read-more--next-line {
    display: table;
    margin-top: 0.75rem;
    margin-left: 0;
}

.webien-faq__read-more:hover,
.webien-faq__read-more:focus-visible {
    text-decoration: underline;
}

.webien-faq--num-plain .webien-faq__number {
    width: auto;
    min-width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.webien-faq--num-outline .webien-faq__number {
    background: transparent;
    border-color: var(--webien-faq-border);
}

.webien-faq--num-chip .webien-faq__number {
    width: auto;
    min-width: auto;
    padding: 0.35rem 0.6rem;
    border-radius: 0.45rem;
    border-color: transparent;
    background: rgba(15, 23, 42, 0.12);
}

.webien-faq--layout-1 {
    background: transparent;
}

.webien-faq--layout-1 .webien-faq__item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    background: var(--webien-faq-item-bg);
}

.webien-faq--layout-1 .webien-faq__item:last-child {
    border-bottom: 0;
}

.webien-faq--layout-2 {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.webien-faq--layout-2 .webien-faq__item {
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.webien-faq--layout-2 .webien-faq__item:hover {
    transform: translateY(-1px);
}

.webien-faq--layout-3 .webien-faq__items {
    position: relative;
    padding-left: 1rem;
}

.webien-faq--layout-3 .webien-faq__items::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: var(--webien-faq-border);
}

.webien-faq--layout-3 .webien-faq__item {
    position: relative;
}

.webien-faq--layout-3 .webien-faq__item::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: -1rem;
    width: 0.75rem;
    height: 1px;
    background: var(--webien-faq-border);
}

.webien-faq--layout-4 .webien-faq__groups {
    display: grid;
    grid-template-columns: repeat(var(--webien-faq-grid-columns, 2), minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.webien-faq--layout-4 .webien-faq__group:not(:last-child) {
    margin-bottom: 0;
}

.webien-faq--layout-4 .webien-faq__group {
    height: 100%;
    align-content: start;
}

.webien-faq--layout-4 .webien-faq__group:only-child .webien-faq__items {
    grid-template-columns: repeat(var(--webien-faq-grid-columns, 2), minmax(0, 1fr));
}

.webien-faq--layout-4 .webien-faq__group:only-child .webien-faq__group-footer {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .webien-faq {
        padding: 1rem;
    }

    .webien-faq__question {
        padding: 0.85rem;
    }

    .webien-faq__answer-inner {
        padding: 0.8rem 0.85rem 0.95rem;
    }

    .webien-faq--layout-3 .webien-faq__items {
        padding-left: 0.5rem;
    }

    .webien-faq--layout-4 .webien-faq__groups,
    .webien-faq--layout-4 .webien-faq__group:only-child .webien-faq__items {
        grid-template-columns: 1fr;
    }
}
