.consent-box {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  width: min(560px, calc(100vw - 36px));
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--teal-dark);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
}

.consent-box h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.consent-box p {
  margin: 0;
  font-size: 0.92rem;
}

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

.consent-button {
  min-height: 42px;
  padding: 10px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
}

.consent-button.primary {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
}

.consent-button.ghost {
  color: var(--muted);
}

.consent-panel {
  display: none;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.consent-box.open .consent-panel {
  display: grid;
}

.consent-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  font-weight: 600;
}

.consent-choice span {
  display: grid;
  gap: 3px;
}

.consent-choice small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.consent-switch {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  accent-color: var(--teal-dark);
}

@media (max-width: 640px) {
  .consent-box {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    overflow-y: auto;
    padding: 16px;
  }

  .consent-actions {
    display: grid;
  }

  .consent-button {
    width: 100%;
  }
}
