/* QuickMap PRO — consent banner.
 *
 * Themed from the live page's own tokens rather than by eye (the
 * playbook's §2.3): navy #004B87, teal #008080, ink #1B2333, muted
 * #3E4D5C, faint #8A94A6, paper #F4F6FA, DM Sans + IBM Plex Mono.
 */

.qm-cc {
  position: fixed;
  left: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 9999;
  width: min(400px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 22px 22px 20px;
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(27, 35, 51, .16);
  font-family: 'DM Sans', sans-serif;
  color: #1B2333;
}

.qm-cc-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: #004B87;
}

.qm-cc-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #3E4D5C;
  text-wrap: pretty;
}

.qm-cc-link { color: #1A6BA8; text-decoration: underline; }
.qm-cc-link:hover { color: #004B87; }

.qm-cc-current {
  margin: 12px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #8A94A6;
}

/* Side by side, and IDENTICAL geometry on both — the playbook's point that
   equal-weight buttons must not differ in height. The transparent border on
   the filled button is what stops the outlined one sitting 1px taller. */
.qm-cc-btns {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.qm-cc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* Reject is the outlined one; Accept is filled. Both are equally reachable
   and equally legible — neither is a dark pattern. */
.qm-cc-btn[data-qm-cc="reject"] {
  background: #FFFFFF;
  color: #3E4D5C;
  border-color: #C9D2DF;
}
.qm-cc-btn[data-qm-cc="reject"]:hover {
  background: #F4F6FA;
  color: #1B2333;
  border-color: #8A94A6;
}

.qm-cc-btn[data-qm-cc="accept"] {
  background: #004B87;
  color: #FFFFFF;
}
.qm-cc-btn[data-qm-cc="accept"]:hover { background: #00396A; }

/* Keyboard users must be able to see which choice they are on. */
.qm-cc-btn:focus-visible,
.qm-cc-link:focus-visible {
  outline: 2px solid #008080;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .qm-cc-btn { transition: none; }
}
