/* KinoSIM cookie consent UI */

.cookie-modal-open {
    overflow: hidden;
}

.kino-cookie-consent,
.kino-cookie-consent * {
    box-sizing: border-box;
}

.kino-cookie-consent [hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    z-index: 10000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: min(980px, calc(100% - 36px));
    margin: 0 auto;
    padding: 18px;

    color: #e2e8f0;
    background:
        radial-gradient(circle at 4% 0%, rgba(37, 99, 235, 0.22), transparent 22rem),
        linear-gradient(135deg, #07111f 0%, #0f1f35 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-top: 3px solid #facc15;
    border-radius: 17px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.cookie-banner-copy h2,
.cookie-modal-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
}

.cookie-banner-copy p {
    margin: 7px 0 0;
    max-width: 680px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.cookie-banner-copy a,
.cookie-modal a {
    color: #93c5fd;
    font-weight: 800;
}

.cookie-banner-copy a:hover,
.cookie-modal a:hover {
    color: #dbeafe;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-btn {
    appearance: none;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 11px;
    cursor: pointer;

    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.055);

    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;

    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.cookie-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(148, 163, 184, 0.48);
}

.cookie-btn:focus-visible,
.cookie-switch input:focus-visible + .cookie-switch-track,
.cookie-modal-close:focus-visible,
.site-footer-cookie-settings:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.85);
    outline-offset: 3px;
}

.cookie-btn:disabled {
    cursor: wait;
    opacity: 0.62;
}

.cookie-btn-primary {
    color: #111827;
    background: linear-gradient(135deg, #facc15, #fde047);
    border-color: rgba(250, 204, 21, 0.85);
}

.cookie-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #fde047, #fef08a);
    border-color: #fde047;
}

.cookie-btn-secondary {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.24);
    border-color: rgba(96, 165, 250, 0.38);
}

.cookie-modal {
    position: fixed;
    z-index: 10010;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;

    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(5px);
}

.cookie-modal-panel {
    width: min(650px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow-y: auto;
    padding: 22px;

    color: #e2e8f0;
    background: linear-gradient(145deg, #07111f 0%, #10223b 100%);
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-top: 3px solid #facc15;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
}

.cookie-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.cookie-modal-copy p {
    margin: 8px 0 0;
    color: #aebdd0;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-modal-close {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;

    color: #dbeafe;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.cookie-category-list {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 15px;

    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 13px;
}

.cookie-category h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 14px;
}

.cookie-category p {
    margin: 5px 0 0;
    color: #aebdd0;
    font-size: 12px;
    line-height: 1.55;
}

.cookie-category-state {
    min-width: 88px;
    color: #86efac;
    font-size: 11px;
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 52px;
    height: 29px;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-switch-track {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 999px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cookie-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.35);
    transition: transform 0.18s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
    background: #2563eb;
    border-color: #60a5fa;
}

.cookie-switch input:checked + .cookie-switch-track::after {
    transform: translateX(23px);
}

.cookie-modal-note {
    margin: 14px 0 0;
    padding: 11px 12px;
    color: #cbd5e1;
    background: rgba(37, 99, 235, 0.10);
    border-left: 3px solid #60a5fa;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.5;
}

.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.cookie-consent-status {
    min-height: 18px;
    margin: 10px 0 0;
    color: #86efac;
    font-size: 12px;
    font-weight: 750;
}

.cookie-consent-status.is-error {
    color: #fca5a5;
}

.site-footer-cookie-settings {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;

    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 13px;
    cursor: pointer;

    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;

    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-footer-cookie-settings:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.20);
    border-color: rgba(96, 165, 250, 0.45);
    transform: translateY(-1px);
}

@media (max-width: 780px) {
    .cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 15px;
    }

    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions .cookie-btn {
        flex: 1 1 150px;
    }
}

@media (max-width: 560px) {
    .cookie-banner-copy h2,
    .cookie-modal-copy h2 {
        font-size: 16px;
    }

    .cookie-banner-copy p {
        font-size: 12.5px;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-modal-panel {
        max-height: calc(100vh - 20px);
        padding: 16px;
        border-radius: 14px;
    }

    .cookie-category {
        gap: 12px;
        padding: 13px;
    }

    .cookie-modal-actions,
    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer-cookie-settings {
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 12px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-btn,
    .cookie-switch-track,
    .cookie-switch-track::after,
    .site-footer-cookie-settings {
        transition: none;
    }
}

.link-button {
    appearance: none;
    padding: 0;
    color: #2563eb;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.link-button:hover {
    color: #1d4ed8;
}
