/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 25px 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    transition: bottom 0.5s ease-in-out;
    border-top: 3px solid #d70006;
}

.cookie-consent-banner.show {
    bottom: 0;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.cookie-logo {
    flex-shrink: 0;
    padding: 5px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-logo img {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

.cookie-text a {
    color: #d70006;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: #ff4444;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #d70006 0%, #ca1f26 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(215, 0, 6, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #ff0000 0%, #d70006 100%);
    box-shadow: 0 6px 20px rgba(215, 0, 6, 0.5);
    transform: translateY(-2px);
}

.cookie-btn-customize {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-customize:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject {
    background: transparent;
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.cookie-modal-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-logo {
    height: 40px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #232331;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #f0f0f0;
    color: #d70006;
}

.cookie-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-modal-intro {
    margin: 0 0 25px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #232331;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-info h4 i {
    color: #d70006;
    font-size: 18px;
}

.cookie-category-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background: linear-gradient(135deg, #d70006 0%, #ca1f26 100%);
}

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

input:disabled + .cookie-slider {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    cursor: not-allowed;
}

.cookie-policy-link {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 14px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-policy-link i {
    color: #ffc107;
    font-size: 18px;
}

.cookie-policy-link a {
    color: #d70006;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-policy-link a:hover {
    color: #ff4444;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    text-align: center;
}

.cookie-modal-footer .cookie-btn {
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-logo {
        padding: 4px;
    }

    .cookie-logo img {
        height: 40px;
        max-width: 100px;
    }

    .cookie-text h4 {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .cookie-modal-content {
        margin: 10px;
    }

    .cookie-modal-header {
        padding: 20px;
    }

    .cookie-modal-title {
        gap: 10px;
    }

    .modal-logo {
        height: 32px;
        max-width: 80px;
    }

    .cookie-modal-header h3 {
        font-size: 16px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .cookie-category {
        padding: 15px;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-switch {
        align-self: flex-start;
    }
}

/* Scrollbar for modal */
.cookie-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cookie-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
    background: #d70006;
    border-radius: 10px;
}

.cookie-modal-body::-webkit-scrollbar-thumb:hover {
    background: #ca1f26;
}

