.lmf-cookie-consent,
.lmf-cookie-modal {
  font-family: var(--lmf-font-sans, "Inter", Arial, Helvetica, sans-serif);
  letter-spacing: 0;
}

body.lmf-cookie-modal-open {
  overflow: hidden;
}

.lmf-cookie-consent[hidden],
.lmf-cookie-modal[hidden] {
  display: none !important;
}

.lmf-cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  background: #fbfbf8;
  border-top: 1px solid rgba(15, 75, 53, 0.2);
  box-shadow: 0 -16px 45px rgba(17, 22, 18, 0.14);
  color: #18241d;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.lmf-cookie-consent__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.lmf-cookie-consent__copy {
  flex: 1 1 22rem;
}

.lmf-cookie-consent__title {
  margin: 0 0 0.35rem;
  color: #0f4b35;
  font-family: var(--lmf-font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.lmf-cookie-consent__text,
.lmf-cookie-modal__intro,
.lmf-cookie-category__text {
  color: #556159;
  font-size: 0.93rem;
  line-height: 1.5;
}

.lmf-cookie-consent__text,
.lmf-cookie-modal__intro {
  margin: 0;
}

.lmf-cookie-consent__actions,
.lmf-cookie-modal__footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.lmf-cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--lmf-font-sans, "Inter", Arial, Helvetica, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lmf-cookie-consent__button--primary {
  background: #0f4b35;
  border-color: #0f4b35;
  color: #fff;
}

.lmf-cookie-consent__button--primary:hover,
.lmf-cookie-consent__button--primary:focus-visible {
  background: #0a3b2a;
  border-color: #0a3b2a;
  color: #fff;
  transform: translateY(-1px);
}

.lmf-cookie-consent__button--outline {
  background: transparent;
  border-color: #0f4b35;
  color: #0f4b35;
}

.lmf-cookie-consent__button--outline:hover,
.lmf-cookie-consent__button--outline:focus-visible {
  background: #e5efe9;
  border-color: #0a3b2a;
  color: #0a3b2a;
}

.lmf-cookie-consent__button--ghost {
  background: transparent;
  color: #0f4b35;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.lmf-cookie-consent__button--ghost:hover,
.lmf-cookie-consent__button--ghost:focus-visible {
  color: #0a3b2a;
}

.lmf-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lmf-cookie-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lmf-cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 22, 18, 0.58);
}

.lmf-cookie-modal__panel {
  position: relative;
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  background: #fbfbf8;
  border: 1px solid rgba(15, 75, 53, 0.2);
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(17, 22, 18, 0.24);
}

.lmf-cookie-modal__header,
.lmf-cookie-modal__footer {
  padding: 1rem 1.25rem;
  background: #fbfbf8;
}

.lmf-cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 75, 53, 0.15);
}

.lmf-cookie-modal__title {
  margin: 0;
  color: #0f4b35;
  font-family: var(--lmf-font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.65rem;
  letter-spacing: 0;
}

.lmf-cookie-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(15, 75, 53, 0.2);
  border-radius: 2px;
  color: #0f4b35;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.lmf-cookie-modal__close:hover,
.lmf-cookie-modal__close:focus-visible {
  background: #e5efe9;
  border-color: #0f4b35;
}

.lmf-cookie-modal__body {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
}

.lmf-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #f4f3ed;
  border: 1px solid #e3e5df;
  border-radius: 3px;
}

.lmf-cookie-category--toggle {
  cursor: pointer;
}

.lmf-cookie-category__title {
  display: block;
  margin: 0 0 0.25rem;
  color: #18241d;
  font-size: 1rem;
  font-weight: 700;
}

.lmf-cookie-category__text {
  display: block;
  margin: 0;
}

.lmf-cookie-category__status {
  flex: 0 0 auto;
  color: #0f4b35;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lmf-cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 3rem;
  height: 1.7rem;
}

.lmf-cookie-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.lmf-cookie-switch__ui {
  position: absolute;
  inset: 0;
  background: rgba(24, 36, 29, 0.25);
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.lmf-cookie-switch__ui::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(17, 22, 18, 0.2);
  transition: transform 160ms ease;
}

.lmf-cookie-switch input:focus-visible + .lmf-cookie-switch__ui {
  outline: 2px solid #0f4b35;
  outline-offset: 2px;
}

.lmf-cookie-switch input:checked + .lmf-cookie-switch__ui {
  background: #0f4b35;
}

.lmf-cookie-switch input:checked + .lmf-cookie-switch__ui::before {
  transform: translateX(1.3rem);
}

.lmf-cookie-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(15, 75, 53, 0.15);
}

@media (max-width: 760px) {
  .lmf-cookie-consent__inner,
  .lmf-cookie-consent__actions,
  .lmf-cookie-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lmf-cookie-consent__button {
    width: 100%;
  }

  .lmf-cookie-category {
    align-items: flex-start;
  }
}
