/* Consent-gated Google Tag Manager notice. Kept separate from page styles so
   the optional analytics component can be removed cleanly if necessary. */

.gtm-consent {
  position: fixed;
  z-index: 10000;
  inset-inline: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.65rem;
  width: min(34rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid #c9d6ce;
  border-radius: 14px;
  background: #ffffff;
  color: #1d2522;
  box-shadow: 0 18px 50px rgb(18 61 50 / 18%);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.gtm-consent[hidden],
.gtm-consent-settings[hidden] {
  display: none !important;
}

.gtm-consent-title {
  margin: 0;
  color: #123d32;
  font-size: 1rem;
  line-height: 1.3;
}

.gtm-consent-copy {
  margin: 0;
}

.gtm-consent-links {
  margin: 0;
  color: #5d6b65;
  font-size: 0.8rem;
}

.gtm-consent-links a {
  color: #123d32;
  font-weight: 700;
}

.gtm-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gtm-consent button,
.gtm-consent-settings {
  min-height: 44px;
  border: 1px solid #c9d6ce;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  background: #f7f5ef;
  color: #1d2522;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gtm-consent-accept {
  border-color: #123d32;
  background: #123d32;
  color: #ffffff;
}

.gtm-consent button:hover,
.gtm-consent-settings:hover {
  border-color: #123d32;
}

.gtm-consent button:focus-visible,
.gtm-consent-settings:focus-visible,
.gtm-consent-links a:focus-visible {
  outline: 3px solid #7bbfa5;
  outline-offset: 3px;
}

.gtm-consent-settings {
  position: fixed;
  z-index: 9999;
  bottom: 0.75rem;
  left: 0.75rem;
  min-height: 36px;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: #ffffff;
  color: #123d32;
  font-size: 0.72rem;
  opacity: 0.92;
}

@media (max-width: 520px) {
  .gtm-consent {
    inset-inline: 0.65rem;
    bottom: 0.65rem;
    width: calc(100% - 1.3rem);
    padding: 0.85rem;
  }

  .gtm-consent-actions {
    display: grid;
  }

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

  .gtm-consent-settings {
    bottom: 0.5rem;
    left: 0.5rem;
  }
}
