/* Cookie consent UI calibrated to the supplied viagogo desktop captures.
   The local Windows/browser rendering is ~1.25 device scale, so CSS geometry
   is ~80% of the measured screenshot pixels. */
.vg-cookie-ui[hidden] { display: none !important; }

.vg-cookie-ui {
    position: fixed;
    inset: 0;
    z-index: 9999;
    font-family: Inter, Arial, sans-serif;
    color: #111;
}

.vg-cookie-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .47);
}

/* Reference capture: banner is ~186 rendered px tall -> ~149 CSS px at 1.25 scale. */
.vg-cookie-banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 149px;
    background: #fff;
    box-shadow: 0 -1px 0 rgba(0,0,0,.08);
}

.vg-cookie-banner-inner {
    width: min(1320px, calc(100% - 96px));
    min-height: 149px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 51px;
}

.vg-cookie-copy {
    max-width: 704px;
    font-size: 14.5px;
    line-height: 1.35;
}

.vg-cookie-copy p { margin: 0; }
.vg-cookie-copy a { color: #0779e4; text-decoration: none; }

.vg-cookie-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.vg-cookie-btn {
    height: 50px;
    min-width: 202px;
    border-radius: 11px;
    border: 1.2px solid #4b8500;
    background: #fff;
    color: #4b8500;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

.vg-cookie-btn.is-primary {
    background: #4b8500;
    color: #fff;
}

/* Reference capture: dialog ~750 x 614 rendered px -> ~600 x 491 CSS px. */
.vg-cookie-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(600px, calc(100% - 32px));
    min-height: 491px;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    background: #fff;
    padding: 23px 24px 25px;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

.vg-cookie-modal[hidden],
.vg-cookie-banner[hidden] { display: none !important; }

.vg-cookie-modal h2 {
    margin: 0 0 18px;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.35px;
}

.vg-cookie-modal-body {
    display: grid;
    grid-template-columns: 184px 1fr;
    gap: 24px;
    min-height: 336px;
}

.vg-cookie-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vg-cookie-menu button {
    min-height: 56px;
    width: 100%;
    border: 0;
    border-radius: 13px;
    background: transparent;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    cursor: pointer;
}

.vg-cookie-menu button.is-active {
    background: #f2f8e8;
    font-weight: 700;
}

.vg-cookie-menu .chev {
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-1px);
}

.vg-cookie-detail {
    padding-top: 8px;
}

.vg-cookie-detail h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}

.vg-cookie-detail p {
    margin: 0;
    font-size: 16px;
    line-height: 1.22;
}

.vg-cookie-toggle-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
}

.vg-cookie-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
}

.vg-cookie-switch input { opacity: 0; position: absolute; }
.vg-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: #c9c9c9;
    cursor: pointer;
    transition: .16s ease;
}
.vg-cookie-switch span::after {
    content: '';
    position: absolute;
    width: 19px;
    height: 19px;
    left: 2.5px;
    top: 2.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: .16s ease;
}
.vg-cookie-switch input:checked + span { background: #4b8500; }
.vg-cookie-switch input:checked + span::after { transform: translateX(18px); }
.vg-cookie-switch input:disabled + span { opacity: .55; cursor: default; }

.vg-cookie-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 3px;
}

.vg-cookie-modal-actions .right {
    display: flex;
    gap: 10px;
}

.vg-cookie-modal-actions .vg-cookie-btn {
    min-width: 0;
    height: 48px;
    border-radius: 11px;
    padding: 0 16px;
}

.vg-cookie-modal-actions .reject { width: 96px; }
.vg-cookie-modal-actions .allow { width: 90px; }
.vg-cookie-modal-actions .confirm { width: 145px; }

body.vg-cookie-lock { overflow: hidden; }

@media (max-width: 900px) {
    .vg-cookie-banner-inner {
        width: calc(100% - 30px);
        padding: 19px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .vg-cookie-actions { width: 100%; }
    .vg-cookie-btn { min-width: 0; flex: 1; }
    .vg-cookie-modal { max-height: calc(100vh - 20px); overflow: auto; }
}

@media (max-width: 680px) {
    .vg-cookie-copy { font-size: 14px; }
    .vg-cookie-actions { flex-direction: column; }
    .vg-cookie-modal { padding: 20px 15px; border-radius: 18px; }
    .vg-cookie-modal h2 { font-size: 22px; }
    .vg-cookie-modal-body { grid-template-columns: 1fr; gap: 14px; }
    .vg-cookie-menu button { min-height: 44px; font-size: 15px; }
    .vg-cookie-detail p { font-size: 15px; }
    .vg-cookie-modal-actions { flex-direction: column; align-items: stretch; }
    .vg-cookie-modal-actions .right { display: grid; grid-template-columns: 1fr 1.45fr; }
    .vg-cookie-modal-actions .reject,
    .vg-cookie-modal-actions .allow,
    .vg-cookie-modal-actions .confirm { width: 100%; }
}
