.ay-cookie-banner,
.ay-cookie-modal,
.ay-cookie-floating {
  font-family: Inter, Outfit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ay-cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  color: #111827;
  box-shadow: 0 18px 52px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px);
}

.ay-cookie-banner.is-visible { display: grid; }
.ay-cookie-copy strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ay-cookie-copy p { margin: 0; color: #475569; font-size: 13px; line-height: 1.45; }
.ay-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ay-cookie-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 999px;
  padding: 9px 13px;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.ay-cookie-btn:hover { background: #f8fafc; color: #111827; }
.ay-cookie-btn.primary { border-color: transparent; background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff; }
.ay-cookie-btn.primary:hover { color: #fff; filter: brightness(1.04); }
.ay-cookie-btn.light { background: #eef2ff; color: #3730a3; border-color: rgba(79, 70, 229, .2); }

html:not([data-theme="dark"]) .ay-cookie-btn:not(.primary),
html:not([data-theme="dark"]) .ay-cookie-btn:not(.primary):hover,
html:not([data-theme="dark"]) .ay-cookie-btn:not(.primary):focus {
  color: #111827 !important;
}

.ay-cookie-floating {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147482999;
  display: none;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
  cursor: pointer;
}

.ay-cookie-floating.is-visible { display: inline-flex; }

.ay-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, .58);
}

.ay-cookie-modal-backdrop.is-visible { display: flex; }
.ay-cookie-modal {
  width: min(620px, 100%);
  border-radius: 16px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 80px rgba(2, 6, 23, .34);
  overflow: hidden;
}

.ay-cookie-modal header,
.ay-cookie-modal footer { padding: 16px 18px; border-color: #e5e7eb; }
.ay-cookie-modal header { border-bottom: 1px solid #e5e7eb; }
.ay-cookie-modal footer { border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ay-cookie-modal h3 { margin: 0; font-size: 18px; font-weight: 900; }
.ay-cookie-modal-body { padding: 10px 18px 18px; }
.ay-cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f7;
}
.ay-cookie-option:last-child { border-bottom: 0; }
.ay-cookie-option strong { display: block; font-size: 14px; }
.ay-cookie-option span { display: block; margin-top: 2px; color: #64748b; font-size: 12px; line-height: 1.35; }
.ay-cookie-switch { width: 44px; height: 24px; accent-color: #4f46e5; }

html[data-theme="dark"] .ay-cookie-modal,
html[data-theme="dark"] .ay-cookie-floating {
  background: #111827;
  color: #f8fafc;
}
html[data-theme="dark"] .ay-cookie-banner {
  background: rgba(15, 23, 42, .96);
  color: #f8fafc;
  box-shadow: 0 18px 52px rgba(2, 6, 23, .28);
}
html[data-theme="dark"] .ay-cookie-copy p { color: #cbd5e1; }
html[data-theme="dark"] .ay-cookie-btn {
  background: rgba(255, 255, 255, .08);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, .38);
}
html[data-theme="dark"] .ay-cookie-btn:hover {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
}
html[data-theme="dark"] .ay-cookie-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
}
html[data-theme="dark"] .ay-cookie-btn.light {
  background: #ffffff;
  color: #111827;
  border-color: transparent;
}
html[data-theme="dark"] .ay-cookie-modal header,
html[data-theme="dark"] .ay-cookie-modal footer,
html[data-theme="dark"] .ay-cookie-option { border-color: rgba(148, 163, 184, .22); }
html[data-theme="dark"] .ay-cookie-option span { color: #94a3b8; }

@media (max-width: 720px) {
  .ay-cookie-banner { grid-template-columns: 1fr; left: 10px; right: 10px; bottom: 10px; }
  .ay-cookie-actions { justify-content: stretch; }
  .ay-cookie-btn { flex: 1 1 auto; }
}
