/* Cookie-choice bar (templates/partials/cookie_consent.html).
 *
 * Self-contained so it renders the same under base.html (Bootstrap +
 * base.css) and the buy/auth shells (buy.css only). Inherits the shell's
 * typeface; brings no colour the page does not already have. Deliberately
 * not a Bootstrap .alert: the site auto-dismisses those, and a consent
 * question must wait for an answer. */

.uta-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #ffffff;
  color: #1f2937;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 0 rgba(17, 24, 39, 0.04);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.uta-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.uta-consent__text {
  flex: 1 1 28rem;
  margin: 0;
}

.uta-consent__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.uta-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* Two identical buttons: the choice is the visitor's, so neither one is
 * drawn as the default. */
.uta-consent__btn {
  appearance: none;
  font: inherit;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  border: 1.5px solid #111827;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.uta-consent__btn:hover {
  background: #f3f4f6;
}

.uta-consent__btn:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

/* The policy page's "Your cookie choice" block reuses the actions. */
.uta-consent--inline {
  position: static;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: none;
  margin: 0.5rem 0 1rem;
}

.uta-consent--inline .uta-consent__inner {
  padding: 0.875rem 1rem;
}

@media (max-width: 640px) {
  .uta-consent__inner {
    gap: 0.75rem;
  }
  .uta-consent__actions {
    width: 100%;
  }
  .uta-consent__btn {
    flex: 1 1 0;
  }
}
