/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
}

.cookie-banner button {
    padding: 0.75rem 1rem;
    margin: 0.5rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-deny {
  background: #2A7DE1;
  color: white;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.btn-deny:hover {
  background: white;
  color: #2A7DE1;
  border: 2px solid #2A7DE1;
}

.btn-allow {
  background: #011E41;
  color: white;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.btn-allow:hover {
  background: white;
  color: #011E41;
  border: 2px solid #011E41;
}

.btn-selection {
  background: #0033A1;
  color: white;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.btn-selection:hover {
  background: white;
  color: #0033A1;
  border: 2px solid #0033A1;
}

.c1s-logo {
    margin-bottom: 8px;
    width: clamp(80px, 20%, 100px);
}

/* Settings Icon */
.cookie-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cookie-icon i {
    font-size: 32px;
    color: #2A7DE1;
}

.cookie-icon:hover {
    transform: scale(1.2);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Modal Content */
.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.modal-buttons button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

/* Close Button */
.close {
    float: right;
    font-size: 2rem;
    cursor: pointer;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.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: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2A7DE1;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

input:disabled + .slider {
    background-color: #011E41  !important;
    cursor: not-allowed;
}

/* Cookie Container */
.cookie-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.cookie-category:last-child {
    border-bottom: none;
}

.category-title {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-description {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* Links */
.cookie-link {
    text-decoration: none;
    color: #2A7DE1;
    font-weight: bold;
}

.cookie-link:hover {
    text-decoration: underline;
}

.button-group {
    text-align: center;
    margin-top: 15px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .cookie-banner {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .cookie-banner button {
        width: 100%;
        margin: 0.25rem 0;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-container {
        padding: 15px;
    }

    .category-title {
        flex-direction: column;
        align-items: flex-start;
    }
}
