/*
 * ClubPass365 Event Details FAQ
 * v1.4.0
 * Scope: EventList single-event FAQ only.
 */

body.single-event .el_faq_wrapper {
    --cp365-faq-bg: #171922;
    --cp365-faq-bg-deep: #11131a;
    --cp365-faq-muted: #343741;
    --cp365-faq-pink: #ff006f;
    --cp365-faq-pink-bright: #ff2b86;

    /* Remove the old flat grey frame and replace it with a dark-to-pink gradient edge. */
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    background:
        linear-gradient(var(--cp365-faq-bg), var(--cp365-faq-bg)) padding-box,
        linear-gradient(115deg, var(--cp365-faq-muted) 0%, #252833 38%, var(--cp365-faq-pink) 100%) border-box !important;
    box-shadow: none !important;
    padding: 28px !important;
}

body.single-event .el_faq_wrapper .el_faq_container {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item:not(:first-child) {
    margin-top: 22px !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card {
    position: relative !important;
    overflow: hidden !important;

    /* Replace the visible grey rounded border with a charcoal -> hot-pink gradient border. */
    border: 1px solid transparent !important;
    border-radius: 22px !important;
    background:
        linear-gradient(135deg, #191b24 0%, #161820 62%, #13151c 100%) padding-box,
        linear-gradient(110deg, #363944 0%, #2a2d37 44%, var(--cp365-faq-pink) 100%) border-box !important;
    box-shadow: none !important;
    padding: 12px 4px 24px 4px !important;
    transition: border-color .2s ease, background .2s ease !important;
}

/* A subtle pink wash on the right side keeps the gradient visible without turning the card bright pink. */
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 0 auto !important;
    width: 24% !important;
    pointer-events: none !important;
    background: linear-gradient(90deg, rgba(255,0,111,0) 0%, rgba(255,0,111,.055) 100%) !important;
    z-index: 0 !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card > * {
    position: relative !important;
    z-index: 1 !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 0 22px !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper .el_faq_question {
    margin: 0 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/*
 * Remove the small black box behind the pink + / - icon.
 * The icon now floats cleanly on the FAQ card.
 */
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper .el_faq_toggle,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper button.el_faq_toggle,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper a.el_faq_toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--cp365-faq-pink-bright) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper .el_faq_toggle:hover,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper .el_faq_toggle:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #ff4b9b !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper .el_faq_toggle i,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper .el_faq_toggle .fa,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper .el_faq_toggle .fas {
    color: var(--cp365-faq-pink-bright) !important;
    font-size: 28px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer {
    margin: 18px 0 0 0 !important;
    padding: 0 22px !important;
    color: #f3f3f5 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer p,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer span,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer div,
body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer a {
    color: #f3f3f5 !important;
}

body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer p:last-child {
    margin-bottom: 0 !important;
}

/* Elementor/Meup accordion fallback in case the FAQ is rendered through the theme widget. */
body.single-event .according-meup .elementor-accordion .elementor-accordion-item {
    border: 1px solid transparent !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background:
        linear-gradient(#171922, #171922) padding-box,
        linear-gradient(110deg, #363944 0%, #2a2d37 44%, var(--cp365-faq-pink, #ff006f) 100%) border-box !important;
    box-shadow: none !important;
}

body.single-event .according-meup .elementor-accordion .elementor-accordion-item .elementor-tab-title,
body.single-event .according-meup .elementor-accordion .elementor-accordion-item .elementor-tab-content {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-event .according-meup .elementor-accordion .elementor-accordion-item .elementor-accordion-icon {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ff2b86 !important;
}

@media (max-width: 767px) {
    body.single-event .el_faq_wrapper {
        padding: 16px !important;
    }

    body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card {
        border-radius: 18px !important;
    }

    body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_question_wrapper,
    body.single-event .el_faq_wrapper .el_faq_container .el_faq_item .el_faq_card .el_faq_answer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
