#sf-cookie-banner,
#sf-cookie-settings-modal{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

#sf-cookie-banner{
  position:fixed;
  right:24px;
  bottom:24px;
  width:min(460px, calc(100vw - 32px));
  background:linear-gradient(180deg, rgba(11,20,32,.98), rgba(16,27,41,.98));
  color:#f3f5f7;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  z-index:99999;
  display:none;
  backdrop-filter:blur(12px);
}

.sf-cookie-title{
  margin:0 0 10px;
  font-size:1.15rem;
  font-weight:800;
}

.sf-cookie-text{
  margin:0;
  color:#c7d0db;
  font-size:.95rem;
  line-height:1.6;
}

.sf-cookie-cats{
  display:grid;
  gap:10px;
  margin:18px 0 0;
}

.sf-cookie-cat{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}

.sf-cookie-cat strong{
  display:block;
  margin-bottom:3px;
  color:#fff;
  font-size:.95rem;
}

.sf-cookie-cat small{
  color:#c7d0db;
  line-height:1.45;
}

.sf-cookie-switch{
  position:relative;
  width:48px;
  height:28px;
  flex:0 0 48px;
}

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

.sf-cookie-slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#2b3543;
  transition:.2s ease;
  cursor:pointer;
}

.sf-cookie-slider::before{
  content:"";
  position:absolute;
  left:4px;
  top:4px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  transition:.2s ease;
}

.sf-cookie-switch input:checked + .sf-cookie-slider{
  background:linear-gradient(135deg, #ff7a00, #ffb000);
}

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

.sf-cookie-switch input:disabled + .sf-cookie-slider{
  opacity:.75;
  cursor:not-allowed;
}

.sf-cookie-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.sf-cookie-btn{
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  font-weight:800;
  font-size:.95rem;
  transition:.18s ease;
}

.sf-cookie-btn:hover{
  transform:translateY(-1px);
}

.sf-cookie-btn--primary{
  background:linear-gradient(135deg, #ff7a00, #ffb000);
  color:#15110a;
  box-shadow:0 16px 30px rgba(255,122,0,.18);
}

.sf-cookie-btn--secondary{
  background:transparent;
  color:#f3f5f7;
  border:1px solid rgba(255,255,255,.14);
}

.sf-cookie-btn--ghost{
  background:rgba(255,255,255,.05);
  color:#f3f5f7;
  border:1px solid rgba(255,255,255,.08);
}

#sf-cookie-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
  z-index:99998;
  display:none;
}

#sf-cookie-settings-modal{
  position:fixed;
  inset:50% auto auto 50%;
  transform:translate(-50%, -50%);
  width:min(760px, calc(100vw - 24px));
  max-height:calc(100vh - 32px);
  overflow:auto;
  padding:24px;
  background:linear-gradient(180deg, rgba(11,20,32,.99), rgba(16,27,41,.99));
  color:#f3f5f7;
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  box-shadow:0 24px 80px rgba(0,0,0,.48);
  z-index:100000;
  display:none;
}

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

.sf-cookie-close{
  appearance:none;
  border:none;
  background:transparent;
  color:#f3f5f7;
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
}

.sf-cookie-settings-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#c7d0db;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.18);
  transition:.18s ease;
}

.sf-cookie-settings-link:hover{
  color:#ffb000;
  border-color:#ffb000;
}

.site-footer .sf-cookie-settings-wrap{
  margin-top:14px;
}

@media (max-width: 640px){
  #sf-cookie-banner{
    right:12px;
    bottom:12px;
    width:calc(100vw - 24px);
    padding:18px;
  }
  #sf-cookie-settings-modal{
    width:calc(100vw - 16px);
    padding:18px;
  }
  .sf-cookie-actions{
    flex-direction:column;
  }
  .sf-cookie-btn{
    width:100%;
  }
}

.sf-cookie-settings-wrap--fixed{
  position:fixed;
  right:18px;
  bottom:10px;
  z-index:99990;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:.85rem;
}

.sf-cookie-settings-wrap--fixed .sf-cookie-settings-link{
  background:rgba(11,20,32,.88);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:8px 12px;
}
