.zytek-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  background: color-mix(in srgb, var(--theme-bg, #0c1324) 96%, transparent);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.12);
  padding: 18px 24px;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.zytek-cookie-banner.is-visible {
  transform: translateY(0);
}

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

.zytek-cookie-text {
  flex: 1;
  min-width: 240px;
  color: rgba(var(--theme-secondary-rgb, 220, 225, 251), 0.88);
  font-size: 14px;
  line-height: 1.55;
}

.zytek-cookie-text a {
  color: var(--theme-primary, #00daf3);
  text-decoration: underline;
}

.zytek-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.zytek-cookie-btn {
  padding: 10px 18px;
  border-radius: var(--theme-radius, 10px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

.zytek-cookie-btn-primary {
  background: linear-gradient(
    135deg,
    var(--theme-primary, #00daf3),
    color-mix(in srgb, var(--theme-primary, #00daf3) 72%, #000)
  );
  color: #fff;
}

.zytek-cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--theme-primary-rgb, 0, 218, 243), 0.35);
}

.zytek-cookie-btn-ghost {
  background: rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.08);
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.85);
  border: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.15);
}

.zytek-cookie-btn-ghost:hover {
  background: rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.14);
  color: var(--theme-secondary, #dce1fb);
}

.zytek-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.zytek-cookie-modal.is-open {
  display: flex;
}

.zytek-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.zytek-cookie-modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: color-mix(in srgb, var(--theme-bg, #0c1324) 98%, transparent);
  border: 1px solid rgba(var(--theme-primary-rgb, 0, 218, 243), 0.22);
  border-radius: var(--theme-radius, 18px);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.zytek-cookie-modal-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--theme-secondary, #c3f5ff);
  font-family: 'Space Grotesk', var(--theme-font, Inter), sans-serif;
}

.zytek-cookie-modal-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.75);
  line-height: 1.5;
}

.zytek-cookie-category {
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.08);
}

.zytek-cookie-category:last-of-type {
  border-bottom: none;
}

.zytek-cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.zytek-cookie-cat-head strong {
  font-size: 14px;
  color: var(--theme-secondary, #dce1fb);
}

.zytek-cookie-cat-head span.badge-required {
  font-size: 11px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.zytek-cookie-category p {
  margin: 0;
  font-size: 12px;
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.7);
  line-height: 1.5;
}

.zytek-cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.zytek-cookie-toggle span {
  position: absolute;
  inset: 0;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.zytek-cookie-toggle span::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.zytek-cookie-toggle input:checked + span {
  background: rgba(var(--theme-primary-rgb, 0, 218, 243), 0.45);
}

.zytek-cookie-toggle input:checked + span::before {
  transform: translateX(20px);
}

.zytek-cookie-toggle input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.zytek-cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.08);
}

.zytek-cookie-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99980;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-bg, #0c1324) 92%, transparent);
  border: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.15);
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.85);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.zytek-cookie-fab.is-visible {
  display: inline-flex;
}

.zytek-cookie-fab:hover {
  color: var(--theme-primary, #00daf3);
  border-color: rgba(var(--theme-primary-rgb, 0, 218, 243), 0.3);
}

html.light .zytek-cookie-banner,
html.light .zytek-cookie-modal-panel,
html.light .zytek-cookie-fab {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html.light .zytek-cookie-text { color: #334155; }
html.light .zytek-cookie-modal-panel h2 { color: #0f172a; }
html.light .zytek-cookie-cat-head strong { color: #0f172a; }

@media (max-width: 640px) {
  .zytek-cookie-inner { flex-direction: column; align-items: stretch; }
  .zytek-cookie-actions { justify-content: stretch; }
  .zytek-cookie-actions .zytek-cookie-btn { flex: 1; text-align: center; }
}
