/* Cookie Consent Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.cookie-banner__trigger {
    background-color: #3DAA5C;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cookie-banner__trigger:hover {
    transform: scale(1.1);
    background-color: #35964F;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-modal__container {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.cookie-modal__header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    margin: 0;
    color: #1a1a1a;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.cookie-modal__body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.cookie-modal__body p {
    margin-bottom: 16px;
}

.cookie-option {
    border-top: 1px solid #eee;
    padding: 16px 0;
}

.cookie-option__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-option__title span {
    font-weight: bold;
    color: #3DAA5C;
}

.cookie-option__title h3 {
    font-size: 1rem;
    margin: 0;
    color: #1a1a1a;
}

.cookie-status {
    font-size: 0.85rem;
    font-weight: 600;
}

.cookie-status--active {
    color: #2e7d32;
}

.cookie-option__desc {
    font-size: 0.85rem;
    color: #666;
}

/* Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

input:checked + .slider {
    background-color: #3DAA5C;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Footer Buttons */
.cookie-modal__footer {
    padding: 24px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background-color: #f9f9f9;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-cookie--outline {
    background-color: white;
    border-color: #3DAA5C;
    color: #3DAA5C;
}

.btn-cookie--outline:hover {
    background-color: #3DAA5C;
    color: white;
}

.btn-cookie--primary {
    background-color: #3DAA5C;
    color: white;
}

.btn-cookie--primary:hover {
    background-color: #35964F;
}

.cookie-modal__powered {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #999;
}

.cookie-modal__powered strong {
    color: #666;
}

@media (max-width: 480px) {
    .cookie-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-cookie {
        width: 100%;
    }
}
