/* Alysum cookie consent — vanilla JS banner */
.aly-cc-hidden { display: none !important; }

/* Bottom banner */
.aly-cc-banner {
  position: fixed;
  inset: auto 12px 12px 12px;
  z-index: 9998;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  padding: 18px 22px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: aly-cc-slide-up 0.35s ease-out;
}
@keyframes aly-cc-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.aly-cc-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .aly-cc-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}
.aly-cc-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}
.aly-cc-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.aly-cc-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.aly-cc-btn {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
}
.aly-cc-btn:active { transform: scale(0.97); }
.aly-cc-btn--primary {
  background: #d91f2e;
  color: #fff;
}
.aly-cc-btn--primary:hover { background: #c01a28; }
.aly-cc-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.aly-cc-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Settings modal */
.aly-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: aly-cc-fade-in 0.2s ease-out;
}
@keyframes aly-cc-fade-in { from { opacity: 0; } to { opacity: 1; } }
.aly-cc-modal__card {
  background: #111;
  color: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.aly-cc-modal__header {
  padding: 24px 24px 12px;
}
.aly-cc-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.aly-cc-modal__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}
.aly-cc-modal__body { padding: 8px 24px; }
.aly-cc-category {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-start;
}
.aly-cc-category__text { flex: 1; }
.aly-cc-category__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.aly-cc-category__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.5;
}
/* Toggle switch */
.aly-cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.aly-cc-toggle input { display: none; }
.aly-cc-toggle__slider {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.aly-cc-toggle__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.aly-cc-toggle input:checked + .aly-cc-toggle__slider {
  background: #d91f2e;
}
.aly-cc-toggle input:checked + .aly-cc-toggle__slider::before {
  transform: translateX(20px);
}
.aly-cc-toggle input:disabled + .aly-cc-toggle__slider {
  background: rgba(217, 31, 46, 0.5);
  cursor: not-allowed;
}
.aly-cc-modal__footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

/* Floating "Spravovať cookies" trigger after consent */
.aly-cc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9997;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aly-cc-reopen:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.aly-cc-reopen__icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}
