/* Cookies styles for Bio-Sports */

/* Styles for the cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 1em;
}

.cookie-banner p {
    margin: 0;
    color: #6aa84f;
}

.cookie-banner a {
    color: #6aa84f;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.cookie-banner a:hover {
    color: #8dc184;
}

.cookie-banner button {
    background-color: #6aa84f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.cookie-banner button:hover {
    background-color: #38761d;
}

/* Modal window for cookie settings */
#cookieSettingsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#cookieSettingsModal.show {
    display: flex;
}

#cookieSettingsModal .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.cookie-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
}

/* Cookie option styles */
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 20px;
}

.cookie-option h3 {
    font-size: 1.2em;
    margin: 0;
    width: 25%;
    min-width: 180px;
}

.cookie-option p {
    font-size: 0.9em;
    color: #555;
    width: 65%;
}

/* Style for toggle switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-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: 24px;
    box-sizing: border-box;
}

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

input:checked + .slider {
    background-color: #6aa84f;
}

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

/* Confirmation button */
#confirmBtn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    float: right;
}

#confirmBtn:hover {
    background-color: #333;
}
