:root {
    --ygb-consent-bg: #0B0F14;
    --ygb-consent-panel: #111820;
    --ygb-consent-card: #161F29;
    --ygb-consent-lime: #B6FF00;
    --ygb-consent-blue: #18A8FF;
    --ygb-consent-white: #FFFFFF;
    --ygb-consent-text: #C8D1DA;
    --ygb-consent-muted: #8B98A8;
}

.ygb-consent-choice,
.ygb-consent-modal,
.ygb-consent-media-prompt {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.ygb-consent-choice *,
.ygb-consent-modal *,
.ygb-consent-media-prompt * {
    box-sizing: border-box;
}

.ygb-consent-choice[hidden],
.ygb-consent-modal[hidden] {
    display: none !important;
}

.ygb-consent-choice,
.ygb-consent-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.ygb-consent-choice__backdrop,
.ygb-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.72);
}

.ygb-consent-choice__panel,
.ygb-consent-modal__panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    border: 1px solid rgba(24, 168, 255, 0.24);
    border-radius: 14px;
    background: var(--ygb-consent-panel);
    box-shadow: 0 30px 84px rgba(0, 0, 0, 0.58), 0 0 32px rgba(24, 168, 255, 0.08);
    color: var(--ygb-consent-text);
}

.ygb-consent-choice__panel {
    width: min(560px, 100%);
    padding: 24px;
}

.ygb-consent-choice__panel h2,
.ygb-consent-modal__header h2 {
    margin: 0;
    color: var(--ygb-consent-white);
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.2;
}

.ygb-consent-choice__panel p {
    margin: 12px 0 20px;
    color: var(--ygb-consent-text);
    font-size: 14px;
    line-height: 1.55;
}

.ygb-consent-choice__actions,
.ygb-consent-modal__actions,
.ygb-consent-media-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.ygb-consent-button {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: var(--ygb-consent-card);
    color: var(--ygb-consent-white);
    font: 700 13px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.ygb-consent-button:hover,
.ygb-consent-button:focus-visible {
    border-color: rgba(24, 168, 255, 0.72);
    outline: none;
}

.ygb-consent-button--primary {
    border-color: var(--ygb-consent-lime);
    background: var(--ygb-consent-lime);
    color: #0B0F14;
}

.ygb-consent-button--primary:hover,
.ygb-consent-button--primary:focus-visible {
    border-color: #D6FF4D;
    background: #D6FF4D;
}

.ygb-consent-button--quiet {
    border-color: transparent;
    background: transparent;
    color: var(--ygb-consent-text);
}

.ygb-consent-modal__panel {
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: 24px;
}

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

.ygb-consent-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--ygb-consent-lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.ygb-consent-modal__close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: var(--ygb-consent-card);
    color: var(--ygb-consent-white);
    font: 400 25px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.ygb-consent-modal__close:focus-visible {
    border-color: var(--ygb-consent-blue);
    outline: none;
}

.ygb-consent-modal__intro {
    margin: 12px 0 18px;
    color: var(--ygb-consent-muted);
    font-size: 14px;
    line-height: 1.5;
}

.ygb-consent-category-list {
    display: grid;
    gap: 10px;
}

.ygb-consent-category {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: var(--ygb-consent-bg);
}

.ygb-consent-category__main {
    min-width: 0;
}

.ygb-consent-category h3 {
    margin: 0 0 5px;
    color: var(--ygb-consent-white);
    font-size: 15px;
    line-height: 1.3;
}

.ygb-consent-category p {
    margin: 0;
    color: var(--ygb-consent-muted);
    font-size: 13px;
    line-height: 1.48;
}

.ygb-consent-category__status {
    flex: 0 0 auto;
    color: var(--ygb-consent-lime);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ygb-consent-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}

.ygb-consent-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ygb-consent-toggle__track {
    position: relative;
    display: block;
    width: 48px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: #263241;
    transition: background 160ms ease, border-color 160ms ease;
}

.ygb-consent-toggle__track span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ygb-consent-white);
    transition: transform 160ms ease;
}

.ygb-consent-toggle input:checked + .ygb-consent-toggle__track {
    border-color: var(--ygb-consent-lime);
    background: rgba(182, 255, 0, 0.22);
}

.ygb-consent-toggle input:checked + .ygb-consent-toggle__track span {
    background: var(--ygb-consent-lime);
    transform: translateX(22px);
}

.ygb-consent-toggle input:focus-visible + .ygb-consent-toggle__track {
    outline: 2px solid var(--ygb-consent-blue);
    outline-offset: 3px;
}

.ygb-consent-modal__actions {
    margin-top: 18px;
}

html.ygb-consent-choice-open,
html.ygb-consent-modal-open {
    overflow: hidden;
}

.ygb-consent-media-prompt {
    position: absolute;
    z-index: 8;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 24px);
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.18), rgba(5, 8, 12, 0.38));
}

.ygb-consent-media-prompt__card {
    width: min(430px, 94%);
    padding: 18px;
    border: 1px solid rgba(24, 168, 255, 0.34);
    border-radius: 12px;
    background: rgba(11, 15, 20, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    color: var(--ygb-consent-text);
}

.ygb-consent-media-prompt__card strong {
    display: block;
    margin-bottom: 7px;
    color: var(--ygb-consent-white);
    font-size: 17px;
    line-height: 1.25;
}

.ygb-consent-media-prompt__card p {
    margin: 0 0 14px;
    color: var(--ygb-consent-text);
    font-size: 13px;
    line-height: 1.48;
}

@media (max-width: 760px) {
    .ygb-consent-choice,
    .ygb-consent-modal {
        padding: 12px;
    }

    .ygb-consent-choice__panel,
    .ygb-consent-modal__panel {
        width: min(560px, 100%);
        padding: 20px 16px;
    }

    .ygb-consent-modal__panel {
        max-height: calc(100vh - 24px);
    }

    .ygb-consent-category {
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .ygb-consent-category__status {
        white-space: normal;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .ygb-consent-choice__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ygb-consent-choice__actions .ygb-consent-button,
    .ygb-consent-modal__actions .ygb-consent-button,
    .ygb-consent-media-prompt__actions .ygb-consent-button {
        width: 100%;
    }

    .ygb-consent-modal__actions,
    .ygb-consent-media-prompt__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ygb-consent-media-prompt__card {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ygb-consent-toggle__track,
    .ygb-consent-toggle__track span,
    .ygb-consent-button {
        transition: none !important;
    }
}

.ygb-consent-toggle .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
