.faq-search-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.faq-search-wrapper {
    margin-top: 0;
    margin-block-start: 0 !important;
}

.faq-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-search-results>a {
    text-decoration: none;
    color: inherit;
}

.faq-search-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
}

.faq-search-item:last-child {
    border-bottom: none;
}

.faq-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--wp--preset--color--primary, #6431f6);
    gap: 8px;
    cursor: pointer;
    margin-bottom: 8px;
}

.faq-search-header .faq-search-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    color: inherit;

    .faq-icon {
        width: 20px;
        height: 20px;
        visibility: hidden;

        svg {
            transform: rotate(135deg);
            width: 20px;
            height: 20px;
        }
    }
}

.faq-search-header:hover .faq-search-title .faq-icon {
    visibility: visible;
}

.faq-search-item:hover .faq-search-body span {
    visibility: visible;
}

.faq-search-header .faq-search-title a {
    text-decoration: none;
}

.faq-search-header .faq-icon {
    cursor: pointer;
    height: 20px;
    transition: transform 0.3s;

    svg {
        fill: var(--wp--preset--color--primary, #6431f6);
        width: 24px;
        height: 24px;
    }
}

.faq-search-header .faq-icon.faq-chevron.open {
    transform: rotate(180deg);
}

.faq-icon.faq-link {
    position: relative;
}

.faq-icon.faq-link .faq-link-tooltip {
    position: absolute;
    bottom: -130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
}

.faq-icon.faq-link:hover .faq-link-tooltip {
    opacity: 1;
    visibility: visible;
}

/* empty state */
.faq-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 60%;
    margin: auto;

    h3 {
        font-size: 33px;
        text-align: center;
    }

    p {
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        line-height: 2;
    }
}

.faq-search-body span {
    color: var(--wp--preset--color--primary, #6431f6);
    visibility: hidden;
}

@media (max-width: 600px) {
    .faq-search-results {
        gap: 16px;
    }

    .faq-search-header .faq-search-title {
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .faq-search-header .faq-search-title .faq-icon {
        visibility: visible;
    }

    .faq-search-body {
        font-size: 15px;
    }



    .faq-search-empty {
        width: 100%;

        h3 {
            font-size: 24px;
        }
    }
}