.hm-analytics-consent,
.hm-analytics-consent * {
  box-sizing: border-box;
}

.hm-analytics-consent {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  width: min(760px, calc(100% - 40px));
  margin-left: auto;
  padding: 22px;
  border: 1px solid rgba(219, 169, 88, 0.78);
  background: #f4f0e8;
  color: #071630;
  box-shadow: 0 18px 70px rgba(2, 10, 22, 0.34);
  font-family: "HM Switzer", Arial, sans-serif;
}

.hm-analytics-consent__label {
  margin: 0 0 9px;
  color: #a56e17;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hm-analytics-consent__title {
  max-width: 560px;
  margin: 0;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hm-analytics-consent__body {
  max-width: 590px;
  margin: 11px 0 0;
  color: rgba(7, 22, 48, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.hm-analytics-consent__link {
  display: inline-block;
  margin-top: 12px;
  color: #071630;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid #dba958;
}

.hm-analytics-consent__actions {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.hm-analytics-consent__button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(7, 22, 48, 0.42);
  background: transparent;
  color: #071630;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.hm-analytics-consent__button--primary {
  border-color: #071630;
  background: #071630;
  color: #f4f0e8;
}

.hm-analytics-consent__button:hover,
.hm-analytics-consent__button:focus-visible,
.hm-analytics-consent__link:focus-visible {
  outline: 2px solid #dba958;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hm-analytics-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 24px);
    padding: 19px;
  }

  .hm-analytics-consent__actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-analytics-consent {
    scroll-behavior: auto;
  }
}
