/* Gonzalez & Lopez: cookie notice */
.gl-ck, .gl-ck * { box-sizing: border-box; }
.gl-ck {
  --ck-navy: #0b1f3a; --ck-gold: #c18f59; --ck-gold-light: #e8c27a; --ck-text: #1d2433; --ck-muted: #5b6475;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ck-text);
}

/* Bottom banner */
.gl-ck-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100000;
  max-width: 980px; margin: 0 auto;
  background: #fff; border-top: 4px solid var(--ck-gold); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.28);
  padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  animation: gl-ck-up 0.35s ease both;
}
@keyframes gl-ck-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.gl-ck-banner p { margin: 0; flex: 1 1 420px; color: var(--ck-text); }
.gl-ck-banner p strong { display: block; color: var(--ck-navy); font-size: 16px; margin-bottom: 2px; }
.gl-ck a { color: #0b4076; text-decoration: underline; }
.gl-ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.gl-ck-btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border-radius: 8px; padding: 10px 16px; border: 1.5px solid var(--ck-navy);
  background: #fff; color: var(--ck-navy); white-space: nowrap;
}
.gl-ck-btn:hover { background: #f3f5f9; }
.gl-ck-btn:focus-visible { outline: 3px solid var(--ck-gold-light); outline-offset: 2px; }
.gl-ck-btn.gl-ck-primary { background: var(--ck-navy); color: #fff; }
.gl-ck-btn.gl-ck-primary:hover { background: #142f55; }

/* Preferences dialog */
.gl-ck-overlay {
  position: fixed; inset: 0; z-index: 100001; background: rgba(11, 31, 58, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gl-ck-dialog {
  background: #fff; border-radius: 12px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px);
  overflow: auto; padding: 22px 22px 18px; border-top: 4px solid var(--ck-gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.gl-ck-dialog h2 { margin: 0 0 6px; font-size: 20px; color: var(--ck-navy); font-family: inherit; }
.gl-ck-dialog > p { margin: 0 0 14px; color: var(--ck-muted); }
.gl-ck-cat { border: 1px solid #e3e7ee; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.gl-ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gl-ck-cat-head strong { color: var(--ck-navy); }
.gl-ck-cat p { margin: 6px 0 0; font-size: 14px; color: var(--ck-muted); }
.gl-ck-always { font-size: 13px; color: var(--ck-muted); white-space: nowrap; }

/* On/off switch */
.gl-ck-switch { position: relative; width: 46px; height: 26px; flex: none; }
.gl-ck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.gl-ck-switch span {
  position: absolute; inset: 0; border-radius: 26px; background: #c5ccd8; transition: background 0.2s;
}
.gl-ck-switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.gl-ck-switch input:checked + span { background: var(--ck-gold); }
.gl-ck-switch input:checked + span::after { transform: translateX(20px); }
.gl-ck-switch input:focus-visible + span { outline: 3px solid var(--ck-gold-light); outline-offset: 2px; }
.gl-ck-dialog .gl-ck-actions { justify-content: flex-end; margin-top: 14px; }

/* Map placeholder shown until map cookies are accepted */
.gl-ck-map {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px; min-height: 300px; height: 100%;
  background: #f3f5f9; border: 1px dashed #c5ccd8; border-radius: 8px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2433;
}
.gl-ck-map p { margin: 0; max-width: 420px; }

/* Footer link to reopen settings */
.gl-ck-footer-link { color: inherit !important; cursor: pointer; }

@media (max-width: 600px) {
  .gl-ck-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .gl-ck-actions { width: 100%; }
  .gl-ck-actions .gl-ck-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .gl-ck-banner { animation: none; } }
