.mfb-consent-banner,
.mfb-consent-modal,
.mfb-consent-modal * {
  box-sizing: border-box;
}

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

.mfb-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(720px, calc(100% - 44px));
  gap: 18px 24px;
  padding: 24px;
  border: 1px solid #d7e0da;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(17, 39, 29, .18);
  color: #1d2d25;
  font-family: inherit;
}

.mfb-consent-banner h2,
.mfb-consent-modal h2 {
  margin: 0;
  color: #19372b;
  font-family: inherit;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.mfb-consent-banner p:not(.mfb-consent-eyebrow) {
  max-width: 540px;
  margin: 9px 0 0;
  color: #5e6b64;
  font-size: 13px;
  line-height: 1.6;
}

.mfb-consent-eyebrow {
  margin: 0 0 7px !important;
  color: #d84a25 !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: .15em !important;
  line-height: 1.4 !important;
}

.mfb-consent-actions {
  display: grid;
  min-width: 190px;
  gap: 8px;
}

.mfb-consent-banner button,
.mfb-consent-modal button {
  min-height: 44px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid #d3ddd6;
  border-radius: 10px;
  background: #fff;
  color: #19372b;
  font: 800 12px/1.25 inherit;
  cursor: pointer;
}

.mfb-consent-banner button:hover,
.mfb-consent-modal button:hover {
  border-color: #9dad9f;
  background: #f3f6f2;
}

.mfb-consent-banner button:focus-visible,
.mfb-consent-modal button:focus-visible,
[data-mfb-consent-open]:focus-visible {
  outline: 3px solid rgba(216, 74, 37, .25);
  outline-offset: 2px;
}

.mfb-consent-banner .is-accept,
.mfb-consent-modal .is-save {
  border-color: #f47721;
  background: #f47721;
  color: #fff;
}

.mfb-consent-banner .is-accept:hover,
.mfb-consent-modal .is-save:hover {
  border-color: #19372b;
  background: #19372b;
  color: #fff;
}

.mfb-consent-banner > a {
  grid-column: 1 / -1;
  width: max-content;
  color: #8f371f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mfb-consent-modal {
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  font-family: inherit;
}

.mfb-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 20, .68);
}

.mfb-consent-modal > section {
  position: relative;
  display: grid;
  width: min(650px, 100%);
  max-height: min(760px, calc(100dvh - 44px));
  overflow: auto;
  border: 1px solid #d7e0da;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(7, 26, 17, .28);
}

.mfb-consent-modal header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid #e2e8e3;
  background: #fff;
}

.mfb-consent-modal header > button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 400;
}

.mfb-consent-options {
  display: grid;
  gap: 0;
  padding: 0 24px;
}

.mfb-consent-options article,
.mfb-consent-options label {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 19px 0;
  border-bottom: 1px solid #e8ece9;
}

.mfb-consent-options strong,
.mfb-consent-options small,
.mfb-consent-options p {
  display: block;
}

.mfb-consent-options strong {
  color: #26372f;
  font-size: 13px;
  line-height: 1.4;
}

.mfb-consent-options small,
.mfb-consent-options p {
  margin: 4px 0 0;
  color: #68756e;
  font-size: 11px;
  line-height: 1.55;
}

.mfb-consent-options article > span {
  flex: 0 0 auto;
  color: #2f7e61;
  font-size: 10px;
  font-weight: 800;
}

.mfb-consent-options label {
  position: relative;
  cursor: pointer;
}

.mfb-consent-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.mfb-consent-options label > i {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: #cbd4ce;
  transition: background .18s ease;
}

.mfb-consent-options label > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 48, 37, .25);
  content: '';
  transition: transform .18s ease;
}

.mfb-consent-options input:checked + i {
  background: #f47721;
}

.mfb-consent-options input:checked + i::after {
  transform: translateX(20px);
}

.mfb-consent-options input:focus-visible + i {
  outline: 3px solid rgba(216, 74, 37, .25);
  outline-offset: 3px;
}

.mfb-consent-empty {
  margin: 0 !important;
  padding: 20px 0 !important;
}

.mfb-consent-modal footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 20px 24px 24px;
}

.mfb-consent-modal footer > a {
  margin-left: auto;
  color: #8f371f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.mfb-consent-modal-open {
  overflow: hidden;
}

.bd-footer .bd-footer-privacy {
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bd-footer .bd-footer-privacy:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .mfb-consent-banner {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    gap: 15px;
    padding: 20px;
    border-radius: 16px;
  }
  .mfb-consent-actions { min-width: 0; }
  .mfb-consent-banner > a { grid-column: 1; }
  .mfb-consent-modal { align-items: end; padding: 0; }
  .mfb-consent-modal > section {
    width: 100%;
    max-height: min(820px, calc(100dvh - 20px));
    border-radius: 20px 20px 0 0;
  }
  .mfb-consent-modal header,
  .mfb-consent-options,
  .mfb-consent-modal footer { padding-right: 18px; padding-left: 18px; }
  .mfb-consent-modal footer { align-items: stretch; flex-direction: column; }
  .mfb-consent-modal footer > a { margin: 6px 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mfb-consent-options label > i,
  .mfb-consent-options label > i::after { transition: none; }
}
