/**
 * Cookie Consent Banner & Modal Styles
 */

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

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cookie-close:hover {
    color: #333;
}

.cookie-consent p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cookie-accept {
    background-color: #325f7c;
    color: white;
}

.btn-cookie-accept:hover {
    background-color: #264a61;
}

.btn-cookie-reject {
    background-color: #6c757d;
    color: white;
}

.btn-cookie-reject:hover {
    background-color: #5a6268;
}

.btn-cookie-customize {
    background-color: transparent;
    color: #325f7c;
    border: 1px solid #325f7c;
}

.btn-cookie-customize:hover {
    background-color: #325f7c;
    color: white;
}

.btn-cookie-save {
    background-color: #325f7c;
    color: white;
    width: 100%;
}

.btn-cookie-save:hover {
    background-color: #264a61;
}

/* Cookie Customization Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.cookie-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

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

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

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.cookie-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

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

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
}

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

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    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: 24px;
}

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #325f7c;
}

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

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 15px;
    }

    .cookie-consent-header h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
        text-align: center;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-modal-content {
        max-height: 95vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 15px;
    }

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

@media (max-width: 480px) {
    .cookie-consent-header h3 {
        font-size: 1rem;
    }

    .cookie-consent p {
        font-size: 0.9rem;
    }

    .btn-cookie {
        font-size: 13px;
        padding: 8px 16px;
    }

    .cookie-modal-header h3 {
        font-size: 1.25rem;
    }
}

/* Animation for showing */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
