/**
 * Cookie Consent Styles
 * GDPR/CCPA compliant cookie consent banner and modal styles
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

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

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #fff;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #ecf0f1;
}

.cookie-consent-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #5dade2;
}

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

.cookie-btn {
    border-radius: 30px;
    height: 48px;
    text-align: center;
    border: none;
    max-width: max-content;
    padding: 0 25px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'verdana-regular';
    font-weight: normal;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.5s ease-out;
    white-space: nowrap;
    min-width: 100px;
}

.cookie-btn-accept {
    color: #fff;
    background: #488A99; /* var(--theme-color-2) */
}

.cookie-btn-accept:hover {
    background: #29a3bf;
    color: #fff;
    transition: all 0.5s ease-out;
}

.cookie-btn-necessary {
    color: #fff;
    background: #DBAE58; /* var(--theme-color-3) */
}

.cookie-btn-necessary:hover {
    background: #c49a45;
    color: #fff;
    transition: all 0.5s ease-out;
}

.cookie-btn-settings {
    border: 1px solid #488A99; /* var(--theme-color-2) */
    color: #488A99;
    background: transparent;
    transition: ease-in 0.3s;
}

.cookie-btn-settings:hover {
    background-color: #488A99;
    color: #ffffff;
    transition: ease-in 0.3s;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    color: #2c3e50;
}

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

.cookie-category {
    margin-bottom: 25px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.cookie-category p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: .4s;
    border-radius: 24px;
}

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

input:checked + .cookie-slider {
    background-color: #27ae60;
}

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

input:disabled + .cookie-slider {
    background-color: #27ae60;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Cookie Controls in Policy Pages */
.cookie-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.cookie-controls h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-btn {
        height: 40px;
        padding: 0 20px;
        font-size: 13px;
        margin: 2px;
        min-width: 80px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-text h4 {
        font-size: 16px;
    }
    
    .cookie-consent-text p {
        font-size: 13px;
    }
    
    .cookie-btn {
        height: 36px;
        padding: 0 15px;
        font-size: 12px;
        min-width: 70px;
    }
}
