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

.bolmar-consent {
  position: fixed;
  z-index: 100000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.1rem;
  color: #211b15;
  background: rgba(251, 247, 234, 0.98);
  border: 1px solid rgba(33, 27, 21, 0.16);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(33, 27, 21, 0.2);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bolmar-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bolmar-consent__mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  color: #fbf7ea;
  background: #11502a;
  border-radius: 50%;
  font-family: var(--f-head, sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
}

.bolmar-consent__content {
  min-width: 0;
}

.bolmar-consent__eyebrow {
  margin: 0 0 0.2rem;
  color: #527052;
  font-family: var(--f-head, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bolmar-consent h2 {
  margin: 0;
  color: #211b15;
  font-family: var(--f-head, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.bolmar-consent__content > p:not(.bolmar-consent__eyebrow) {
  max-width: 52rem;
  margin: 0.35rem 0 0;
  color: rgba(33, 27, 21, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}

.bolmar-consent__privacy {
  display: inline-block;
  margin-top: 0.35rem;
  color: #11502a;
  font-family: var(--f-head, sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bolmar-consent__actions {
  display: flex;
  flex: none;
  gap: 0.55rem;
  align-items: center;
}

.bolmar-consent__button,
.bolmar-consent-settings {
  min-height: 2.7rem;
  border: 1px solid #11502a;
  border-radius: 999px;
  font-family: var(--f-head, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.bolmar-consent__button {
  padding: 0.75rem 1rem;
}

.bolmar-consent__button:hover,
.bolmar-consent-settings:hover {
  transform: translateY(-1px);
}

.bolmar-consent__button:focus-visible,
.bolmar-consent-settings:focus-visible,
.bolmar-consent__privacy:focus-visible {
  outline: 3px solid rgba(17, 80, 42, 0.28);
  outline-offset: 3px;
}

.bolmar-consent__button--secondary {
  color: #11502a;
  background: transparent;
}

.bolmar-consent__button--primary {
  color: #fff;
  background: #11502a;
}

.bolmar-consent-settings {
  position: fixed;
  z-index: 99999;
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 0.7rem 0.95rem;
  color: #11502a;
  background: rgba(251, 247, 234, 0.96);
  box-shadow: 0 0.5rem 1.5rem rgba(33, 27, 21, 0.14);
}

@media (max-width: 760px) {
  .bolmar-consent {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: stretch;
    padding: 1rem;
  }

  .bolmar-consent__mark {
    display: none;
  }

  .bolmar-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bolmar-consent__button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .bolmar-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bolmar-consent,
  .bolmar-consent__button,
  .bolmar-consent-settings {
    transition: none;
  }
}
