/* ===================================================================
   Hilfe-Center, help pages and FAQ
   Banner uses the .sc-pcb styles from shop.css
   =================================================================== */
.sc-help-hero-inner {
    min-height: 130px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.sc-help-hero .sc-pcb-title {
    font-size: clamp(24px, 2.8vw, 36px);
}

.sc-help-hero .sc-help-hero-sub {
    max-width: 700px;
    margin: 6px 0 0;
    color: #dbe6fb;
    font-size: 15.5px;
    line-height: 1.55;
}

.sc-help-page .entry-header {
    display: none;
}

.sc-help {
    padding-top: 2rem;
    padding-bottom: 1rem;
    color: #3a4458;
}

/* ---------- two-column layout ---------- */
.sc-help-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
}

.sc-help-main {
    min-width: 0;
}

/* ---------- content typography ---------- */
.sc-help-content {
    font-size: 1rem;
    line-height: 1.75;
}

.sc-help-content > *:first-child {
    margin-top: 0;
}

.sc-help-content > p:first-child {
    color: #1f2f55;
    font-size: 1.1rem;
}

.sc-help-content h2 {
    margin: 2rem 0 0.6rem;
    color: #0f1f44;
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    font-weight: 800;
    line-height: 1.3;
}

.sc-help-content h3 {
    margin: 1.5rem 0 0.4rem;
    color: #133c96;
    font-size: 1.08rem;
    font-weight: 700;
}

.sc-help-content p {
    margin: 0 0 1rem;
}

.sc-help-content ul,
.sc-help-content ol {
    margin: 0 0 1.25rem 1.3rem;
    padding: 0;
}

.sc-help-content li {
    margin: 0 0 0.45rem;
    padding-left: 0.2rem;
}

.sc-help-content ol li::marker {
    color: #2658c5;
    font-weight: 800;
}

.sc-help-content a {
    color: #2658c5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sc-help-content strong {
    color: #0f1f44;
}

.sc-help-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #eef3fb;
    color: #133c96;
    font-size: 0.92em;
}

.sc-help-content .wp-block-table {
    margin: 0 0 1.5rem;
    overflow-x: auto;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
}

.sc-help-content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.sc-help-content th,
.sc-help-content td {
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #edf1f8;
    text-align: left;
    vertical-align: top;
    background: #fff;
}

.sc-help-content thead th {
    background: #f3f6fc;
    color: #0f1f44;
    font-weight: 700;
}

.sc-help-content tbody tr:last-child td {
    border-bottom: 0;
}

.sc-help-content .sc-help-tip {
    position: relative;
    margin: 1.5rem 0;
    padding: 14px 16px 14px 48px;
    border: 1px solid #cfe0fb;
    border-radius: 12px;
    background: #f2f7ff;
    color: #1f2f55;
}

.sc-help-content .sc-help-tip::before {
    content: "i";
    position: absolute;
    left: 16px;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2658c5;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    font-style: normal;
    line-height: 20px;
    text-align: center;
}

.sc-help-more {
    margin-top: 2rem;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f5f7fb;
    border: 1px solid #e7ebf3;
}

.sc-help-more p {
    margin: 0;
}

.sc-help-more a {
    color: #2658c5;
}

/* ---------- side navigation ---------- */
.sc-help-side {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-help-nav {
    border: 1px solid #e1e8f5;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.sc-help a.sc-help-nav-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    background: #133c96;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.sc-help a.sc-help-nav-home:hover {
    background: #2658c5;
    color: #fff;
}

.sc-help-nav-cat {
    border-top: 1px solid #edf1f8;
}

.sc-help-nav-cat summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    color: #0f1f44;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
}

.sc-help-nav-cat summary::-webkit-details-marker {
    display: none;
}

.sc-help-nav-cat summary svg {
    color: #2658c5;
    flex: 0 0 auto;
}

.sc-help-nav-cat summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border: solid #6b7280;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.sc-help-nav-cat[open] summary::after {
    transform: rotate(-135deg);
}

.sc-help-nav-cat ul {
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
}

.sc-help-nav-cat li {
    margin: 0;
}

.sc-help-nav-cat a {
    display: block;
    padding: 7px 16px 7px 43px;
    color: #374151;
    font-size: 14.5px;
    line-height: 1.4;
    text-decoration: none;
}

