.nymm-consent-banner,
.nymm-consent-modal,
.nymm-consent-overlay,
.nymm-consent-footer-wrap,
.nymm-consent-banner *,
.nymm-consent-modal *,
.nymm-consent-footer-wrap * {
  box-sizing: border-box;
}

.nymm-consent-banner,
.nymm-consent-modal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #202124;
  background: #fff;
  border: 1px solid #e0e4e9;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(31, 35, 41, .10);
  font-weight: 400;
}

.nymm-consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  width: min(470px, calc(100vw - 40px));
  padding: 28px 30px 24px;
}

.nymm-consent-modal__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nymm-consent-modal__heading > div {
  min-width: 0;
}

.nymm-consent-modal__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.nymm-consent-banner__title,
.nymm-consent-modal__heading h2 {
  display: block;
  margin: 0;
  color: #17191d;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.025em;
}

.nymm-consent-modal__heading p {
  margin: 3px 0 0;
  color: #747b87;
  font-size: 14px;
  line-height: 1.3;
}

.nymm-consent-banner__copy {
  margin-top: 20px;
}

.nymm-consent-banner__copy p,
.nymm-consent-modal__intro {
  margin: 0;
  color: #555d69;
  font-size: 14px;
  line-height: 1.55;
}

.nymm-consent-policy {
  color: #17191d;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nymm-consent-policy:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nymm-consent-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.nymm-consent-btn,
.nymm-consent-linkbtn,
.nymm-consent-close,
.nymm-consent-footer-choice {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.nymm-consent-btn {
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid #d2d6dc;
  border-radius: 13px;
  background: #fff;
  color: #202124;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.nymm-consent-btn--primary {
  background: #17191d;
  border-color: #17191d;
  color: #fff;
}

.nymm-consent-btn--primary:hover {
  background: #2b2e33;
  border-color: #2b2e33;
}

.nymm-consent-btn--secondary:hover {
  background: #f7f8f9;
}

.nymm-consent-linkbtn {
  border: 0;
  background: transparent;
  color: #555d69;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1.3;
}

.nymm-consent-linkbtn:hover {
  color: #17191d;
}


.nymm-consent-linkbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nymm-consent-linkbtn > span[aria-hidden="true"] {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transform-origin: center;
}

.nymm-consent-modal__footer > .nymm-consent-linkbtn > span[aria-hidden="true"] {
  transform: translateY(2px) rotate(225deg);
}

.nymm-consent-banner__links {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.nymm-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(242, 244, 247, .64);
  backdrop-filter: blur(2px);
}

.nymm-consent-modal {
  position: fixed;
  z-index: 2147483002;
  right: 20px;
  bottom: 20px;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  width: min(470px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
}

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

.nymm-consent-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 30px 20px;
}

.nymm-consent-close {
  display: none;
}

.nymm-consent-modal__content {
  padding: 0 30px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nymm-consent-modal__intro {
  margin-bottom: 16px;
}

.nymm-consent-category-list {
  display: block;
  overflow: hidden;
  border: 1px solid #e0e4e9;
  border-radius: 16px;
  background: #fff;
}

.nymm-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 15px 18px;
  border-top: 1px solid #e7eaee;
}

.nymm-consent-category:first-child {
  border-top: 0;
}

.nymm-consent-category__copy {
  min-width: 0;
}

.nymm-consent-category__title {
  color: #202124;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.nymm-consent-category__copy p {
  margin: 4px 0 0;
  color: #737a85;
  font-size: 13px;
  line-height: 1.35;
}

.nymm-consent-category__control {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nymm-consent-always {
  color: #555d69;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nymm-consent-switch {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
}

.nymm-consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nymm-consent-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd0d8;
  cursor: pointer;
  transition: background .14s ease;
}

.nymm-consent-switch__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
  transition: transform .14s ease;
}

.nymm-consent-switch input:checked + .nymm-consent-switch__slider {
  background: #17191d;
}

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

.nymm-consent-switch input:focus-visible + .nymm-consent-switch__slider {
  outline: 3px solid rgba(23,25,29,.18);
  outline-offset: 2px;
}

.nymm-consent-modal__footer {
  flex: 0 0 auto;
  padding: 0 30px 26px;
  text-align: center;
}

.nymm-consent-modal__footer .nymm-consent-banner__actions {
  margin-top: 0;
}

.nymm-consent-modal__footer > .nymm-consent-linkbtn {
  margin-top: 16px;
}

.nymm-consent-save {
  min-width: 0;
}

.nymm-consent-footer-wrap {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  font: inherit;
  text-align: center;
}

.nymm-consent-footer-wrap--manual {
  display: inline-flex;
  width: auto;
  margin: 0;
}

.nymm-consent-footer-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
}

