.cp-origin-faq {
    width: 100%;
    margin: 28px 0;
}

.cp-origin-faq__title {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

.cp-origin-faq__items {
    display: grid;
    gap: 10px;
}

.cp-origin-faq__item {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.cp-origin-faq__question {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.cp-origin-faq__toggle {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.cp-origin-faq__toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

.cp-origin-faq__question-text {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.3;
    font-size: 18px;
}

.cp-origin-faq__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.cp-origin-faq__icon::before,
.cp-origin-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.22s ease;
}

.cp-origin-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cp-origin-faq__item.is-open .cp-origin-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.cp-origin-faq__answer {
    overflow: hidden;
    transition: height 0.34s ease, opacity 0.24s ease;
    will-change: height;
    opacity: 1;
}

.cp-origin-faq__answer[hidden] {
    display: none;
}

.cp-origin-faq__item:not(.is-open) .cp-origin-faq__answer {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .cp-origin-faq__answer {
        transition: none;
    }
}

.cp-origin-faq__answer-inner {
    padding: 0 20px 20px;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
    font-family: 'Montserrat',sans-serif;
}

.cp-origin-faq__answer-inner p {
    margin: 0 0 12px;
}

.cp-origin-faq__read-more,
.cp-origin-faq__more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Montserrat',sans-serif;
}

.cp-origin-faq__read-more:hover,
.cp-origin-faq__more-link:hover {
    text-decoration: underline;
}

.cp-origin-faq__more {
    margin-top: 18px;
}

.cp-origin-faq--empty {
    padding: 12px 14px;
    border: 1px dashed rgba(15, 23, 42, 0.25);
    border-radius: 10px;
}
.cp-origin-faq-page {
    background: #fff;
}

.cp-origin-faq-page__shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.cp-origin-faq-page__hero {
    padding: clamp(42px, 7vw, 86px) 0 24px;
    background: linear-gradient(180deg, rgba(0, 109, 168, 0.08), rgba(255, 255, 255, 0));
}

.cp-origin-faq-page__eyebrow {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #006da8;
}

.cp-origin-faq-page__title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
}

.cp-origin-faq-page__intro {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
    color: #475569;
}

.cp-origin-faq-page__back {
    margin: 18px 0 0;
}

.cp-origin-faq-page__back a {
    font-weight: 800;
    text-decoration: none;
}

.cp-origin-faq-page__back a:hover {
    text-decoration: underline;
}

.cp-origin-faq-page__content {
    padding: 20px 0 clamp(48px, 7vw, 88px);
}

.cp-origin-faq-page__groups {
    display: grid;
    gap: clamp(22px, 4vw, 38px);
}

.cp-origin-faq-page__empty {
    padding: 24px;
    border: 1px dashed rgba(15, 23, 42, 0.25);
    border-radius: 14px;
    color: #475569;
}

/* FAQ related sidebar for single posts */
.cp-content-layout.cp-content-layout--post.cp-content-layout--post-has-faq {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(240px, 310px);
    align-items: start;
}

.cp-content-layout__sidebar--faq {
    min-width: 0;
    align-self: start;
}

.cp-content-layout.cp-content-layout--post-has-faq .cp-content-layout__sidebar--faq {
    position: sticky;
    top: 28px;
    height: auto;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.admin-bar .cp-content-layout.cp-content-layout--post-has-faq .cp-content-layout__sidebar--faq {
    top: 60px;
    max-height: calc(100vh - 88px);
}

.cp-origin-faq-sidebar {
    width: 100%;
}

.cp-origin-faq-sidebar__sticky {
    position: static;
}

.cp-origin-faq-sidebar__card {
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.cp-origin-faq-sidebar__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #006da8;
}

.cp-origin-faq-sidebar__title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.25;
}

.cp-origin-faq-sidebar__title a {
    color: inherit;
    text-decoration: none;
}

.cp-origin-faq-sidebar__title a:hover {
    text-decoration: underline;
}

.cp-origin-faq-sidebar__list,
.cp-origin-faq-sidebar__also-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-origin-faq-sidebar__list {
    display: grid;
    gap: 8px;
}

.cp-origin-faq-sidebar__item {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.cp-origin-faq-sidebar__item a,
.cp-origin-faq-sidebar__current {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.cp-origin-faq-sidebar__item a:hover {
    text-decoration: underline;
}

.cp-origin-faq-sidebar__item.is-current {
    font-weight: 800;
    color: #005c8e;
}

.cp-origin-faq-sidebar__check {
    flex: 0 0 auto;
    line-height: 1.35;
}

.cp-origin-faq-sidebar__all {
    display: inline-flex;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cp-origin-faq-sidebar__all:hover {
    text-decoration: underline;
}

.cp-origin-faq-sidebar__also {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.cp-origin-faq-sidebar__also-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: #475569;
}

.cp-origin-faq-sidebar__also-list {
    display: grid;
    gap: 12px;
}

.cp-origin-faq-sidebar__also-item {
    margin: 0;
}

.cp-origin-faq-sidebar__also-group,
.cp-origin-faq-sidebar__also-next {
    display: block;
    text-decoration: none;
}

.cp-origin-faq-sidebar__also-group {
    font-size: 14px;
    font-weight: 800;
    color: inherit;
}

.cp-origin-faq-sidebar__also-next {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
    color: #475569;
}

.cp-origin-faq-sidebar__also-group:hover,
.cp-origin-faq-sidebar__also-next:hover {
    text-decoration: underline;
}


/* ============================================
   FAQ shortcode variant: Home / Dark
   Uso:
   [cp_faq_group group="..." origin="auto" show_title="false" layout="home"]
   ============================================ */

.cp-origin-faq--home {
    margin: 0;
    color: #fff;
    background: transparent;
}

.cp-origin-faq--home .cp-origin-faq__items {
    gap: 0;
}

.cp-origin-faq--home .cp-origin-faq__item {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.cp-origin-faq--home .cp-origin-faq__question {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.25;
    color: #fff;
}

.cp-origin-faq--home .cp-origin-faq__toggle {
    min-height: 76px;
    padding: 22px 6px 22px 0;
    color: #fff;
    background: transparent;
}

.cp-origin-faq--home .cp-origin-faq__question-text {
    color: #fff;
    font-weight: 700;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    overflow-wrap: anywhere;
}

.cp-origin-faq--home .cp-origin-faq__icon {
    color: #fff;
    margin-top: 4px;
}

.cp-origin-faq--home .cp-origin-faq__icon::before,
.cp-origin-faq--home .cp-origin-faq__icon::after {
    background: #fff;
}

.cp-origin-faq--home .cp-origin-faq__answer-inner {
    padding: 0 42px 24px 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.65;
}

.cp-origin-faq--home .cp-origin-faq__answer-inner p {
    color: #fff;
}

.cp-origin-faq--home .cp-origin-faq__read-more,
.cp-origin-faq--home .cp-origin-faq__more-link {
    color: #ffa900 !important;
    font-weight: 800;
    text-decoration: none;
}

.cp-origin-faq--home .cp-origin-faq__read-more:hover,
.cp-origin-faq--home .cp-origin-faq__more-link:hover {
    color: #ffa900;
    text-decoration: underline;
}

.cp-origin-faq--home .cp-origin-faq__more {
    margin-top: 22px;
}


@media (max-width: 1180px) {
    .cp-content-layout.cp-content-layout--post.cp-content-layout--post-has-faq {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    }

    .cp-content-layout--post-has-faq .cp-content-layout__main {
        order: 1;
    }

    .cp-content-layout--post-has-faq .cp-content-layout__sidebar--faq {
        order: 2;
    }

    .cp-content-layout--post-has-faq .cp-content-layout__sidebar--author {
        order: 3;
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .cp-content-layout.cp-content-layout--post.cp-content-layout--post-has-faq {
        grid-template-columns: 1fr;
    }

    .cp-content-layout--post-has-faq .cp-content-layout__main {
        order: 1;
    }

    .cp-content-layout--post-has-faq .cp-content-layout__sidebar--author {
        order: 2;
        grid-column: auto;
    }

    .cp-content-layout--post-has-faq .cp-content-layout__sidebar--faq {
        order: 3;
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .cp-origin-faq--home .cp-origin-faq__toggle {
        min-height: auto;
        padding: 18px 4px 18px 0;
        gap: 14px;
    }

    .cp-origin-faq--home .cp-origin-faq__question {
        font-size: 17px;
    }

    .cp-origin-faq--home .cp-origin-faq__answer-inner {
        padding-right: 34px;
        font-size: 14px;
    }
}