#cookie-banner,
#cookie-modal{
  position:fixed;
  inset:0;
  background:rgba(8,24,32,.28);
backdrop-filter:blur(10px);
  z-index:99999;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  animation:cookieFadeIn .25s ease;
}

.cookie-card{
  width:min(600px,92vw);
  background:#fff;
  border-radius:22px;
  margin:30px;
  padding:32px;
  box-shadow:0 28px 80px rgba(0,0,0,.25);
  animation:cookieSlideUp .32s ease;
  font-family:inherit;
}

.cookie-card-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.cookie-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#fff7ed;
  font-size:22px;
}

.cookie-card h3,
.cookie-modal-card h3{
  margin:0;
  font-size:28px;
  color:#082b2d;
  letter-spacing:-.02em;
}

.cookie-card p,
.cookie-modal-intro,
.cookie-choice p{
  color:#5c6b70;
  line-height:1.7;
  font-size:16px;
  margin:0;
}

.cookie-links{
  margin-top:16px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  font-size:14px;
}

.cookie-links a{
  color:#ea580c;
  font-weight:800;
}

.cookie-links span{
  color:#94a3b8;
}

.cookie-buttons{
  margin-top:28px;
  display:flex;
  gap:14px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.cookie-buttons button,
.cookie-modal-actions button{
  border:none;
  cursor:pointer;
  padding:14px 24px;
  border-radius:12px;
  font-size:15px;
  font-weight:900;
  transition:.22s;
}

#cookie-settings{
  background:#eef2f3;
  color:#203236;
}

#cookie-settings:hover{
  background:#dde5e7;
}

#cookie-refuse,
#cookie-save-refuse{
  background:#fff;
  color:#18282b;
  border:2px solid #d9dee2;
}

#cookie-refuse:hover,
#cookie-save-refuse:hover{
  background:#f8fafc;
}

#cookie-accept,
#cookie-save,
#cookie-save-accept{
  background:linear-gradient(135deg,#f97316,#ea580c);
  color:#fff;
  box-shadow:0 14px 35px rgba(249,115,22,.25);
}

#cookie-accept:hover,
#cookie-save:hover,
#cookie-save-accept:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(249,115,22,.32);
}

/* Modal */

#cookie-modal{
  align-items:center;
}

.cookie-modal-card{
  width:min(720px,92vw);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:24px;
  padding:34px;
  box-shadow:0 28px 90px rgba(0,0,0,.28);
  animation:cookiePop .28s ease;
  font-family:inherit;
}

.cookie-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:18px;
}

.cookie-modal-kicker{
  display:inline-block;
  margin-bottom:8px;
  color:#ea580c;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:1.5px;
  font-weight:950;
}

.cookie-close{
  width:42px;
  height:42px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background:#f1f5f9;
  color:#102020;
  font-size:28px;
  line-height:1;
}

.cookie-choice{
  margin-top:18px;
  padding:20px;
  border:1px solid #e6eeea;
  border-radius:16px;
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
}

.cookie-choice h4{
  margin:0 0 7px;
  color:#082b2d;
  font-size:17px;
}

.cookie-required{
  white-space:nowrap;
  color:#0a7c49;
  background:#e8fff0;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
}

.cookie-switch{
  position:relative;
  width:58px;
  height:32px;
  flex:0 0 auto;
}

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

.cookie-switch span{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:#cbd5e1;
  border-radius:999px;
  transition:.25s;
}

.cookie-switch span::before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:4px;
  top:4px;
  border-radius:50%;
  background:white;
  transition:.25s;
  box-shadow:0 3px 10px rgba(15,23,42,.2);
}

.cookie-switch input:checked + span{
  background:#f97316;
}

.cookie-switch input:checked + span::before{
  transform:translateX(26px);
}

.cookie-modal-actions{
  margin-top:28px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

@media(max-width:700px){
  .cookie-card,
  .cookie-modal-card{
    padding:24px;
    margin:18px;
  }

  .cookie-buttons,
  .cookie-modal-actions{
    flex-direction:column;
  }

  .cookie-buttons button,
  .cookie-modal-actions button{
    width:100%;
  }

  .cookie-choice{
    flex-direction:column;
    align-items:flex-start;
  }
}

@keyframes cookieFadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes cookieSlideUp{
  from{
    opacity:0;
    transform:translateY(36px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes cookiePop{
  from{
    opacity:0;
    transform:scale(.96);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}
