﻿/* ── Banner ─────────────────────────────────────────── */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
    z-index: 9999;
    width: 100%;
    max-width: 440px;
    background-color: #f5f5f5;
    border: 2px solid #2563eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
    font-family: 'Segoe UI', system-ui, sans-serif;
    animation: cookieSlidIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
    box-sizing: border-box;
}

@keyframes cookieSlidIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-consent-banner.cookie-hiding {
    animation: cookieSlideOut 0.3s ease-in forwards;
}

@keyframes cookieSlideOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(120px);
    }
}

/* ── Typography ──────────────────────────────────────── */
.cookie-consent-title {
    color: #111111;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.cookie-consent-text {
    color: #333333;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.cookie-policy-link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .cookie-policy-link:hover {
        color: #1d4ed8;
    }

/* ── Actions ─────────────────────────────────────────── */
.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent-row {
    display: flex;
    gap: 10px;
}

    .cookie-consent-row .btn-cookie {
        flex: 1;
    }

/* ── Buttons ─────────────────────────────────────────── */
.btn-cookie {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
    border: 1.5px solid transparent;
    text-align: center;
    letter-spacing: 0.01em;
    font-family: inherit;
}

    .btn-cookie:active {
        transform: scale(0.98);
    }

/* Customize (outline) */
.btn-cookie-customize {
    background-color: transparent;
    color: #1a1a1a;
    border-color: #999999;
}

    .btn-cookie-customize:hover {
        background-color: #e5e7eb;
        border-color: #666666;
    }

/* Reject (solid red) */
.btn-cookie-reject {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

    .btn-cookie-reject:hover {
        background-color: #b91c1c;
        border-color: #b91c1c;
    }

/* Accept (solid blue) */
.btn-cookie-accept {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

    .btn-cookie-accept:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }

/* ── Modal Overlay ───────────────────────────────────── */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: modalFadeIn 0.2s ease forwards;
}

    .cookie-modal-overlay[hidden] {
        display: none !important;
    }

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-modal-box {
    background: #f5f5f5;
    border: 2px solid #2563eb;
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
    animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
    box-sizing: border-box;
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.94);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-modal-title {
    color: #111111;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cookie-modal-desc {
    color: #444444;
    font-size: 13px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* ── Toggle Items ────────────────────────────────────── */
.cookie-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #c0c0c0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cookie-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #d8d8d8;
    background-color: #fafafa;
    gap: 12px;
}

    .cookie-toggle-item:last-child {
        border-bottom: none;
    }

.cookie-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.cookie-toggle-label {
    color: #111111;
    font-size: 13.5px;
    font-weight: 500;
}

.cookie-toggle-desc {
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
}

/* "Always On" badge */
.cookie-badge-required {
    font-size: 11px;
    font-weight: 600;
    color: #555555;
    background: #e0e0e0;
    border: 1px solid #b8b8b8;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* ── Toggle Switch ───────────────────────────────────── */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

    .cookie-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.cookie-slider {
    position: absolute;
    inset: 0;
    background-color: #c0c0c0;
    border-radius: 34px;
    transition: background-color 0.25s ease;
}

    .cookie-slider::before {
        content: '';
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: #ffffff;
        border-radius: 50%;
        transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), background-color 0.25s ease;
    }

.cookie-switch input:checked + .cookie-slider {
    background-color: #2563eb;
}

    .cookie-switch input:checked + .cookie-slider::before {
        transform: translateX(18px);
        background-color: #f5f5f5;
    }

.cookie-switch input:focus-visible + .cookie-slider {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ── Modal Actions ───────────────────────────────────── */
.cookie-modal-actions {
    display: flex;
    gap: 10px;
}

    .cookie-modal-actions .btn-cookie {
        flex: 1;
    }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(120px);
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        animation-name: cookieSlideInMobile;
    }

    @keyframes cookieSlideInMobile {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .cookie-consent-banner.cookie-hiding {
        animation-name: cookieSlideOutMobile;
    }

    @keyframes cookieSlideOutMobile {
        to {
            opacity: 0;
            transform: translateY(120px);
        }
    }

    .cookie-consent-row {
        flex-direction: column;
    }
}



