/* cookie-consent.css */

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: #f8f9fa;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-consent-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.8px;
    color: #676767;
	text-align: center;

}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
	justify-content: center;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    min-height: 44px;
    min-width: 120px;
    transition: background-color 0.2s, color 0.2s;
}

.accept-all {
    background-color: #008280;
    color: white;
}

.necessary-only {
    background-color: white;
    color: #008280;
    border: 2px solid #008280;
}

.necessary-only:hover {
    background-color: #008280;
    color: white;
}

.confirm-choices {
    background-color: #008280;
    color: white;
}

.settings-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
}

/* Settings Modal Styles */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.8px;
    color: #676767;
}

.cookie-settings-header {
    margin-bottom: 20px;
}

.cookie-settings-header h2 {
    font-size: 24px;
    margin: 0;
}

.cookie-setting-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-setting-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 18px;
}

.cookie-setting-description {
    font-size: 16px; /* 0.9em of 18px ≈ 16px */
    color: #666;
    margin-bottom: 10px;
}

.cookie-settings-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* Mobile View (max-width: 767px) */
@media screen and (max-width: 767px) {
    .cookie-consent-banner {
        padding: 15px;
        max-height: 60vh;
    }

    .cookie-consent-content {
        font-size: 15px;
        gap: 10px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        padding: 10px 12px;
        font-size: 15px;
        min-height: 48px;
        width: 100%;
    }

    .settings-btn {
        font-size: 15px;
    }

    .cookie-settings-modal {
        width: 100%;
        height: 100%;
        max-height: none;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 15px;
        font-size: 15px;
    }

    .cookie-settings-header {
        margin-bottom: 15px;
    }

    .cookie-settings-header h2 {
        font-size: 20px;
    }

    .cookie-setting-item {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .cookie-setting-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .cookie-setting-description {
        font-size: 13px; /* 0.9em of 15px ≈ 13px */
        margin-bottom: 8px;
    }

    .cookie-settings-footer {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }
}

/* Tablet Devices (768px to 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .cookie-consent-banner {
        padding: 18px;
    }

    .cookie-consent-content {
        font-size: 18px;
        gap: 12px;
    }

    .cookie-consent-buttons {
        gap: 8px;
    }

    .cookie-btn {
        padding: 8px 14px;
        font-size: 18px;
        min-height: 44px;
    }

    .settings-btn {
        font-size: 18px;
    }

    .cookie-settings-modal {
        width: 95%;
        max-width: 600px;
        padding: 18px;
        font-size: 18px;
    }

    .cookie-settings-header {
        margin-bottom: 18px;
    }

    .cookie-settings-header h2 {
        font-size: 22px;
    }

    .cookie-setting-item {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .cookie-setting-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .cookie-setting-description {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cookie-settings-footer {
        gap: 8px;
        margin-top: 18px;
    }
}