.radiix-solix-launcher,
.radiix-solix-panel,
.radiix-solix-panel * {
    box-sizing: border-box;
}

.radiix-solix-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #174274;
    border-radius: 999px;
    background: #174274;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 30, 55, .14);
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.radiix-solix-launcher:focus-visible,
.radiix-solix-panel button:focus-visible,
.radiix-solix-panel input:focus-visible,
.radiix-solix-panel textarea:focus-visible {
    outline: 3px solid #49769f;
    outline-offset: 2px;
}

.radiix-solix-launcher__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e7ebee;
}

.radiix-solix-panel {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 99989;
    width: min(420px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #e7ebee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    color: #051e37;
    box-shadow: 0 20px 56px rgba(5, 30, 55, .2);
    font-family: inherit;
}

.radiix-solix-panel[hidden] { display: none; }

.radiix-solix-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e7ebee;
    background: rgba(251, 251, 252, .92);
}

.radiix-solix-panel__header h2 {
    margin: 2px 0 0;
    color: #051e37;
    font-size: 22px;
    line-height: 1.15;
}

.radiix-solix-panel__eyebrow {
    color: #49769f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
}

.radiix-solix-panel__close {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #4d5d6d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.radiix-solix-panel__body {
    max-height: min(62vh, 560px);
    min-height: 260px;
    overflow-y: auto;
    padding: 20px 18px 22px;
}

