.noaway-cookie-consent__banner[hidden],
.noaway-cookie-consent__overlay[hidden] {
  display: none !important;
}

.noaway-cookie-consent__banner {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 1rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #dbe3ee;
  border-radius: 0.95rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  padding: 1rem;
}

@media (min-width: 960px) {
  .noaway-cookie-consent__banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 2rem));
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
  }
}

.noaway-cookie-consent__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.noaway-cookie-consent__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.noaway-cookie-consent__policy {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
}

.noaway-cookie-consent__policy a,
.noaway-cookie-settings-link {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.noaway-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.noaway-cc-btn {
  appearance: none;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.16s ease;
}

.noaway-cc-btn:focus-visible,
.noaway-cookie-consent__close:focus-visible,
.noaway-cookie-consent__switch input:focus-visible + .noaway-cookie-consent__slider,
.noaway-cookie-settings-link:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.noaway-cc-btn--primary {
  background: #4f46e5;
  color: #ffffff;
}

.noaway-cc-btn--primary:hover {
  background: #4338ca;
}

.noaway-cc-btn--secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.noaway-cc-btn--secondary:hover {
  background: #f8fafc;
}

.noaway-cc-btn--ghost {
  background: #eef2ff;
  color: #3730a3;
}

.noaway-cc-btn--ghost:hover {
  background: #e0e7ff;
}

.noaway-cookie-consent__overlay {
  position: fixed;
  inset: 0;
  z-index: 1010;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.noaway-cookie-consent__dialog {
  width: min(680px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #dbe3ee;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  padding: 1.2rem;
  position: relative;
}

.noaway-cookie-consent__title--modal {
  margin-right: 2rem;
}

.noaway-cookie-consent__text--modal {
  margin-bottom: 1rem;
}

.noaway-cookie-consent__close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.noaway-cookie-consent__category {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.9rem;
  margin-top: 0.8rem;
}

.noaway-cookie-consent__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.noaway-cookie-consent__category-header h3 {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 650;
  color: #0f172a;
}

.noaway-cookie-consent__category p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.5;
}

.noaway-cookie-consent__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.noaway-cookie-consent__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.noaway-cookie-consent__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.noaway-cookie-consent__slider {
  width: 2.8rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.16s ease;
}

.noaway-cookie-consent__slider::after {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  transition: transform 0.16s ease;
}

.noaway-cookie-consent__switch input:checked + .noaway-cookie-consent__slider {
  background: #4f46e5;
}

.noaway-cookie-consent__switch input:checked + .noaway-cookie-consent__slider::after {
  transform: translateX(1.2rem);
}

.noaway-cookie-consent__modal-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.noaway-cookie-modal-open {
  overflow: hidden;
}

.dark .noaway-cookie-consent__banner,
.dark .noaway-cookie-consent__dialog {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

.dark .noaway-cookie-consent__text,
.dark .noaway-cookie-consent__category p {
  color: #cbd5e1;
}

.dark .noaway-cookie-consent__category {
  border-color: #334155;
}

.dark .noaway-cookie-consent__badge {
  background: #1e293b;
  color: #cbd5e1;
}

.dark .noaway-cookie-consent__close {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

.dark .noaway-cc-btn--secondary {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

.dark .noaway-cc-btn--secondary:hover {
  background: #1e293b;
}

.dark .noaway-cc-btn--ghost {
  background: #312e81;
  color: #e0e7ff;
}
