/* Cookie Consent Banner Styles */
:root {
    --cookie-primary: #0d4641;
    --cookie-secondary: #127c7c;
    --cookie-text: #333333;
    --cookie-bg: #ffffff;
    --cookie-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 400px;
    background: var(--cookie-bg);
    color: var(--cookie-text);
    padding: 24px;
    box-shadow: var(--cookie-shadow);
    z-index: 9999;
    border-radius: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUpFade 0.5s ease-out 0.5s forwards;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--cookie-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
}

.cookie-consent-text a {
    color: var(--cookie-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cookie-consent-text a:hover {
    border-color: var(--cookie-secondary);
}

.cookie-consent-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    grid-column: 1 / -1;
    background: var(--cookie-secondary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--cookie-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 124, 124, 0.2);
}

.cookie-btn-settings,
.cookie-btn-decline {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn-settings:hover,
.cookie-btn-decline:hover {
    border-color: var(--cookie-secondary);
    color: var(--cookie-secondary);
    background: #f8f9fa;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 70, 65, 0.6);
    /* Primary color with opacity */
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal.active {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-settings-modal.active .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-content h2 {
    margin: 0 0 20px 0;
    color: var(--cookie-primary);
    font-size: 1.6em;
    font-weight: 700;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h3 {
    margin: 0;
    font-size: 1.05em;
    color: var(--cookie-primary);
    font-weight: 600;
}

.cookie-category p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.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: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background-color: var(--cookie-secondary);
}

.cookie-toggle input:checked+.cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #d0d0d0;
}

.cookie-settings-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cookie-settings-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-settings-save {
    background: var(--cookie-secondary);
    color: white;
}

.cookie-settings-save:hover {
    background: var(--cookie-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 124, 124, 0.2);
}

.cookie-settings-close {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
}

.cookie-settings-close:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #ccc;
}

/* Responsive Design */
@media (max-width: 480px) {
    .cookie-consent-banner {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 20px 20px 30px 20px;
        /* Extra bottom padding for safe area */
    }

    .cookie-btn-settings,
    .cookie-btn-decline {
        padding: 10px 5px;
        font-size: 0.8em;
    }
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-settings-link:hover {
    opacity: 0.7;
}