.cookie-banner{
position:fixed;
bottom:-250px;
left:0;
width:100%;
background:#0f172a;
color:#f1f5f9;
padding:22px;
transition:bottom .45s ease;
z-index:9999;
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
box-shadow:0 -10px 30px rgba(0,0,0,.6);
}

.cookie-banner.show{
bottom:0;
}

.cookie-inner{
max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
gap:30px;
flex-wrap:wrap;
}

.cookie-text h3{
margin:0;
color:white;
}

.cookie-text p{
margin:6px 0 0;
font-size:14px;
opacity:.9;
color:#cbd5f5;
}

/* Buttons */

.cookie-btn{
padding:10px 18px;
border-radius:8px;
font-weight:600;
border:none;
cursor:pointer;
transition:all .25s ease;
}

.cookie-btn.primary{
background:#149242;
color:white;
}

.cookie-btn.primary:hover{
transform:translateY(-2px);
box-shadow:0 6px 14px rgba(34,197,94,.4);
}

.cookie-btn.secondary{
background:#f34f3a;
color:white;
}

.cookie-btn.secondary:hover{
transform:translateY(-2px);
}

.cookie-btn.outline{
background: white;
border:1px solid #cbd5f5;
color:#494a4d;
}

.cookie-btn.outline:hover{
background:#cbd5f5;
color:#0f172a;
}

/* Modal */

.cookie-modal{
position:fixed;
inset:0;
display:flex;
justify-content:center;
align-items:center;
backdrop-filter:blur(10px);
background:rgba(0,0,0,.65);
z-index:10000;

opacity:0;
visibility:hidden;
transition:opacity .25s ease;
}

.cookie-modal.show{
opacity:1;
visibility:visible;
}

.cookie-panel{
background:#111827;
color:#f9fafb;
padding:35px;
border-radius:14px;
width:90%;
max-width:520px;
box-shadow:0 20px 60px rgba(0,0,0,.8);

transform:scale(0.98);
transition:transform .2s ease;
display:flex;
flex-direction:column;
gap:10px;
}

.cookie-modal.show .cookie-panel{
transform:scale(1);
}



.cookie-panel h2{
margin-top:0;
color:white;
}

/* Cookie rows */

.cookie-row{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:22px;
gap:20px;
}

.cookie-row strong{
color:white;
}

.cookie-row p{
margin:4px 0 0;
font-size:13px;
color:#9ca3af;
}

/* Toggle switches */

.cookie-switch{
position:relative;
display:inline-block;
width:48px;
height:26px;
flex-shrink:0;
}

.cookie-switch input{
opacity:0;
width:0;
height:0;
}

.cookie-slider{
position:absolute;
cursor:pointer;
top:0;
left:0;
right:0;
bottom:0;
background:#374151;
transition:.3s;
border-radius:30px;
}

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

input:checked + .cookie-slider{
background:#22c55e;
}

input:checked + .cookie-slider:before{
transform:translateX(22px);
}

/* Floating settings button */

.cookie-settings-btn{
position:fixed;
bottom:20px;
left:20px;
background:#111827;
color:#f9fafb;
border:1px solid #374151;
padding:10px 14px;
border-radius:8px;
cursor:pointer;
font-size:12px;
z-index:9998;
transition:.25s;
}

.cookie-settings-btn:hover{
background:#1f2937;
}

.panel-buttons{
display:flex;
gap:10px;
justify-content:flex-end;
flex-wrap:nowrap;
}

.cookie-banner .cookie-btn,
.cookie-panel .cookie-btn {
    
    font-size: 14px;
  line-height: 1;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;

  /* Lock width to content or set a max-width */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  transform: none;   

  /* Prevent padding/border changes from global styles */
  padding: 0 18px !important;
  border-width: 0 !important;
}

.cookie-banner .cookie-btn:focus,
.cookie-panel .cookie-btn:focus,
.cookie-banner .cookie-btn:active,
.cookie-panel .cookie-btn:active{
    outline: none;
  transform: none;
  box-shadow: none !important;
}


.cookie-actions .cookie-btn{
    height:40px;
    width: 150px;
}


#cookieSettingsLink {
  font-size: 12px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 6px;
  background-color: #f34f3a;
  color: #ffffff; /* light blue-gray for dark theme */
  text-decoration: underline;
  cursor: pointer;
}

#cookieSettingsLink:hover {
    background-color: #ffffff;
  color: #f34f3a;
}