.yk-fn-popup[hidden] {
  display: none !important;
}

.yk-fn-popup .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.yk-fn-popup {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "proxima-nova", "Proxima Nova", "Nunito Sans", sans-serif;
}

body.popup-fly-cart-opened .yk-fn-popup {
  display: none !important;
  pointer-events: none !important;
}

.yk-fn-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.62);
  cursor: pointer;
}

.yk-fn-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(86dvh, calc(100dvh - 88px));
  background: #fff;
  color: #111;
  padding: 0 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  text-align: center;
  overflow: auto;
}

.yk-fn-popup__brand {
  background: #000;
  margin: 0 -32px 22px;
  padding: 18px 48px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yk-fn-popup__brand img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.yk-fn-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent !important;
  font-size: 28px;
  line-height: 1;
  color: #fff !important;
  cursor: pointer;
  font-weight: 300;
  box-shadow: none !important;
}

.yk-fn-popup__close:hover,
.yk-fn-popup__close:focus {
  background: transparent !important;
  color: #fff !important;
  opacity: 0.8;
}

.yk-fn-popup__kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.yk-fn-popup__title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.yk-fn-popup__amt {
  white-space: nowrap;
  font-weight: 800;
}

.yk-fn-popup__was {
  color: #767676;
  font-weight: 600;
  text-decoration: line-through;
}

.yk-fn-popup__sub {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 400;
  color: #111;
}

.yk-fn-popup__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  color: #111;
}

.yk-fn-popup__or {
  margin: 2px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #767676;
}

.yk-fn-popup__phone {
  display: block;
  margin: 0 0 14px;
}

.yk-fn-popup__phone .yk-phone {
  width: 100%;
}

.yk-fn-popup__phone .yk-phone__input {
  margin: 0;
  height: 46px;
}

.yk-fn-popup__phone .yk-phone__cc {
  min-height: 46px;
  height: 46px;
  background: #fff;
}

.yk-fn-popup__phone .yk-phone__flag img {
  width: 22px;
  height: 16px;
}

.yk-fn-popup__phone .yk-phone__list {
  z-index: 30;
  text-align: left;
}

.yk-fn-popup select#yk-fn-cc,
.yk-fn-popup .yk-fn-popup__cc {
  display: none !important;
}

.yk-fn-popup__cc {
  flex: 0 0 108px;
  width: 108px;
  height: 46px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 0 8px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.yk-fn-popup__cc:focus,
.yk-fn-popup__input:focus {
  outline: none;
  border-color: #111;
}

.yk-fn-popup__input {
  width: 100%;
  height: 46px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  margin: 0 0 14px;
  background: #fff;
  color: #111;
  box-sizing: border-box;
}

.yk-fn-popup__input--phone {
  margin: 0;
  min-width: 0;
}

.yk-fn-popup__input:focus {
  outline: none;
  border-color: #111;
}

.yk-fn-popup__legal {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
  color: #111;
  margin: 0 0 16px;
  cursor: pointer;
}

.yk-fn-popup__legal,
.yk-fn-popup__legal:hover,
.yk-fn-popup__legal:focus,
.yk-fn-popup__legal:focus-within,
.yk-fn-popup__legal span:hover,
.yk-fn-popup label:hover,
.yk-fn-popup label:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
}

.yk-fn-popup__legal input {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #111;
}

.yk-fn-popup__legal a,
.yk-fn-popup__legal a:hover,
.yk-fn-popup__legal a:focus {
  color: #111 !important;
  text-decoration: underline;
  background: transparent !important;
}

.yk-fn-popup__error {
  color: #b42318;
  font-size: 12px;
  margin: -6px 0 12px;
  text-align: left;
}

.yk-fn-popup .yk-fn-popup__save,
.yk-fn-popup .yk-fn-popup__save:hover,
.yk-fn-popup .yk-fn-popup__save:focus {
  width: 100%;
  height: 48px;
  border: 0 !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none !important;
}

.yk-fn-popup__save[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.yk-fn-popup__full {
  display: inline-block;
  margin-top: 14px;
  background: none !important;
  border: 0;
  padding: 0;
  color: #111 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none !important;
}

.yk-fn-popup__exists {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.yk-fn-popup .yk-fn-popup__codewrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 16px;
}

.yk-fn-popup .yk-fn-popup__code,
.yk-fn-popup .yk-fn-popup__code:hover,
.yk-fn-popup .yk-fn-popup__code:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  min-height: 48px;
  border: 1px dashed #111 !important;
  border-radius: 4px !important;
  background: #f7f7f7 !important;
  color: #111 !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: default;
}

.yk-fn-popup .yk-fn-popup__copy,
.yk-fn-popup .yk-fn-popup__copy:hover,
.yk-fn-popup .yk-fn-popup__copy:focus {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 92px;
  height: 48px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none !important;
}

.yk-fn-popup .yk-fn-popup__copy:hover {
  background: #333 !important;
}

.yk-fn-popup .yk-fn-popup__copy.is-copied {
  background: #0d8050 !important;
}

body.yk-fn-popup-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .yk-fn-popup {
    padding: 8px;
    align-items: flex-end;
  }

  .yk-fn-popup__dialog {
    padding: 0 18px 20px;
    max-height: min(80dvh, calc(100dvh - 72px));
    overflow: auto;
  }

  .yk-fn-popup__brand {
    margin: 0 -18px 18px;
    padding: 16px 42px 14px;
  }

  .yk-fn-popup__brand img {
    height: 36px;
  }

  .yk-fn-popup__title {
    font-size: 22px;
  }

  .yk-fn-popup .yk-fn-popup__code {
    font-size: 13px;
  }
}
