.autende-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.autende-cookie-banner * {
  box-sizing: border-box;
}

.autende-cookie-banner__content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.autende-cookie-banner__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

.autende-cookie-banner__text a {
  color: #4338ca;
  text-decoration: underline;
}

.autende-cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.autende-cookie-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: filter 0.2s ease, transform 0.05s ease;
}

.autende-cookie-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.autende-cookie-btn:active {
  transform: translateY(1px);
}

.autende-cookie-btn:hover {
  filter: brightness(1.06);
}

.autende-cookie-btn--accept {
  background: #22c55e;
  color: #052e16;
}

.autende-cookie-btn--reject {
  background: #e2e8f0;
  color: #0f172a;
}

.autende-cookie-btn--config {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.autende-cookie-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1190;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.autende-cookie-manage:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.autende-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.autende-cookie-modal {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.3);
  color: #0f172a;
}

.autende-cookie-modal__header {
  padding: 18px 18px 10px;
}

.autende-cookie-modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.autende-cookie-modal__description {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.autende-cookie-modal__body {
  padding: 8px 18px 0;
}

.autende-cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.autende-cookie-pref-row:first-child {
  border-top: 0;
}

.autende-cookie-pref-text strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.autende-cookie-pref-text span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #64748b;
}

.autende-cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.autende-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.autende-cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #94a3b8;
  transition: background 0.2s ease;
}

.autende-cookie-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.autende-cookie-switch input:checked + .autende-cookie-slider {
  background: #16a34a;
}

.autende-cookie-switch input:checked + .autende-cookie-slider::before {
  transform: translateX(20px);
}

.autende-cookie-switch input:disabled + .autende-cookie-slider {
  background: #334155;
}

.autende-cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 18px 18px;
}

@media (max-width: 768px) {
  .autende-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .autende-cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .autende-cookie-banner__actions {
    width: 100%;
  }

  .autende-cookie-btn {
    flex: 1;
    min-width: 30%;
  }

  .autende-cookie-manage {
    left: 10px;
    bottom: 10px;
  }
}
