.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900;
  background: #fff; color: #1e1633; border: 1px solid #e4dcf3; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(30, 22, 51, .25); max-width: 760px; margin: 0 auto;
}
.cookie-banner-inner { padding: 16px 18px; font-size: .93rem; line-height: 1.55; }
.cookie-banner-title { font: 800 1.1rem "Baloo 2", "Nunito", sans-serif; margin: 0 0 4px; }
.cookie-banner p { margin: 0 0 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cbtn {
  flex: 1 1 140px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 800 .95rem "Nunito", sans-serif; border: 2px solid #6d3ae0;
}
.cbtn--primary { background: #6d3ae0; color: #fff; }
.cbtn--primary:hover { background: #5226b8; border-color: #5226b8; }
.cbtn--ghost { background: #fff; color: #5226b8; }
.cbtn--ghost:hover { background: #ece4ff; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 950; background: rgba(20, 14, 36, .55);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-box {
  background: #fff; color: #1e1633; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 18px 18px 22px; box-shadow: 0 -10px 40px rgba(0,0,0,.2);
}
.cookie-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.cookie-modal-title { font: 800 1.35rem "Baloo 2", "Nunito", sans-serif; margin: 0; }
.cookie-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1ecfb; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #1e1633; }
.cookie-cat { border: 1px solid #e4dcf3; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.cookie-cat p { margin: 6px 0 0; font-size: .9rem; color: #463d5c; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cookie-cat-name { font-weight: 800; }
.cookie-always { font-size: .8rem; font-weight: 800; color: #1f9d5b; }
.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cfc8de; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: #6d3ae0; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid #ffc533; outline-offset: 2px; }
body.cookie-lock { overflow: hidden; }

@media (min-width: 600px) {
  .cookie-banner { left: 24px; right: 24px; bottom: 24px; }
  .cookie-banner-inner { padding: 20px 24px; }
  .cookie-modal { align-items: center; padding: 20px; }
  .cookie-modal-box { border-radius: 20px; padding: 24px; }
  .cbtn { flex: 0 1 auto; }
}
@media (max-width: 359.98px) {
  .cookie-banner { left: 6px; right: 6px; bottom: 6px; }
  .cookie-banner-inner { padding: 12px; font-size: .88rem; }
}
