/* Cookies */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(11, 16, 32, 0.96);
    border: 1px solid var(--border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-modal-box {
    width: min(460px, 92%);
    padding: 26px;
    border-radius: 24px;
    background: var(--navy);
    border: 1px solid var(--border);
}

/* COOKIE BUTTONS */
.cookie-actions button {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--soft);
    transition: all 0.25s ease;
}

/* Hover */
.cookie-actions button:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* PRIMARY (Accept / Save) */
#cookie-accept,
#cookie-save {
    background: linear-gradient(135deg, #355CFF, #8B5CF6);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(53, 92, 255, 0.35);
}

#cookie-accept:hover,
#cookie-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(53, 92, 255, 0.45);
}

/* SECONDARY (Settings) */
#cookie-settings {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* REJECT (subtle danger style) */
#cookie-reject {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--soft);
}

#cookie-reject:hover {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.4);
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

/* Hide default checkbox */
.cookie-option input {
    display: none;
}

/* Custom box */
.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Check icon */
.checkmark::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: linear-gradient(135deg, #355CFF, #8B5CF6);
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

/* Checked state */
.cookie-option input:checked+.checkmark {
    border-color: #355CFF;
}

.cookie-option input:checked+.checkmark::after {
    opacity: 1;
    transform: scale(1);
}

/* Disabled (essential cookies) */
.cookie-option input:disabled+.checkmark {
    opacity: 0.6;
}

/* Text styling */
.cookie-option strong {
    display: block;
    font-size: 14px;
    color: white;
}

.cookie-option span {
    display: block;
    font-size: 13px;
    color: var(--soft);
    margin-top: 2px;
}

@media (max-width: 600px) {

    .cookie-modal-box {
        width: 92%;
        max-width: none;

        padding: 18px;
        border-radius: 18px;

        max-height: 80vh;
        overflow-y: auto;
    }

    .cookie-modal-box h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .cookie-option {
        gap: 10px;
        padding: 10px 0;
    }

    .cookie-option strong {
        font-size: 13px;
    }

    .cookie-option span {
        font-size: 12px;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .cookie-actions button {
        width: 100%;
        padding: 12px;
    }

    .cookie-modal {
        align-items: end;
    }

    .cookie-modal-box {
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-actions {
        display: flex;
        flex-direction: row;
        /* 👈 force row */
        width: 100%;
        gap: 8px;
    }

    .cookie-actions button {
        flex: 1;
        /* 👈 equal width */
        padding: 10px 8px;
        font-size: 12px;
    }
}