/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
*
*  @author    Prestaelements <info@prestaelements.com>
*  @copyright 2026 Prestaelements
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/

.faqse {
    --faqse-accent: #2fb5d2;
    --faqse-surface: #fff;
    --faqse-border: #ebebeb;
    --faqse-muted: #7a7a7a;
    --faqse-radius: 6px;
    --faqse-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.faqse *,
.faqse-hook * {
    box-sizing: border-box;
}

.faqse__main {
    min-width: 0;
}

@media (min-width: 992px) {
    .faqse--with-aside {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 32px;
        align-items: start;
    }
}

/* Search ---------------------------------------------------------------- */

.faqse-search {
    position: relative;
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.faqse-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--faqse-border, #ebebeb);
    border-radius: var(--faqse-radius, 6px);
    font-size: 1rem;
}

.faqse-search__input:focus {
    border-color: var(--faqse-accent, #2fb5d2);
    outline: 2px solid rgba(47, 181, 210, .25);
    outline-offset: 1px;
}

.faqse-search__submit {
    flex: 0 0 auto;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--faqse-radius, 6px);
    background: var(--faqse-accent, #2fb5d2);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.faqse-search__suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--faqse-border, #ebebeb);
    border-radius: var(--faqse-radius, 6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.faqse-suggestion {
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid #f4f4f4;
    color: inherit;
    text-decoration: none;
}

.faqse-suggestion:last-child {
    border-bottom: 0;
}

.faqse-suggestion:hover,
.faqse-suggestion:focus,
.faqse-suggestion.is-active {
    background: #f6fbfd;
    color: inherit;
}

.faqse-suggestion__title {
    display: block;
    font-weight: 600;
}

.faqse-suggestion__excerpt,
.faqse-suggestion__topic {
    display: block;
    font-size: .85rem;
    color: var(--faqse-muted, #7a7a7a);
}

.faqse-suggestion--all {
    text-align: center;
    font-weight: 600;
    color: var(--faqse-accent, #2fb5d2);
}

/* Sections and lists ----------------------------------------------------- */

.faqse-block {
    margin-bottom: 32px;
}

.faqse-block__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.faqse-block__title a {
    color: inherit;
    text-decoration: none;
}

.faqse-block__count {
    padding: 1px 8px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: .75rem;
    font-weight: 600;
    color: var(--faqse-muted, #7a7a7a);
}

.faqse-block__intro {
    margin-bottom: 12px;
    color: var(--faqse-muted, #7a7a7a);
}

.faqse-list {
    border: 1px solid var(--faqse-border, #ebebeb);
    border-radius: var(--faqse-radius, 6px);
    background: var(--faqse-surface, #fff);
    box-shadow: var(--faqse-shadow, 0 1px 2px rgba(0, 0, 0, .06));
    overflow: hidden;
}

.faqse-item {
    border-bottom: 1px solid var(--faqse-border, #ebebeb);
}

.faqse-item:last-child {
    border-bottom: 0;
}

.faqse-item__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faqse-item__title::-webkit-details-marker {
    display: none;
}

.faqse-item__title::after {
    content: "+";
    margin-left: auto;
    color: var(--faqse-accent, #2fb5d2);
    font-size: 1.25rem;
    line-height: 1;
}

.faqse-item[open] > .faqse-item__title::after {
    content: "\2212";
}

.faqse-item__title:hover,
.faqse-item[open] > .faqse-item__title {
    color: var(--faqse-accent, #2fb5d2);
}

.faqse-item--link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
}

.faqse-item--link .faqse-item__title {
    padding: 0;
}

.faqse-item--link .faqse-item__title::after {
    content: none;
}

.faqse-item__arrow {
    margin-left: auto;
    color: var(--faqse-accent, #2fb5d2);
    font-size: 1.4rem;
    line-height: 1;
}

.faqse-item__body {
    padding: 0 18px 18px;
}

.faqse-item__meta {
    margin-bottom: 8px;
    font-size: .8rem;
    color: var(--faqse-muted, #7a7a7a);
}

.faqse-item__footer {
    margin-top: 10px;
}

.faqse-item__permalink {
    font-size: .85rem;
}

.faqse-more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
}

/* One question ----------------------------------------------------------- */

.faqse-answer {
    padding: 20px;
    border: 1px solid var(--faqse-border, #ebebeb);
    border-radius: var(--faqse-radius, 6px);
    background: var(--faqse-surface, #fff);
    box-shadow: var(--faqse-shadow, 0 1px 2px rgba(0, 0, 0, .06));
}

.faqse-answer__topic {
    display: inline-block;
    margin-bottom: 10px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--faqse-accent, #2fb5d2);
}

.faqse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.faqse-tags a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f4f4f4;
    font-size: .8rem;
    color: inherit;
    text-decoration: none;
}

.faqse-tags a:hover {
    background: var(--faqse-accent, #2fb5d2);
    color: #fff;
}

/* Usefulness ------------------------------------------------------------- */

.faqse-vote {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--faqse-border, #ebebeb);
    font-size: .9rem;
}

.faqse-vote__label {
    color: var(--faqse-muted, #7a7a7a);
}

.faqse-vote__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--faqse-border, #ebebeb);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.faqse-vote__button:hover {
    border-color: var(--faqse-accent, #2fb5d2);
}

.faqse-vote__button.is-chosen {
    border-color: var(--faqse-accent, #2fb5d2);
    background: #f0fafc;
    font-weight: 600;
}

.faqse-vote__button[disabled] {
    opacity: .6;
    cursor: default;
}

.faqse-vote__thanks {
    color: var(--faqse-muted, #7a7a7a);
}

/* Related products ------------------------------------------------------- */

.faqse-products__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.faqse-products__cell {
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .faqse-products__track {
        grid-auto-columns: minmax(220px, 1fr);
    }
}

/* Empty states and invitation -------------------------------------------- */

.faqse-empty {
    padding: 40px 20px;
    border: 1px dashed var(--faqse-border, #ebebeb);
    border-radius: var(--faqse-radius, 6px);
    text-align: center;
}

.faqse-empty__title {
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.faqse-empty__message {
    margin: 0;
    color: var(--faqse-muted, #7a7a7a);
}

.faqse-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    padding: 20px 24px;
    border-radius: var(--faqse-radius, 6px);
    background: #f6fbfd;
}

.faqse-cta__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.faqse-cta__message {
    margin: 0;
    color: var(--faqse-muted, #7a7a7a);
}

/* Side column ------------------------------------------------------------ */

.faqse-aside {
    margin-bottom: 24px;
}

.faqse-aside__title {
    margin-bottom: 10px;
}

.faqse-aside__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faqse-aside__list li {
    border-bottom: 1px solid var(--faqse-border, #ebebeb);
}

.faqse-aside__list li:last-child {
    border-bottom: 0;
}

.faqse-aside__list a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
}

.faqse-aside__list a:hover,
.faqse-aside__list .is-current > a {
    color: var(--faqse-accent, #2fb5d2);
}

.faqse-aside__count {
    color: var(--faqse-muted, #7a7a7a);
    font-size: .8rem;
}

.faqse-aside__text {
    color: var(--faqse-muted, #7a7a7a);
}

/* Question form ---------------------------------------------------------- */

.faqse-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.faqse-form__field {
    flex: 1 1 200px;
    margin-bottom: 14px;
}

.faqse-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.faqse-form__field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.faqse-form__field input,
.faqse-form__field select,
.faqse-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--faqse-border, #ebebeb);
    border-radius: var(--faqse-radius, 6px);
    font: inherit;
}

.faqse-form__field input:focus,
.faqse-form__field select:focus,
.faqse-form__field textarea:focus {
    border-color: var(--faqse-accent, #2fb5d2);
    outline: 2px solid rgba(47, 181, 210, .2);
}

.faqse-form__required {
    color: #c0392b;
}

.faqse-form__error {
    display: none;
    margin-top: 4px;
    font-size: .85rem;
    color: #c0392b;
}

.faqse-form__error.is-shown {
    display: block;
}

.faqse-form__consent {
    margin-bottom: 14px;
    font-size: .9rem;
}

.faqse-form__consent label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.faqse-form__captcha {
    margin-bottom: 14px;
}

.faqse-form__message {
    margin: 12px 0 0;
    font-weight: 600;
}

.faqse-form__message.is-error {
    color: #c0392b;
}

.faqse-form__message.is-success {
    color: #2e7d32;
}

/* Dialog ----------------------------------------------------------------- */

.faqse-dialog {
    width: min(560px, 92vw);
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.faqse-dialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

.faqse-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--faqse-border, #ebebeb);
}

.faqse-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faqse-dialog__close {
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.faqse-dialog__body {
    padding: 20px;
}

/* Blocks dropped on other pages ------------------------------------------ */

.faqse-hook {
    margin: 24px 0;
}

.faqse-hook__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.faqse-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
