/* Shared public-landing cookie consent UI. All selectors are scoped with fc- to avoid landing collisions. */
.fc-consent-root,
.fc-consent-root * {
  box-sizing: border-box;
}

.fc-consent-root {
  position: fixed;
  z-index: 2147483000;
  inset: auto 0 0;
  pointer-events: none;
  color: #102b22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fc-consent-banner,
.fc-consent-modal {
  pointer-events: auto;
}

.fc-consent-banner {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 20px;
  padding: 22px;
  border: 2px solid rgba(15, 122, 79, 0.52);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(5, 30, 20, 0.34), 0 5px 16px rgba(5, 30, 20, 0.18);
}

.fc-consent-logo {
  display: block;
  width: min(178px, 62vw);
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

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

.fc-consent-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #0f7a4f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fc-consent-eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00b96b;
  content: "";
}

.fc-consent-title {
  margin: 0;
  color: #0b2f26;
  font-size: clamp(1.15rem, 2.5vw, 1.38rem);
  line-height: 1.2;
}

.fc-consent-copy {
  margin: 10px 0 18px;
  color: #426158;
  font-size: 0.94rem;
  line-height: 1.55;
}

.fc-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fc-consent-button,
.fc-consent-close {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.fc-consent-button {
  padding: 10px 15px;
}

.fc-consent-button--accept {
  background: #0f7a4f;
  color: #ffffff;
}

.fc-consent-button--reject,
.fc-consent-button--manage {
  background: #eef5f1;
  color: #0b2f26;
}

.fc-consent-button--manage {
  margin-left: auto;
}

.fc-consent-button:hover,
.fc-consent-close:hover {
  filter: brightness(0.96);
}

.fc-consent-button:focus-visible,
.fc-consent-close:focus-visible,
.fc-consent-switch input:focus-visible + span {
  outline: 3px solid #f1bf2c;
  outline-offset: 3px;
}

.fc-consent-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 21, 14, 0.58);
}

.fc-consent-dialog {
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.fc-consent-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.fc-consent-dialog h2 {
  margin: 0;
  color: #0b2f26;
  font-size: 1.4rem;
  line-height: 1.2;
}

.fc-consent-close {
  display: grid;
  width: 40px;
  min-width: 40px;
  place-items: center;
  background: #eef5f1;
  color: #0b2f26;
  font-size: 1.25rem;
}

.fc-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d9e7df;
  border-radius: 16px;
  background: #fbfdfc;
}

.fc-consent-option strong,
.fc-consent-option small {
  display: block;
}

.fc-consent-option strong {
  color: #0b2f26;
  font-size: 0.98rem;
}

.fc-consent-option small {
  margin-top: 4px;
  color: #557168;
  font-size: 0.84rem;
  line-height: 1.4;
}

.fc-consent-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.fc-consent-switch input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.fc-consent-switch span {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #b6c8c0;
  transition: background 160ms ease;
}

.fc-consent-switch span::after {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.fc-consent-switch input:checked + span {
  background: #0f7a4f;
}

.fc-consent-switch input:checked + span::after {
  transform: translateX(20px);
}

.fc-consent-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.fc-consent-footer-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fc-consent-footer-link[hidden] {
  display: none !important;
}

.fc-consent-footer-link:focus-visible {
  outline: 3px solid #f1bf2c;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .fc-consent-banner {
    width: calc(100% - 20px);
    margin-bottom: 10px;
    padding: 18px;
    border-radius: 16px;
  }

  .fc-consent-actions,
  .fc-consent-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fc-consent-button--manage {
    margin-left: 0;
  }

  .fc-consent-button {
    width: 100%;
  }

  .fc-consent-dialog {
    padding: 20px;
    border-radius: 18px;
  }

  .fc-consent-option {
    align-items: flex-start;
  }

}
