.yoxion-consent[hidden],
.yoxion-consent-settings[hidden],
.yoxion-consent__preferences[hidden] {
    display: none !important;
}

.yoxion-consent {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 10000;
    width: min(calc(100% - 36px), 1040px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(105, 138, 212, .26);
    border-radius: 16px;
    background: rgba(6, 16, 35, .97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .03);
    color: #f8fafc;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    backdrop-filter: blur(18px);
}

.yoxion-consent__summary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yoxion-consent__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(117, 133, 255, .28);
    border-radius: 11px;
    background: rgba(117, 133, 255, .10);
    color: #8da3ff;
}

.yoxion-consent__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yoxion-consent__content { min-width: 0; }
.yoxion-consent h2 { margin: 0 0 3px; color: #fff; font-size: 15px; line-height: 1.25; }
.yoxion-consent p { margin: 0; max-width: 610px; color: #9eabc1; font-size: 11.5px; line-height: 1.5; }

.yoxion-consent__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.yoxion-consent__button,
.yoxion-consent-settings {
    appearance: none;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease, background 150ms ease;
}

.yoxion-consent__button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 11.5px;
    white-space: nowrap;
}

.yoxion-consent__button:hover,
.yoxion-consent-settings:hover { filter: brightness(1.08); transform: translateY(-1px); }
.yoxion-consent__button:focus-visible,
.yoxion-consent-settings:focus-visible,
.yoxion-consent__switch input:focus-visible + span { outline: 2px solid #67dfff; outline-offset: 3px; }

.yoxion-consent__button--text { border-color: transparent; background: transparent; color: #93a4c3; }
.yoxion-consent__button--secondary { border-color: rgba(125, 223, 255, .20); background: rgba(34, 201, 255, .05); color: #c7f3ff; }
.yoxion-consent__button--primary { background: linear-gradient(135deg, #5268ff, #1dbfd3); color: #fff; box-shadow: 0 8px 20px rgba(32, 145, 215, .14); }

.yoxion-consent__preferences {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    padding: 14px;
    border: 1px solid rgba(105, 138, 212, .26);
    border-radius: 15px;
    background: rgba(6, 16, 35, .985);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
}

.yoxion-consent__preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(105, 138, 212, .14);
}

.yoxion-consent__preference-row > div { display: grid; gap: 3px; }
.yoxion-consent__preference-row strong { color: #f5f7ff; font-size: 12px; }
.yoxion-consent__preference-row span { color: #8f9db6; font-size: 11px; line-height: 1.45; }
.yoxion-consent__always-on { flex: 0 0 auto; color: #7ddfff !important; font-weight: 750; }
.yoxion-consent__preference-actions { display: flex; justify-content: flex-end; padding-top: 12px; }

.yoxion-consent__switch { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; }
.yoxion-consent__switch input { position: absolute; opacity: 0; pointer-events: none; }
.yoxion-consent__switch > span:first-of-type {
    width: 42px;
    height: 24px;
    border: 1px solid rgba(112, 129, 167, .35);
    border-radius: 999px;
    background: #111d34;
    position: relative;
    transition: background 160ms ease, border-color 160ms ease;
}
.yoxion-consent__switch > span:first-of-type::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8390aa;
    content: "";
    transition: transform 160ms ease, background 160ms ease;
}
.yoxion-consent__switch input:checked + span { border-color: rgba(49, 205, 219, .55); background: rgba(49, 205, 219, .16); }
.yoxion-consent__switch input:checked + span::after { transform: translateX(18px); background: #39d2df; }

.yoxion-consent-settings {
    position: static;
    z-index: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(99, 136, 219, .24);
    border-radius: 9px;
    background: rgba(34, 201, 255, .055);
    color: #8fe8ff;
    font-size: 11px;
    line-height: 1;
    box-shadow: none;
    white-space: nowrap;
}

.yoxion-consent-settings--floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    min-height: 38px;
    padding: 8px 13px;
    background: rgba(7, 18, 38, .92);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    backdrop-filter: blur(12px);
}

.application-footer__right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.application-footer__consent-host,
.brand-footer__consent-host { display: inline-flex; align-items: center; }
.brand-footer__consent-host:not(:empty)::before { margin-right: 10px; color: #65758d; content: "•"; }
.brand-footer__consent-host .yoxion-consent-settings { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #7ddfff; font-size: inherit; font-weight: 500; }
.brand-footer__consent-host .yoxion-consent-settings:hover { color: #c7f4ff; text-decoration: underline; transform: none; }

@media (max-width: 820px) {
    .yoxion-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        transform: none;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
        border-radius: 15px;
    }
    .yoxion-consent__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .yoxion-consent__button--text { grid-column: 1 / -1; order: 3; }
    .yoxion-consent__button { width: 100%; min-height: 42px; }
    .yoxion-consent__preferences { position: static; order: 2; margin-top: -2px; box-shadow: none; background: rgba(12, 25, 49, .74); }
    .yoxion-consent.is-managing .yoxion-consent__actions { display: none; }
    .application-footer__right { flex-direction: column; justify-content: center; gap: 7px; }
    .brand-footer__consent-host:not(:empty)::before { display: none; }
}

@media (max-width: 500px) {
    .yoxion-consent__summary { align-items: flex-start; }
    .yoxion-consent__icon { width: 34px; height: 34px; }
    .yoxion-consent__actions { grid-template-columns: 1fr; }
    .yoxion-consent__button--text { grid-column: auto; }
    .yoxion-consent__preference-row { align-items: flex-start; }
    .yoxion-consent__preference-row > span,
    .yoxion-consent__switch { margin-top: 2px; }
    .yoxion-consent-settings { max-width: 100%; white-space: normal; }
}