.nymm-consent-footer-choice__label {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.nymm-consent-choice-icon {
  --nymm-pill-border: #111111;
  --nymm-pill-left-bg: #ffffff;
  --nymm-pill-left-fg: #111111;
  --nymm-pill-right-bg: #111111;
  --nymm-pill-right-fg: #ffffff;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 80px;
  height: 34px;
  overflow: hidden;
  border: 2px solid var(--nymm-pill-border);
  border-radius: 999px;
  background: var(--nymm-pill-left-bg);
  line-height: 1;
}

.nymm-consent-choice-icon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 16px;
  background: var(--nymm-pill-left-bg);
  transform: translateX(-50%) skewX(-18deg);
  z-index: 1;
}

.nymm-consent-choice-icon__yes,
.nymm-consent-choice-icon__no {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 500;
}

.nymm-consent-choice-icon__yes {
  background: var(--nymm-pill-left-bg);
  color: var(--nymm-pill-left-fg);
}

.nymm-consent-choice-icon__no {
  background: var(--nymm-pill-right-bg);
  color: var(--nymm-pill-right-fg);
}

.nymm-consent-footer-choice.is-all .nymm-consent-choice-icon {
  --nymm-pill-border: #2f6ef6;
  --nymm-pill-left-bg: #ffffff;
  --nymm-pill-left-fg: #2f6ef6;
  --nymm-pill-right-bg: #2f6ef6;
  --nymm-pill-right-fg: #ffffff;
}

.nymm-consent-footer-choice.is-custom .nymm-consent-choice-icon {
  --nymm-pill-border: #111111;
  --nymm-pill-left-bg: #ffffff;
  --nymm-pill-left-fg: #111111;
  --nymm-pill-right-bg: #111111;
  --nymm-pill-right-fg: #ffffff;
}

.nymm-consent-footer-choice.is-essential .nymm-consent-choice-icon {
  --nymm-pill-border: #cfcfd5;
  --nymm-pill-left-bg: #f5f5f7;
  --nymm-pill-left-fg: #b3b3ba;
  --nymm-pill-right-bg: #dedee3;
  --nymm-pill-right-fg: #ffffff;
}

.nymm-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nymm-consent-btn:focus-visible,
.nymm-consent-linkbtn:focus-visible,
.nymm-consent-footer-choice:focus-visible {
  outline: 3px solid rgba(23,25,29,.2);
  outline-offset: 3px;
}

html.nymm-consent-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .nymm-consent-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 24px rgba(31, 35, 41, .09);
  }

  .nymm-consent-banner .nymm-consent-modal__heading {
    gap: 10px;
  }

  .nymm-consent-banner .nymm-consent-modal__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .nymm-consent-banner__title {
    font-size: 16px;
    line-height: 1.2;
  }

  .nymm-consent-banner .nymm-consent-modal__heading p {
    display: none;
  }

  .nymm-consent-banner__copy {
    margin-top: 9px;
  }

  .nymm-consent-banner__copy p {
    font-size: 13px;
    line-height: 1.35;
  }

  .nymm-consent-banner__actions {
    gap: 8px;
    margin-top: 11px;
  }

  .nymm-consent-banner .nymm-consent-btn {
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
  }

  .nymm-consent-banner__links {
    margin-top: 8px;
  }

  .nymm-consent-banner__links .nymm-consent-linkbtn {
    font-size: 12px;
  }

  .nymm-consent-modal {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    max-height: 85vh;
    max-height: 85dvh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 30px rgba(31, 35, 41, .12);
  }

  .nymm-consent-modal__header {
    padding: 15px 16px 10px;
  }

  .nymm-consent-modal__heading {
    gap: 10px;
  }

  .nymm-consent-modal__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .nymm-consent-modal__heading h2 {
    font-size: 16px;
    line-height: 1.2;
  }

  .nymm-consent-modal__heading p {
    margin-top: 2px;
    font-size: 12px;
  }

  .nymm-consent-modal__content {
    padding: 0 16px 12px;
  }

  .nymm-consent-modal__intro {
    margin-bottom: 11px;
    font-size: 13px;
    line-height: 1.35;
  }

  .nymm-consent-category-list {
    border-radius: 10px;
  }

  .nymm-consent-category {
    min-height: 58px;
    padding: 11px 13px;
    gap: 10px;
  }

  .nymm-consent-category__title {
    font-size: 14px;
  }

  .nymm-consent-category__copy p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
  }

  .nymm-consent-always {
    font-size: 11.5px;
  }

  .nymm-consent-switch {
    flex-basis: 42px;
    width: 42px;
    height: 24px;
  }

  .nymm-consent-switch__slider::after {
    width: 18px;
    height: 18px;
  }

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

  .nymm-consent-modal__footer {
    padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  }

  .nymm-consent-modal__footer .nymm-consent-banner__actions {
    margin-top: 10px;
  }

  .nymm-consent-modal__footer .nymm-consent-btn {
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
  }

  .nymm-consent-modal__footer > .nymm-consent-linkbtn {
    margin-top: 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nymm-consent-btn,
  .nymm-consent-switch__slider,
  .nymm-consent-switch__slider::after {
    transition: none;
  }
}
