/* ============================================
   COOKIE CONSENT BANNER
============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: var(--space-xl);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cookie-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--orange-velok);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--orange-dark);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-btn-accept {
    background: var(--orange-velok);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: var(--gray-200);
    color: var(--gray-700);
}

.cookie-btn-reject:hover {
    background: var(--gray-300);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.cookie-btn-settings:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* ============================================
   COOKIE SETTINGS MODAL
============================================ */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-lg);
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.cookie-modal-close:hover {
    background: var(--gray-100);
}

.cookie-category {
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.cookie-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 13px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input {
    display: none;
}

.cookie-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-toggle input:checked ~ .cookie-toggle {
    background: var(--orange-velok);
}

.cookie-toggle.active {
    background: var(--orange-velok);
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-category-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.cookie-modal-footer {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
    min-width: 120px;
}

/* ============================================
   COOKIE HOVER TRIGGER
============================================ */
.cookie-trigger-zone {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 9990;
    pointer-events: auto;
}

.cookie-reopen-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9991;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.cookie-reopen-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-reopen-btn:hover {
    background: var(--gray-50);
}

.cookie-reopen-btn svg {
    width: 24px;
    height: 24px;
    color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 767px) {
    .cookie-banner {
        padding: var(--space-lg);
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        padding: var(--space-lg);
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
