/* CP25 — Mega Menu + Mobile CRO + Compare 2.0 + WCAG */
.one-sv-cp25-guide-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    max-width: 100%;
    padding: 9px 14px;
    border: 1px solid rgba(11, 50, 107, .18);
    border-radius: 11px;
    background: #fff;
    color: #0b326b;
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
}
.one-sv-cp25-guide-trigger:hover { background: #f4f8fe; }
.one-sv-cp25-guide-trigger:focus-visible,
.one-sv-cp25-mega :where(a,button):focus-visible,
.one-sv-cp25-filter-panel :where(a,button,input,select,textarea):focus-visible,
.one-sv-cp25-mobile-dock a:focus-visible,
.one-sv-cp25-compare :where(a,button):focus-visible {
    outline: 3px solid #ff8a1c;
    outline-offset: 3px;
}

.one-sv-cp25-mega[hidden] { display: none !important; }
.one-sv-cp25-mega { position: fixed; z-index: 2147480500; inset: 0; padding: clamp(12px, 3vw, 34px); }
.one-sv-cp25-mega__backdrop { position: absolute; inset: 0; background: rgba(2, 12, 30, .64); }
.one-sv-cp25-mega__panel {
    position: relative;
    width: min(1180px, 100%);
    max-height: calc(100dvh - clamp(24px, 6vw, 68px));
    margin: 0 auto;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 22px;
    background: #fff;
    color: #14233d;
    box-shadow: 0 30px 100px rgba(0,0,0,.34);
}
.one-sv-cp25-mega__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: clamp(20px, 3vw, 34px); border-bottom: 1px solid #e1e8f2; }
.one-sv-cp25-mega__header h2 { margin: 4px 0 8px; color: #0b1b3a; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; }
.one-sv-cp25-mega__header p { max-width: 720px; margin: 0; color: #53647d; line-height: 1.55; }
.one-sv-cp25-eyebrow { color: #075ecb; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.one-sv-cp25-icon-button { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #eef3f9; color: #0b1b3a; font-size: 1.55rem; cursor: pointer; }
.one-sv-cp25-mega__grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(190px,.75fr)); gap: 1px; background: #e5ebf3; }
.one-sv-cp25-mega__column { min-width: 0; padding: clamp(18px, 2.5vw, 30px); background: #fff; }
.one-sv-cp25-mega__column h3 { margin: 0 0 13px; color: #0b1b3a; font-size: 1rem; }
.one-sv-cp25-mega__links { display: grid; gap: 7px; }
.one-sv-cp25-mega__links--types { grid-template-columns: repeat(2,minmax(0,1fr)); }
.one-sv-cp25-mega__links a { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 12px; border-radius: 10px; color: #15345f; text-decoration: none; }
.one-sv-cp25-mega__links a:hover { background: #f3f7fc; }
.one-sv-cp25-mega__links span { min-width: 0; overflow-wrap: anywhere; font-weight: 720; }
.one-sv-cp25-mega__links small { flex: 0 0 auto; color: #718097; font-size: .75rem; text-align: right; }
.one-sv-cp25-mega__footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px clamp(20px,3vw,34px); border-top: 1px solid #e1e8f2; background: #f8faff; }
.one-sv-cp25-text-link { color: #075ecb; font-weight: 750; text-underline-offset: 3px; }
.one-sv-cp25-modal-open { overflow: hidden !important; }

.one-sv-cp25-mobile-dock { display: none; }

.one-sv-cp25-compare { margin: 22px 0; padding: clamp(16px,2.5vw,24px); border: 1px solid #dce5f1; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(11,27,58,.06); }
.one-sv-cp25-compare h2 { margin: 0 0 7px; color: #0b1b3a; font-size: clamp(1.25rem,3vw,1.7rem); }
.one-sv-cp25-compare__help { margin: 0 0 16px; color: #5a6980; line-height: 1.55; }
.one-sv-cp25-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.one-sv-cp25-table-scroll:focus-visible { outline: 3px solid #ff8a1c; outline-offset: 3px; }
.one-sv-cp25-compare table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; }
.one-sv-cp25-compare th,.one-sv-cp25-compare td { padding: 11px 12px; border-right: 1px solid #e4eaf2; border-bottom: 1px solid #e4eaf2; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.one-sv-cp25-compare thead th { position: sticky; top: 0; z-index: 1; background: #f4f8fd; color: #0b1b3a; }
.one-sv-cp25-compare tbody th { min-width: 150px; background: #fafbfd; color: #263c5d; }
.one-sv-cp25-compare td:last-child,.one-sv-cp25-compare th:last-child { border-right: 0; }
.one-sv-cp25-compare tr:last-child > * { border-bottom: 0; }
.one-sv-cp25-compare__empty { color: #77849a; }
.one-sv-cp25-compare__loading { min-height: 48px; display: flex; align-items: center; color: #53647d; }

/* Never mask horizontal overflow globally. Constrain only CP25-owned/adapted surfaces. */
.one-sv-po-active :where(.one-sv-cp25-mega__panel,.one-sv-cp25-mega__grid,.one-sv-cp25-mobile-dock,.one-sv-cp25-compare) { max-width: 100%; }
.one-sv-po-active :where(img,svg,video,canvas) { max-width: 100%; }

@media (max-width: 900px) {
    .one-sv-cp25-mega__grid { grid-template-columns: 1fr 1fr; }
    .one-sv-cp25-mega__column--wide { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .one-sv-cp25-guide-trigger { min-height: 44px; padding-inline: 11px; font-size: .86rem; }
    .one-sv-cp25-mega { padding: 0; }
    .one-sv-cp25-mega__panel { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .one-sv-cp25-mega__header { position: sticky; top: 0; z-index: 3; padding: 16px; background: #fff; }
    .one-sv-cp25-mega__header p { font-size: .88rem; }
    .one-sv-cp25-mega__grid { grid-template-columns: 1fr; }
    .one-sv-cp25-mega__column--wide { grid-column: auto; }
    .one-sv-cp25-mega__links--types { grid-template-columns: 1fr; }
    .one-sv-cp25-mega__footer { position: sticky; bottom: 0; z-index: 3; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }

    .one-sv-cp25-mobile-dock {
        position: fixed;
        z-index: 2147479000;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom) + var(--one-sv-cp25-dock-offset, 0px));
        left: 10px;
        display: grid;
        grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
        gap: 8px;
        max-width: calc(100vw - 20px);
        padding: 8px;
        border: 1px solid rgba(21,50,91,.16);
        border-radius: 16px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 16px 48px rgba(5,17,39,.22);
        backdrop-filter: blur(14px);
    }
    .one-sv-cp25-mobile-dock a { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; padding: 9px 10px; border-radius: 11px; color: #0b326b; font-weight: 800; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
    .one-sv-cp25-mobile-dock__primary { background: #0b326b; color: #fff !important; }
    .one-sv-cp25-dock-hidden .one-sv-cp25-mobile-dock { display: none !important; }

    .one-sv-cp25-filter-panel.is-cp25-open {
        position: fixed !important;
        z-index: 2147480200 !important;
        inset: 0 !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 68px 16px calc(24px + env(safe-area-inset-bottom)) !important;
        overflow: auto !important;
        overscroll-behavior: contain;
        background: #fff !important;
        color: #14233d;
        transform: none !important;
        opacity: 1 !important;
    }
    .one-sv-cp25-filter-close {
        position: fixed;
        z-index: 2147480300;
        top: 12px;
        right: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 13px;
        border: 1px solid #dce5f1;
        border-radius: 999px;
        background: #fff;
        color: #0b326b;
        font-weight: 750;
    }
    .one-sv-cp25-filter-open { overflow: hidden !important; }

    .one-sv-cp25-compare { margin-inline: 0; padding: 14px; border-radius: 14px; }
    .one-sv-cp25-compare table { min-width: 580px; }
}

@media (max-width: 380px) {
    .one-sv-cp25-mobile-dock { right: 8px; left: 8px; max-width: calc(100vw - 16px); }
    .one-sv-cp25-mobile-dock a { padding-inline: 7px; font-size: .84rem; }
    .one-sv-cp25-mega__column { padding: 16px; }
    .one-sv-cp25-mega__links a { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .one-sv-cp25-mega *, .one-sv-cp25-mobile-dock *, .one-sv-cp25-filter-panel * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
