/* Taskey Law — consent banner. Pairs with consent-banner.js + gtm-consent.js.
   Fixed bottom bar: does not shift document flow; body padding reserved while open (focus not obscured). */

:root {
  --as-consent-pad: 0px;
}

body.as-consent-open {
  padding-bottom: var(--as-consent-pad);
}

#as-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--white, #fffcf7);
  color: var(--ink, #1c2428);
  border-top: 1px solid var(--line, #d4cbbd);
  box-shadow: 0 -4px 24px rgba(28, 36, 40, 0.12);
  font-family: var(--font, "Segoe UI", system-ui, sans-serif);
}

#as-consent-banner[hidden] {
  display: none !important;
}

.as-consent-inner {
  width: min(100% - 2rem, var(--max, 68rem));
  margin: 0 auto;
  padding: 1rem 0 1.125rem;
  display: grid;
  gap: 0.875rem;
  align-items: center;
}

@media (min-width: 720px) {
  .as-consent-inner {
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
  }
}

.as-consent-copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink, #1c2428);
}

.as-consent-copy a {
  color: var(--teal, #1a4a52);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.as-consent-copy a:hover {
  color: var(--teal-deep, #12353b);
}

.as-consent-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-deep, #12353b);
}

.as-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 720px) {
  .as-consent-actions {
    justify-content: flex-end;
  }
}

/* Equal visual weight — both outline teal; min 44×44 target (WCAG 2.2) */
.as-consent-btn {
  appearance: none;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius, 6px);
  border: 2px solid var(--teal, #1a4a52);
  background: transparent;
  color: var(--teal, #1a4a52);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.as-consent-btn:hover {
  background: var(--teal-soft, #d9e6e8);
  color: var(--teal-deep, #12353b);
}

.as-consent-btn:focus {
  outline: none;
}

.as-consent-btn:focus-visible {
  outline: 3px solid var(--focus, #0b6e7a);
  outline-offset: 2px;
}

.as-consent-privacy:focus-visible {
  outline: 3px solid var(--focus, #0b6e7a);
  outline-offset: 2px;
}
