.quimo-cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 100000;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 20px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 15, 18, 0.1);
  box-shadow: 0 20px 50px rgba(33, 55, 40, 0.18);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0d0f12;
  backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .quimo-cookie-banner {
    inset: auto 24px 24px auto;
    margin: 0;
  }
}

.quimo-cookie-banner[hidden],
.quimo-cookie-panel[hidden] {
  display: none !important;
}

.quimo-cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.quimo-cookie-banner p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(13, 15, 18, 0.72);
}

.quimo-cookie-banner a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quimo-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quimo-cookie-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(13, 15, 18, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  color: #0d0f12;
}

.quimo-cookie-btn:focus-visible {
  outline: 2px solid rgba(120, 235, 140, 0.85);
  outline-offset: 2px;
}

.quimo-cookie-btn-primary {
  background: rgba(155, 244, 165, 0.88);
  border-color: rgba(120, 235, 140, 0.75);
}

.quimo-cookie-btn-ghost {
  background: transparent;
}

.quimo-cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 15, 18, 0.45);
}

@media (min-width: 640px) {
  .quimo-cookie-panel {
    align-items: center;
  }
}

.quimo-cookie-panel-inner {
  width: min(480px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(13, 15, 18, 0.08);
  box-shadow: 0 24px 60px rgba(33, 55, 40, 0.2);
  font-family: "Inter", system-ui, sans-serif;
  color: #0d0f12;
}

.quimo-cookie-panel-inner h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 900;
}

.quimo-cookie-panel-intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(13, 15, 18, 0.68);
  font-weight: 500;
}

.quimo-cookie-category {
  padding: 14px 0;
  border-top: 1px solid rgba(13, 15, 18, 0.08);
}

.quimo-cookie-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quimo-cookie-category h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.quimo-cookie-category p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(13, 15, 18, 0.62);
  font-weight: 500;
}

.quimo-cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
}

.quimo-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.quimo-cookie-switch input:disabled {
  cursor: not-allowed;
}

.quimo-cookie-switch-ui {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.18);
  transition: background 0.2s ease;
}

.quimo-cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.quimo-cookie-switch input:checked + .quimo-cookie-switch-ui {
  background: #3d9a52;
}

.quimo-cookie-switch input:checked + .quimo-cookie-switch-ui::after {
  transform: translateX(18px);
}

.quimo-cookie-switch input:disabled + .quimo-cookie-switch-ui {
  opacity: 0.55;
}

.quimo-cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 15, 18, 0.08);
}

.quimo-cookie-open {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.quimo-cookie-open:hover {
  opacity: 0.85;
}

body.quimo-cookie-panel-open {
  overflow: hidden;
}
