.ayon-consent-root {
    --consent-bg: #061b38;
    --consent-panel: #ffffff;
    --consent-ink: #0b2547;
    --consent-muted: #51637c;
    --consent-border: #d7e2f2;
    --consent-primary: #10a5e8;
    --consent-primary-2: #0e8bdb;
    --consent-success: #16a34a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ayon-consent-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 160;
    width: min(640px, calc(100vw - 36px));
    border: 1px solid rgba(215, 226, 242, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(6, 27, 56, 0.24);
    color: var(--consent-ink);
    overflow: hidden;
}

.ayon-consent-banner__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
}

.ayon-consent-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #0f6db8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ayon-consent-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--consent-primary);
}

.ayon-consent-title {
    margin: 0;
    color: var(--consent-ink);
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ayon-consent-text {
    margin: 8px 0 0;
    color: var(--consent-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.ayon-consent-text a,
.ayon-consent-link {
    color: #0f8bd7;
    font-weight: 800;
    text-decoration: none;
}

.ayon-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ayon-consent-btn {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 16px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ayon-consent-btn:hover {
    transform: translateY(-1px);
}

.ayon-consent-btn--primary {
    color: #ffffff;
    border-color: #0ea3e7;
    background: linear-gradient(96deg, var(--consent-primary), #19b7ef 58%, var(--consent-primary-2));
    box-shadow: 0 10px 24px rgba(16, 165, 232, 0.24);
}

.ayon-consent-btn--success {
    color: #ffffff;
    border-color: var(--consent-success);
    background: var(--consent-success);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.2);
}

.ayon-consent-btn--secondary {
    color: #2a3f59;
    border-color: #c4d1e4;
    background: rgba(255, 255, 255, 0.9);
}

.ayon-consent-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 170;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 13, 25, 0.56);
    backdrop-filter: blur(6px);
}

.ayon-consent-modal {
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(215, 226, 242, 0.9);
    border-radius: 22px;
    background: var(--consent-panel);
    box-shadow: 0 30px 80px rgba(6, 27, 56, 0.35);
    overflow: hidden;
}

.ayon-consent-modal__header,
.ayon-consent-modal__footer {
    padding: 18px 20px;
    border-bottom: 1px solid var(--consent-border);
}

.ayon-consent-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ayon-consent-modal__footer {
    border-top: 1px solid var(--consent-border);
    border-bottom: 0;
}

.ayon-consent-close {
    width: 36px;
    height: 36px;
    border: 1px solid #c4d1e4;
    border-radius: 12px;
    background: #ffffff;
    color: #405570;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.ayon-consent-modal__body {
    padding: 18px 20px 20px;
    overflow-y: auto;
}

.ayon-consent-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f8;
}

.ayon-consent-category:last-child {
    border-bottom: 0;
}

.ayon-consent-category h3 {
    margin: 0;
    color: var(--consent-ink);
    font-family: Manrope, Inter, sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.ayon-consent-category p {
    margin: 6px 0 0;
    color: var(--consent-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.ayon-consent-switch {
    position: relative;
    width: 52px;
    height: 30px;
    flex: 0 0 auto;
}

.ayon-consent-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ayon-consent-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.18s ease;
}

.ayon-consent-slider::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(6, 27, 56, 0.18);
    transition: transform 0.18s ease;
}

.ayon-consent-switch input:checked + .ayon-consent-slider {
    background: var(--consent-primary);
}

.ayon-consent-switch input:checked + .ayon-consent-slider::after {
    transform: translateX(22px);
}

.ayon-consent-switch input:disabled + .ayon-consent-slider {
    background: #94a3b8;
    cursor: not-allowed;
}

.ayon-consent-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .ayon-consent-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .ayon-consent-actions,
    .ayon-consent-modal__footer .ayon-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ayon-consent-btn {
        width: 100%;
    }

    .ayon-consent-category {
        grid-template-columns: 1fr;
    }
}