.sc-help-nav-cat a:hover {
    color: #133c96;
    background: #f5f8fe;
}

.sc-help-nav-cat a[aria-current="page"] {
    color: #133c96;
    font-weight: 700;
    background: #eef3fb;
    box-shadow: inset 3px 0 0 #2658c5;
}

.sc-help-contact {
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #133c96 0%, #2658c5 100%);
    color: #dbe6fb;
}

.sc-help-contact p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.sc-help-contact .sc-help-contact-title {
    margin-bottom: 4px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.sc-help a.sc-help-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}

.sc-help a.sc-help-contact-row:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ---------- hub ---------- */
.sc-hub-search {
    position: relative;
    max-width: 720px;
    margin: 0 auto 2.25rem;
}

.sc-hub-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    line-height: 0;
}

.sc-help .sc-hub-search input {
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 18px 0 52px;
    border: 1px solid #cfd6e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 31, 68, 0.08);
    font-size: 16px;
}

.sc-help .sc-hub-search input:focus {
    border-color: #2658c5;
    outline: 3px solid rgba(38, 88, 197, 0.15);
}

.sc-hub-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}

.sc-hub-cat {
    padding: 20px 20px 12px;
    border: 1px solid #e1e8f5;
    border-radius: 16px;
    background: linear-gradient(180deg, #f7f9fe 0%, #fff 100px);
}

.sc-hub-cat h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    color: #0f1f44;
    font-size: 1.15rem;
    font-weight: 800;
}

.sc-hub-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eaf0fc;
    color: #2658c5;
}

.sc-hub-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sc-hub-links li {
    margin: 0;
    border-top: 1px solid #edf1f8;
}

.sc-hub-links li:first-child {
    border-top: 0;
}

.sc-help .sc-hub-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 4px;
    color: inherit;
    text-decoration: none;
}

.sc-hub-link-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.sc-hub-link-title {
    color: #0f1f44;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.sc-hub-link-desc {
    margin-top: 2px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.4;
}

.sc-hub-link-arrow {
    flex: 0 0 auto;
    color: #9aa8c4;
    line-height: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.sc-help .sc-hub-links a:hover .sc-hub-link-title {
    color: #133c96;
}

.sc-help .sc-hub-links a:hover .sc-hub-link-arrow {
    color: #2658c5;
    transform: translateX(3px);
}

.sc-hub-empty {
    margin: 1.5rem 0 0;
    text-align: center;
}

.sc-hub-intro {
    max-width: 860px;
    margin: 0 auto 2rem;
}

.sc-hub-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 2.5rem 0 1rem;
    padding: 26px 30px;
    border-radius: 16px;
    background: #f3f6fc;
    border: 1px solid #e1e8f5;
}

.sc-hub-contact h2 {
    margin: 0 0 0.3rem;
    color: #0f1f44;
    font-size: 1.3rem;
    font-weight: 800;
}

.sc-hub-contact p {
    margin: 0;
}

.sc-hub-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.sc-help a.sc-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.sc-help a.sc-hub-btn-primary {
    background: #133c96;
    color: #fff;
}

.sc-help a.sc-hub-btn-primary:hover {
    background: #2658c5;
    color: #fff;
}

.sc-help a.sc-hub-btn-secondary {
    background: #fff;
    border: 1px solid #c9d5ee;
    color: #133c96;
}

/* ---------- FAQ ---------- */
.sc-faqx-tools {
    margin: 0 0 1.75rem;
}

.sc-help .sc-faqx-search {
    width: 100%;
    height: 52px;
    margin: 0 0 14px;
    padding: 0 16px;
    border: 1px solid #cfd6e3;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
}

.sc-help .sc-faqx-search:focus {
    border-color: #2658c5;
    outline: 3px solid rgba(38, 88, 197, 0.15);
}

.sc-faqx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-help .sc-faqx-chip {
    padding: 8px 14px !important;
    border: 1px solid #d5dbe7 !important;
    border-radius: 999px;
    background: #fff !important;
    color: #1f2937 !important;
    font-size: 14px;
    font-weight: 600 !important;
    cursor: pointer;
}

.sc-help .sc-faqx-chip:hover {
    border-color: #2658c5 !important;
    color: #133c96 !important;
}

.sc-help .sc-faqx-chip.is-active {
    background: #133c96 !important;
    border-color: #133c96 !important;
    color: #fff !important;
}

