﻿/* Cookie Consent Banner - Bottom positioned initially */
/* Disable all transitions for cookie consent */
#cookieConsentModal,
#cookieConsentModal *,
.cookie-consent-btn,
.cookie-toggle-slider,
.cookie-toggle-slider:before,
.cookie-consent-toast {
    transition: none !important;
}

    #cookieConsentModal .cookie-toggle,
    #cookieConsentModal .cookie-toggle label {
        padding: 0 !important;
        margin: 0 !important;
    }

#cookieConsentModal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #2c3e50;
    color: #fff;
    padding: 15px 0;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

    #cookieConsentModal.modal-mode {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.75);
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

.cookie-consent-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

#cookieConsentModal.modal-mode .cookie-consent-container {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    margin: 0 auto;
}

/* Main Panel - Banner Style */
.cookie-consent-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

#cookieConsentModal.modal-mode .cookie-consent-main {
    display: block;
    padding: 40px;
}

.cookie-consent-header {
    flex: 1;
    min-width: 300px;
}

#cookieConsentModal.modal-mode .cookie-consent-header {
    margin-bottom: 20px;
}

.cookie-consent-header h2 {
    margin: 0 0 5px 0;
    font-size: 14.5px;
    color: #2c3e50;
    font-weight: 700;
}

#cookieConsentModal:not(.modal-mode) .cookie-consent-header h2 {
    color: #fff;
}

.cookie-consent-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

#cookieConsentModal:not(.modal-mode) .cookie-consent-header p {
    color: #fff;
}

#cookieConsentModal.modal-mode .cookie-consent-header p {
    color: #555;
}

.cookie-consent-header a {
    color: #3498db;
    text-decoration: underline;
}

#cookieConsentModal:not(.modal-mode) .cookie-consent-header a {
    color: #5dade2;
}

/* Button Container */
.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

#cookieConsentModal.modal-mode .cookie-consent-buttons {
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Button Styles */
.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

#cookieConsentModal.modal-mode .cookie-consent-btn {
    padding: 14px 28px;
    font-size: 15px;
}

.cookie-consent-btn-primary {
    background: #b8a629;
    color: #fff;
}

    .cookie-consent-btn-primary:hover {
        background: #4a5568;
    }

.cookie-consent-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

#cookieConsentModal.modal-mode .cookie-consent-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.cookie-consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

#cookieConsentModal.modal-mode .cookie-consent-btn-secondary:hover {
    background: #e0e0e0;
}

.cookie-consent-btn-link {
    background: transparent;
    color: #fff;
    text-decoration: underline;
    padding: 12px 20px;
}

#cookieConsentModal.modal-mode .cookie-consent-btn-link {
    color: #666;
    padding: 14px 20px;
}

.cookie-consent-btn-link:hover {
    color: #ecf0f1;
    text-decoration: none;
}

#cookieConsentModal.modal-mode .cookie-consent-btn-link:hover {
    color: #333;
}

/* Settings Panel */
.cookie-consent-settings {
    display: none;
    padding: 40px;
}

.cookie-consent-back {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .cookie-consent-back:hover {
        color: #333;
    }

.cookie-type {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

    .cookie-type:last-child {
        border-bottom: none;
    }

.cookie-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-type h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-type p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* Toggle Switch */
label.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

    label.cookie-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

    .cookie-toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #b8a629;
}

    .cookie-toggle input:checked + .cookie-toggle-slider:before {
        transform: translateX(24px);
    }

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Always On Badge */
.cookie-always-on {
    display: inline-block;
    background: #e0e0e0;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Toast Notification */
.cookie-consent-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c3e50;
    color: #fff;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000000;
}

    .cookie-consent-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

#cookie-settings-link {
    text-align: right;
    padding: 10px 0;
    font-size: 14px;
}

    #cookie-settings-link a {
        color: inherit;
        text-decoration: underline;
        cursor: pointer;
    }

/* Mobile Responsive */
@media (max-width: 992px) {
    .cookie-consent-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-consent-header {
        min-width: auto;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    #cookieConsentModal {
        padding: 15px 0;
    }

        #cookieConsentModal.modal-mode {
            padding: 0px;
        }

        #cookieConsentModal.modal-mode .cookie-consent-container {
            width: 95%;
            max-height: 95vh;
        }

    #cookie-settings-link {
        text-align: center;
        padding: 15px 0;
    }

    .cookie-consent-main,
    .cookie-consent-settings {
        padding: 20px;
    }

    #cookieConsentModal.modal-mode .cookie-consent-main {
        padding: 24px;
    }

    .cookie-consent-header h2 {
        font-size: 20px;
    }

    .cookie-consent-header p {
        font-size: 13px;
    }

    .cookie-consent-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .cookie-consent-toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        border-radius: 6px;
    }
}