/* ── Banner ─────────────────────────────────────────── */
/*.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
    z-index: 9999;
    width: 100%;
    max-width: 440px;
    background-color: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', system-ui, sans-serif;
    animation: cookieSlidIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
    box-sizing: border-box;
}

@keyframes cookieSlidIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-consent-banner.cookie-hiding {
    animation: cookieSlideOut 0.3s ease-in forwards;
}

@keyframes cookieSlideOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(120px);
    }
}*/

/* ── Typography ──────────────────────────────────────── */
/*.cookie-consent-title {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.cookie-consent-text {
    color: #555555;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.cookie-policy-link {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .cookie-policy-link:hover {
        color: #444444;
    }*/

/* ── Actions ─────────────────────────────────────────── */
/*.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent-row {
    display: flex;
    gap: 10px;
}

    .cookie-consent-row .btn-cookie {
        flex: 1;
    }*/

/* ── Buttons ─────────────────────────────────────────── */
/*.btn-cookie {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
    border: 1.5px solid transparent;
    text-align: center;
    letter-spacing: 0.01em;
    font-family: inherit;
}

    .btn-cookie:active {
        transform: scale(0.98);
    }*/

/* Customize (outline light) */
/*.btn-cookie-customize {
    background-color: transparent;
    color: #333333;
    border-color: #b8b8b8;
}

    .btn-cookie-customize:hover {
        background-color: #ebebeb;
        border-color: #999999;
    }*/

/* Reject (outline light) */
/*.btn-cookie-reject {
    background-color: transparent;
    color: #333333;
    border-color: #b8b8b8;
}

    .btn-cookie-reject:hover {
        background-color: #ebebeb;
        border-color: #999999;
    }*/

/* Accept (solid dark) */
/*.btn-cookie-accept {
    background-color: #2c2c2c;
    color: #f5f5f5;
    border-color: #2c2c2c;
}

    .btn-cookie-accept:hover {
        background-color: #1a1a1a;
        border-color: #1a1a1a;
    }*/

/* ── Modal Overlay ───────────────────────────────────── */
/*.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: modalFadeIn 0.2s ease forwards;
}

    .cookie-modal-overlay[hidden] {
        display: none !important;
    }

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-modal-box {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
    box-sizing: border-box;
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.94);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-modal-title {
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cookie-modal-desc {
    color: #666666;
    font-size: 13px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}*/

/* ── Toggle Items ────────────────────────────────────── */
/*.cookie-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #dedede;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cookie-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
    gap: 12px;
}

    .cookie-toggle-item:last-child {
        border-bottom: none;
    }

.cookie-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.cookie-toggle-label {
    color: #1a1a1a;
    font-size: 13.5px;
    font-weight: 500;
}

.cookie-toggle-desc {
    color: #888888;
    font-size: 12px;
    line-height: 1.4;
}*/

/* "Always On" badge */
/*.cookie-badge-required {
    font-size: 11px;
    font-weight: 600;
    color: #777777;
    background: #e8e8e8;
    border: 1px solid #cccccc;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}*/

/* ── Toggle Switch ───────────────────────────────────── */
/*.cookie-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

    .cookie-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.cookie-slider {
    position: absolute;
    inset: 0;
    background-color: #c8c8c8;
    border-radius: 34px;
    transition: background-color 0.25s ease;
}

    .cookie-slider::before {
        content: '';
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: #ffffff;
        border-radius: 50%;
        transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), background-color 0.25s ease;
    }

.cookie-switch input:checked + .cookie-slider {
    background-color: #2c2c2c;
}

    .cookie-switch input:checked + .cookie-slider::before {
        transform: translateX(18px);
        background-color: #f5f5f5;
    }

.cookie-switch input:focus-visible + .cookie-slider {
    outline: 2px solid #333333;
    outline-offset: 2px;
}*/

/* ── Modal Actions ───────────────────────────────────── */
/*.cookie-modal-actions {
    display: flex;
    gap: 10px;
}

    .cookie-modal-actions .btn-cookie {
        flex: 1;
    }*/

/* ── Responsive ──────────────────────────────────────── */
/*@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(120px);
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        animation-name: cookieSlideInMobile;
    }

    @keyframes cookieSlideInMobile {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .cookie-consent-banner.cookie-hiding {
        animation-name: cookieSlideOutMobile;
    }

    @keyframes cookieSlideOutMobile {
        to {
            opacity: 0;
            transform: translateY(120px);
        }
    }

    .cookie-consent-row {
        flex-direction: column;
    }
}*/