.sc-faqx-group {
    margin: 0 0 2rem;
}

.sc-faqx-group h2 {
    margin: 0 0 0.75rem;
    color: #0f1f44;
    font-size: 1.25rem;
    font-weight: 800;
}

.sc-faqx-item {
    margin: 0 0 8px;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.sc-faqx-item summary {
    position: relative;
    padding: 15px 50px 15px 18px;
    color: #0f1f44;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.sc-faqx-item summary::-webkit-details-marker {
    display: none;
}

.sc-faqx-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: #eaf0fc;
    color: #2658c5;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.sc-faqx-item[open] summary::after {
    content: "–";
}

.sc-faqx-item[open] summary {
    background: #f7f9fe;
}

.sc-faqx-answer {
    padding: 4px 18px 16px;
    line-height: 1.7;
}

.sc-faqx-answer p {
    margin: 0;
}

.sc-faqx-answer a,
.sc-faqx-empty a {
    color: #2658c5;
    text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .sc-help-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sc-help-side {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .sc-help {
        padding-top: 1.25rem;
    }

    .sc-help-hero-inner {
        min-height: 0;
        align-items: flex-start;
    }

    .sc-help-hero .sc-help-hero-sub {
        font-size: 14.5px;
    }

    .sc-hub-cats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sc-hub-cat {
        padding: 16px 16px 8px;
    }

    .sc-hub-contact {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .sc-faqx-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .sc-help .sc-faqx-chip {
        flex: 0 0 auto;
    }

    .sc-help-content table {
        font-size: 14px;
    }
}

/* ---------- FAQ v2 (search icon, counts, mobile) ---------- */
.sc-faqx-searchwrap {
    position: relative;
    margin: 0 0 14px;
}

.sc-faqx-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8798;
    pointer-events: none;
}

.sc-help .sc-faqx-searchwrap .sc-faqx-search {
    margin: 0;
    padding-left: 46px;
}

.sc-faqx-n {
    display: inline-block;
    min-width: 22px;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef2fa;
    color: #4b5a78;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.sc-faqx-chip.is-active .sc-faqx-n {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sc-faqx-group h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-faqx-gn {
    color: #7b8798;
    font-size: 13px;
    font-weight: 600;
}

.sc-faqx-item summary::after {
    transition: transform 0.2s ease, background 0.2s ease;
}

.sc-faqx-item[open] summary::after {
    content: "+";
    transform: rotate(45deg);
    background: #133c96;
    color: #fff;
}

@media (max-width: 767.98px) {
    /* compact banner */
    .sc-help-hero-inner {
        padding-top: 18px;
        padding-bottom: 18px;
        gap: 12px;
    }

    .sc-help-hero .sc-pcb-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .sc-help-hero .sc-pcb-icon-svg {
        width: 22px;
        height: 22px;
    }

    .sc-help-hero .sc-pcb-title {
        font-size: 23px;
        line-height: 1.2;
    }

    .sc-help-hero .sc-help-hero-sub {
        font-size: 14px;
        line-height: 1.5;
    }

    .sc-help-page .sc-help {
        padding-top: 0;
    }

    .sc-faqx-tools {
        margin-bottom: 1.25rem;
    }

    .sc-help .sc-faqx-search {
        height: 48px;
        font-size: 16px;
    }

    /* chips: one swipeable row, edge to edge */
    .sc-faqx-chips {
        margin: 0 -1.41575em;
        padding: 2px 1.41575em 6px;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 1.41575em;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
    }

    .sc-faqx-chips::-webkit-scrollbar {
        display: none;
    }

    .sc-help .sc-faqx-chip {
        scroll-snap-align: start;
        padding: 7px 12px !important;
        font-size: 13.5px;
    }

    .sc-faqx-group {
        margin-bottom: 1.5rem;
        scroll-margin-top: 12px;
    }

    .sc-faqx-group h2 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .sc-faqx-item {
        border-radius: 10px;
        margin-bottom: 7px;
    }

    .sc-faqx-item summary {
        padding: 13px 48px 13px 14px;
        font-size: 15px;
        line-height: 1.4;
    }

    .sc-faqx-item summary::after {
        right: 12px;
    }

    .sc-faqx-answer {
        padding: 2px 14px 14px;
        font-size: 14.5px;
        line-height: 1.65;
    }
}