.radiix-solix-panel__body p { margin: 0 0 10px; color: #4d5d6d; font-size: 14px; line-height: 1.55; }
.radiix-solix-panel__body .radiix-solix-panel__role { margin-bottom: 5px; color: #174274; font-weight: 700; }

.radiix-solix-step-title { margin: 4px 0 6px; color: #051e37; font-size: 19px; line-height: 1.25; }
.radiix-solix-step-copy { margin-bottom: 16px !important; }

/* Build 07 control rhythm: one coherent 8px spacing system. */
.radiix-solix-options,
.radiix-solix-service-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.radiix-solix-option,
.radiix-solix-primary {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8e0e6;
    border-radius: 12px;
    background: #fff;
    color: #174274;
    padding: 11px 14px;
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.radiix-solix-option:active,
.radiix-solix-primary:active {
    transform: translateY(0);
}

.radiix-solix-primary {
    margin-top: 10px;
    border-color: #174274;
    background: #174274;
    color: #fff;
    text-align: center;
}

.radiix-solix-option:disabled,
.radiix-solix-primary:disabled {
    border-color: #d8e0e6;
    background: #f3f5f7;
    color: #87929c;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

.radiix-solix-counter {
    margin: 12px 0 10px;
    color: #49769f;
    font-size: 12px;
    font-weight: 700;
}

.radiix-solix-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #d8e0e6;
    border-radius: 12px;
    background: #fff;
    color: #051e37;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.radiix-solix-check input {
    margin-top: 2px;
    accent-color: #174274;
}

.radiix-solix-check:focus-within {
    border-color: #49769f;
}

/* Modern browsers show a persistent selected state without changing application logic. */
.radiix-solix-check:has(input:checked) {
    border-color: #49769f;
    background: #f3f5f7;
}

.radiix-solix-check--not-listed {
    margin-top: 8px;
    border-style: solid;
}

.radiix-solix-private-warning {
    margin: 12px 0 8px !important;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f3f5f7;
    color: #4d5d6d !important;
    font-size: 12px !important;
}

.radiix-solix-note {
    width: 100%;
    min-height: 104px;
    resize: vertical;
    border: 1px solid #cfd9e1;
    border-radius: 12px;
    background: #fff;
    padding: 11px 12px;
    color: #051e37;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.radiix-solix-note:hover { border-color: #aebecb; }
.radiix-solix-note:focus { border-color: #49769f; }
.radiix-solix-note-count { margin-top: 4px; text-align: right; color: #4d5d6d; font-size: 11px; }


.radiix-solix-knowledge-groups {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.radiix-solix-knowledge-group {
    margin: 0;
}

.radiix-solix-knowledge-group__title {
    margin: 0 0 8px;
    color: #174274;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.radiix-solix-knowledge-group .radiix-solix-options {
    margin-top: 0;
}

.radiix-solix-launcher.is-panel-open {
    display: none !important;
}

.radiix-solix-summary {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e7ebee;
    border-radius: 12px;
    background: #fbfbfc;
}

.radiix-solix-summary strong { display: block; margin: 10px 0 5px; color: #174274; }
.radiix-solix-summary strong:first-child { margin-top: 0; }
.radiix-solix-summary ul { margin: 6px 0 0 18px; padding: 0; }
.radiix-solix-summary li { margin: 4px 0; color: #4d5d6d; font-size: 14px; }

.radiix-solix-panel__notice {
    margin: 0 18px 12px;
    padding: 10px 11px;
    border-radius: 10px;
    background: #f3f5f7;
    color: #051e37;
    font-size: 12px;
    line-height: 1.4;
}

.radiix-solix-panel__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-top: 1px solid #e7ebee;
    background: rgba(251, 251, 252, .92);
    color: #4d5d6d;
    font-size: 11px;
}

.radiix-solix-panel__footer > span { margin-left: auto; }
.radiix-solix-text-button {
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #174274;
    padding: 5px 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.radiix-solix-panel.is-busy { cursor: progress; }
.radiix-solix-panel.is-busy .radiix-solix-panel__body { opacity: .75; }

/* The security container stays visually quiet and consistent with summary cards. */
.radiix-solix-security-check {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e7ebee;
    border-radius: 12px;
    background: #fbfbfc;
}
.radiix-solix-security-check > strong { display: block; color: #174274; font-size: 13px; }
.radiix-solix-security-copy,
.radiix-solix-turnstile-status { margin: 5px 0 0; color: #4d5d6d; font-size: 11px; line-height: 1.4; }
.radiix-solix-turnstile { margin-top: 10px; min-height: 65px; width: 100%; }

/* Hover motion is deliberately limited to devices that genuinely support hover. */
@media (hover: hover) and (pointer: fine) {
    .radiix-solix-launcher:hover {
        border-color: #051e37;
        background: #051e37;
        box-shadow: 0 7px 18px rgba(5, 30, 55, .18);
        transform: translateY(-1px);
    }

    .radiix-solix-panel__close:hover {
        border-color: #e7ebee;
        background: #f3f5f7;
        color: #051e37;
        box-shadow: 0 4px 10px rgba(5, 30, 55, .08);
        transform: translateY(-1px);
    }

    .radiix-solix-option:hover:not(:disabled) {
        border-color: #49769f;
        background: #f3f5f7;
        box-shadow: 0 5px 14px rgba(5, 30, 55, .10);
        transform: translateY(-1px);
    }

    .radiix-solix-primary:hover:not(:disabled) {
        border-color: #051e37;
        background: #051e37;
        box-shadow: 0 6px 15px rgba(5, 30, 55, .14);
        transform: translateY(-1px);
    }

    .radiix-solix-check:hover {
        border-color: #49769f;
        background: #fbfbfc;
        box-shadow: 0 5px 14px rgba(5, 30, 55, .08);
        transform: translateY(-1px);
    }

    .radiix-solix-check:has(input:checked):hover {
        background: #f3f5f7;
    }

    .radiix-solix-text-button:hover {
        border-color: #e7ebee;
        background: #f3f5f7;
        color: #051e37;
        box-shadow: 0 3px 8px rgba(5, 30, 55, .07);
        transform: translateY(-1px);
        text-decoration: none;
    }
}

@media (max-width: 600px) {
    .radiix-solix-launcher {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .radiix-solix-panel {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: auto;
        max-width: none;
        height: auto;
        max-height: min(84vh, 700px);
        max-height: min(84dvh, 700px);
        border-radius: 18px;
    }

    .radiix-solix-panel:not([hidden]) {
        display: flex;
        flex-direction: column;
    }

    .radiix-solix-panel__header,
    .radiix-solix-panel__notice,
    .radiix-solix-panel__footer {
        flex: 0 0 auto;
    }

    .radiix-solix-panel__body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        height: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .radiix-solix-panel__footer {
        flex-wrap: nowrap;
        padding-bottom: max(11px, env(safe-area-inset-bottom));
    }

    .radiix-solix-option,
    .radiix-solix-primary,
    .radiix-solix-check { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .radiix-solix-launcher,
    .radiix-solix-panel__close,
    .radiix-solix-option,
    .radiix-solix-primary,
    .radiix-solix-check,
    .radiix-solix-note,
    .radiix-solix-text-button {
        transition: none !important;
        transform: none !important;
    }
}

/* Build 07.1 interaction contrast correction.
 * These rules are deliberately scoped strongly so Blocksy/WordPress global
 * button styles cannot erase Solix control contrast on hover.
 */
.radiix-solix-panel,
.radiix-solix-launcher {
    --solix-action-blue: #2f6fa8;
    --solix-action-blue-hover: #255d90;
    --solix-action-blue-dark: #174274;
    --solix-action-border: #8fb4d0;
    --solix-action-soft: #f2f7fb;
    --solix-action-soft-hover: #e7f1f8;
}

button.radiix-solix-launcher {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid var(--solix-action-blue-dark) !important;
    background: var(--solix-action-blue) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 5px 15px rgba(5,30,55,.16) !important;
}

.radiix-solix-panel button.radiix-solix-option,
.radiix-solix-panel button.radiix-solix-primary,
.radiix-solix-panel button.radiix-solix-text-button,
.radiix-solix-panel button.radiix-solix-panel__close {
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
}

/* Choice / secondary action: visible blue edge, clean light surface. */
.radiix-solix-panel button.radiix-solix-option:not(:disabled) {
    border: 1px solid var(--solix-action-border) !important;
    background: var(--solix-action-soft) !important;
    color: var(--solix-action-blue-dark) !important;
    box-shadow: none !important;
}

/* Primary action: brighter engaging blue with a clearly darker 1px edge. */
.radiix-solix-panel button.radiix-solix-primary:not(:disabled) {
    border: 1px solid var(--solix-action-blue-dark) !important;
    background: var(--solix-action-blue) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(5,30,55,.10) !important;
}

/* Utility actions stay lighter so they do not compete with conversion. */
.radiix-solix-panel button.radiix-solix-text-button:not(:disabled) {
    border: 1px solid #b7cddd !important;
    background: #fff !important;
    color: var(--solix-action-blue-dark) !important;
    box-shadow: none !important;
}

/* Disabled must remain readable and must never inherit a theme hover colour. */
.radiix-solix-panel button.radiix-solix-option:disabled,
.radiix-solix-panel button.radiix-solix-primary:disabled,
.radiix-solix-panel button.radiix-solix-text-button:disabled {
    border-color: #d5dde3 !important;
    background: #eef1f3 !important;
    color: #6f7a84 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Checkbox/service choices use the same brighter interaction language. */
.radiix-solix-panel .radiix-solix-check {
    border-color: #b7cddd;
    background: #fff;
}
.radiix-solix-panel .radiix-solix-check input {
    accent-color: var(--solix-action-blue);
}
.radiix-solix-panel .radiix-solix-check:has(input:checked) {
    border-color: var(--solix-action-blue);
    background: #eaf3fa;
    box-shadow: 0 0 0 1px rgba(47,111,168,.08) inset;
}

.radiix-solix-panel .radiix-solix-note {
    border-color: #a9c3d7;
}
.radiix-solix-panel .radiix-solix-note:focus {
    border-color: var(--solix-action-blue);
    box-shadow: 0 0 0 3px rgba(47,111,168,.13);
    outline: none;
}

.radiix-solix-launcher:focus-visible,
.radiix-solix-panel button:focus-visible,
.radiix-solix-panel input:focus-visible,
.radiix-solix-panel textarea:focus-visible {
    outline: 3px solid rgba(47,111,168,.42) !important;
    outline-offset: 2px !important;
}

@media (hover: hover) and (pointer: fine) {
    button.radiix-solix-launcher:hover {
        border-color: #0f355b !important;
        background: var(--solix-action-blue-hover) !important;
        color: #fff !important;
        box-shadow: 0 0 0 1px rgba(255,255,255,.24) inset, 0 8px 20px rgba(5,30,55,.20) !important;
        transform: translateY(-1px) !important;
    }

    .radiix-solix-panel button.radiix-solix-option:hover:not(:disabled) {
        border-color: var(--solix-action-blue) !important;
        background: var(--solix-action-soft-hover) !important;
        color: var(--solix-action-blue-dark) !important;
        box-shadow: 0 5px 14px rgba(5,30,55,.11) !important;
        transform: translateY(-1px) !important;
    }

    .radiix-solix-panel button.radiix-solix-primary:hover:not(:disabled) {
        border-color: #0f355b !important;
        background: var(--solix-action-blue-hover) !important;
        color: #fff !important;
        box-shadow: 0 7px 17px rgba(5,30,55,.17) !important;
        transform: translateY(-1px) !important;
    }

    .radiix-solix-panel button.radiix-solix-text-button:hover:not(:disabled) {
        border-color: var(--solix-action-blue) !important;
        background: var(--solix-action-soft-hover) !important;
        color: var(--solix-action-blue-dark) !important;
        box-shadow: 0 4px 10px rgba(5,30,55,.08) !important;
        transform: translateY(-1px) !important;
    }

    .radiix-solix-panel .radiix-solix-check:hover {
        border-color: var(--solix-action-blue);
        background: #f7fbfe;
        box-shadow: 0 5px 14px rgba(5,30,55,.08);
        transform: translateY(-1px);
    }
}
