/* Modern Cookie Preferences Styles */
#cookie-preferences {
    max-width: auto;
    margin: 2em auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2em;
    font-family: 'Segoe UI', Arial, sans-serif;
}
#cookie-preferences h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
}
#cookie-preferences p {
    color: #666;
    font-size: 1em;
}
.cookie-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}
.cookie-toggle strong {
    flex: 1;
    color: #222;
}
.toggle-switch {
    position: relative;
    width: 46px;
    height: 24px;
    display: inline-block;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s;
}
.toggle-slider:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: #4c5baf;
}
.toggle-switch input:disabled:checked + .toggle-slider {
    background: #4c5baf;
    opacity: 0.3;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}
#cookie-preferences button {
    background: #4c9baf;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6em 1.2em;
    margin-right: 0.5em;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
#cookie-preferences button:hover {
    background: #388eaf;
}
.cookie-message {
    margin-top: 1em;
    font-weight: bold;
    text-align: center;
    /* Initially hidden with no styling */
}

.cookie-message:not(:empty) {
    /* Only show styling when element has content */
    color: #388e3c;
    border: 1px solid #388e3c;
    background: rgba(56, 142, 60, 0.1);
    padding: 0.5em;
    border-radius: 8px;
    display: block;
}
