/* Cookie Consent Banner Styles */

/* Banner container - fixed at bottom */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
    display: none;
}

.cookie-consent-banner.show {
    display: block;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-text {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #00aeef;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #fff;
}

/* Policy update notice */
.cookie-consent-update-notice {
    background-color: #f39c12;
    color: #2c3e50;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 13px;
}

/* Button container */
.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cookie-consent-btn-accept {
    background-color: #00aeef;
    color: #fff;
}

.cookie-consent-btn-accept:hover {
    background-color: #0095cc;
}

.cookie-consent-btn-reject {
    background-color: #6d6e71;
    color: #fff;
}

.cookie-consent-btn-reject:hover {
    background-color: #555;
}

.cookie-consent-btn-customize {
    background-color: transparent;
    color: #00aeef;
    border: 1px solid #00aeef;
}

.cookie-consent-btn-customize:hover {
    background-color: #00aeef;
    color: #fff;
}

.cookie-consent-btn-save {
    background-color: #27ae60;
    color: #fff;
}

.cookie-consent-btn-save:hover {
    background-color: #219a52;
}

/* Preferences panel */
.cookie-consent-preferences {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #4a5568;
}

.cookie-consent-preferences.show {
    display: block;
}

.cookie-preference-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #4a5568;
}

.cookie-preference-item:last-child {
    border-bottom: none;
}

.cookie-preference-info {
    flex: 1;
    padding-right: 20px;
}

.cookie-preference-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cookie-preference-description {
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.4;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.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: #4a5568;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #00aeef;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #27ae60;
    cursor: not-allowed;
}

.cookie-toggle-required {
    font-size: 10px;
    color: #27ae60;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-preference-item {
        flex-direction: column;
    }

    .cookie-preference-info {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .cookie-toggle {
        align-self: flex-end;
    }
}

/* Footer link styling */
.cookie-settings-link {
    color: #00aeef;
    cursor: pointer;
    text-decoration: underline;
}

.cookie-settings-link:hover {
    color: #fff;
}
