#cookie-banner {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background-color: #f4f7f9; /* Light gray background (Your style) */
color: #333; /* Dark text (Your style) */
padding: 20px 0;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 9999;
font-family: Arial, sans-serif;
line-height: 1.5;
}

.cookie-content {
max-width: 1300px; /* Your style */
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

.cookie-content p {
margin: 0;
flex: 1;
padding-right: 20px;
font-size: 14px;
}

/* NEW: Define cookie-buttons container for Flexbox control */
.cookie-buttons {
display: flex;
flex-direction: row; /* Default: Horizontal layout (side-by-side) */
gap: 10px; /* Spacing between horizontal buttons */
/* Adjust margin to align with button spacing */
margin-right: -10px; 
}

.cookie-buttons button {
padding: 7px 5px 9px 5px; /* Your style */
/* Remove individual button margins now controlled by 'gap' on the container */
margin-left: 0; 
cursor: pointer;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.2s;
width: auto; /* Default width */
}

#accept-cookies {
background-color: #006ce0; /* Primary color for acceptance (Your style) */
color: white;
font-size: 1em; /* Your style */
border: 0px solid #007bff; /* Your style */
}

#accept-cookies:hover {
background-color: #002b66; /* Your style */
}

#reject-cookies {
background-color: transparent;
color: #007bff;
border: 1px solid #007bff; /* Your style */
font-size: 1em; /* Your style */
}

#reject-cookies:hover {
background-color: #e6f0ff; /* Your style */
}

.policy-link {
color: #007bff;
text-decoration: underline;
}

/* Media Query 1: Small Screens (max-width: 768px) */
@media (max-width: 800px) {
.cookie-content {
flex-direction: column;
align-items: flex-start;
}
.cookie-content p {
padding-right: 0;
margin-bottom: 15px;
}
.cookie-buttons {
width: 100%;
display: flex;
/* Keep flex-direction: row from the default style */
justify-content: space-between;
gap: 0; /* Use space-between for gap on small screens */
margin-right: 0;
}
.cookie-buttons button {
margin: 0;
width: 48%;
}
}

/* Media Query 2: Large Screens (min-width: 1200px) - STACKING IMPLEMENTATION */
@media (min-width: 800px) {
.cookie-content p {
/* Increase space next to the buttons on wide screens */
padding-right: 40px; 
}

.cookie-buttons {
flex-direction: column; /* Key change: Stack vertically */
align-items: stretch; /* Make buttons full width */
width: 200px; /* Define a fixed width for the button stack */
min-width: 200px;
gap: 10px; /* Maintain 10px spacing between stacked buttons */
margin-right: 0; /* Reset margin */
}

.cookie-buttons button {
width: 100%; /* Ensure full width when stacked */
/* You can remove the default padding-bottom to center the text better when stacked, 
but I'll keep your custom padding for consistency: 7px 20px 9px 20px */
}
}

/* --- MODAL STYLES (For login re-confirmation) --- */

.modal {
display: none; 
position: fixed; 
z-index: 10000; /* Must be higher than cookie banner (9999) */
left: 0;
top: 0;
width: 100%; 
height: 100%; 
overflow: auto; 
background-color: rgba(0,0,0,0.6); 
justify-content: center; /* Center modal content */
align-items: center; /* Center modal content */
}

.modal-content {
background-color: var(--color-light);
margin: auto; /* Center vertically and horizontally */
padding: 30px;
border: 1px solid var(--color-border);
width: 90%; 
max-width: 450px; 
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
color: var(--color-accent-blue);
text-align: left;
margin-bottom: 20px;
border-bottom: 2px solid var(--color-border);
padding-bottom: 10px;
}

.modal-content p {
font-size: 1em;
color: var(--color-text-dark);
}

.secondary-cta {
background-color: transparent !important;
color: var(--color-text-dark) !important;
border: 1px solid var(--color-border) !important;
}

.secondary-cta:hover {
background-color: var(--color-background) !important;
}
