.bv-consent-modal[hidden] {
  display: none;
}

.bv-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.bv-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 10, 0.64);
}

.bv-consent-modal__dialog {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(520px, calc(100% - 2rem));
  max-height: min(78vh, 760px);
  overflow: auto;
  background: #f4efe4;
  color: #1b2a1f;
  border: 1px solid rgba(27, 42, 31, 0.12);
  border-radius: var(--bv-radius-md);
  box-shadow: 0 24px 80px rgba(10, 20, 14, 0.28);
  outline: none;
}

.bv-consent-modal__content {
  padding: 1.5rem;
}

.bv-consent-modal__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.bv-consent-language .bv-lang-dropdown {
  position: relative;
}

.bv-consent-language .bv-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(27, 42, 31, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: #1b2a1f;
  font-size: 0.95rem;
  line-height: 1.2;
}

.bv-consent-language .bv-lang-toggle:hover,
.bv-consent-language .bv-lang-toggle[aria-expanded="true"] {
  background: #fff;
  color: #1b2a1f !important;
  transform: none;
}

.bv-consent-language .bv-lang-toggle:focus {
  outline: none;
  box-shadow: none;
}

.bv-consent-language .bv-lang-toggle:focus-visible {
  outline: 3px solid #f1b24b;
  outline-offset: 3px;
}

.bv-consent-language .bv-lang-menu {
  right: 0;
  left: auto;
  min-width: 180px;
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  background: #fff;
  color: #1b2a1f;
  border: 1px solid rgba(27, 42, 31, 0.12);
  border-radius: 5px;
  box-shadow: 0 20px 50px rgba(10, 20, 14, 0.16);
  z-index: 2;
}

.bv-consent-language .bv-lang-menu li a {
  padding: 0.75rem 0.95rem;
  color: #1b2a1f;
}

.bv-consent-language .bv-lang-menu li a:hover,
.bv-consent-language .bv-lang-menu li a:focus-visible {
  background: rgba(46, 91, 63, 0.08) !important;
  color: #1b2a1f !important;
}

.bv-consent-modal__content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.bv-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.bv-consent-links a {
  color: #2e5b3f;
  font-weight: 600;
}

.bv-consent-links__separator {
  color: rgba(27, 42, 31, 0.6);
}

.bv-consent-actions {
  display: grid;
  gap: 0.75rem;
}

.bv-consent-button {
  appearance: none;
  border: 1px solid #2e5b3f;
  border-radius: 5px;
  background: transparent;
  color: #1b2a1f;
  cursor: pointer;
  font: inherit;
  padding: 0.85rem 1.1rem;
}

.bv-consent-button.is-primary {
  background: #2e5b3f;
  color: #f8f4ea;
}

.bv-consent-button.is-text {
  border-color: transparent;
}

.bv-consent-button:focus-visible,
.bv-consent-links a:focus-visible,
.bv-external-media__button:focus-visible,
.bv-consent-settings-link:focus-visible {
  outline: 3px solid #f1b24b;
  outline-offset: 3px;
}

.bv-consent-view.is-hidden {
  display: none;
}

.bv-consent-categories {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.bv-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
}

.bv-consent-category__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bv-consent-category__title-row h3 {
  margin: 0;
  font-size: 1rem;
}

.bv-consent-category__copy p {
  margin: 0.4rem 0 0;
}

.bv-consent-category__required {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(46, 91, 63, 0.12);
}

.bv-consent-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bv-consent-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bv-consent-switch__slider {
  width: 52px;
  height: 30px;
  background: #cfd8cf;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.bv-consent-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.bv-consent-switch input:checked + .bv-consent-switch__slider {
  background: #2e5b3f;
}

.bv-consent-switch input:checked + .bv-consent-switch__slider::after {
  transform: translateX(22px);
}

.bv-consent-switch input:disabled + .bv-consent-switch__slider {
  background: #55765f;
  opacity: 0.75;
}

.bv-consent-modal__error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f7d8d5;
  color: #7a1f17;
}

.bv-external-media {
  border: 1px dashed rgba(27, 42, 31, 0.24);
  background: #f4efe4;
  border-radius: 18px;
  padding: 1rem;
}

.bv-external-media__inner {
  display: grid;
  gap: 0.75rem;
}

.bv-external-media__button {
  justify-self: start;
  border: 1px solid #2e5b3f;
  background: #2e5b3f;
  color: #f8f4ea;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 640px) {
  .bv-consent-modal__dialog {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, calc(100% - 1rem));
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
  }

  .bv-consent-modal__content {
    padding: 1rem;
  }

  .bv-consent-modal__toolbar {
    margin-bottom: 0.5rem;
  }

  .bv-consent-category {
    grid-template-columns: 1fr;
  }
}
