.tms-order-popup[hidden] { display: none !important; }
.tms-order-popup,
.tms-order-popup *,
.tms-order-popup *::before,
.tms-order-popup *::after { box-sizing: border-box; }

.tms-order-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tms-space-5);
  overflow-y: auto;
  font-family: var(--tms-font-family);
  color: var(--tms-color-black);
  isolation: isolate;
}
.tms-order-popup__backdrop {
  position: fixed;
  inset: 0;
  background: var(--tms-color-popup-backdrop);
}
.tms-order-popup__dialog {
  position: relative;
  width: var(--tms-popup-width);
  max-width: 100%;
  margin: auto;
  background: var(--tms-color-white);
  outline: none;
}
.tms-order-popup__content { padding: var(--tms-space-10) 45px; }
.tms-order-popup__header { margin: 0 0 var(--tms-space-6); text-align: center; }
.tms-order-popup__header h2 {
  margin: 0 0 11px;
  color: var(--tms-color-black);
  font: var(--tms-font-weight-semibold) 36px/var(--tms-line-height-heading) var(--tms-font-family);
}
.tms-order-popup__header p {
  margin: 0;
  color: var(--tms-color-black);
  font: var(--tms-font-weight-light) var(--tms-font-size-md)/var(--tms-line-height-body) var(--tms-font-family);
}
.tms-order-popup__form { margin: 0; }
.tms-order-popup__field { display: block; margin: 0 0 25px; }
.tms-order-popup__field input {
  display: block;
  width: 100%;
  height: var(--tms-control-height);
  margin: 0;
  padding: 0 var(--tms-space-5);
  border: 1px solid var(--tms-color-field-border);
  border-radius: var(--tms-radius-control);
  background: var(--tms-color-white);
  color: var(--tms-color-black);
  font: var(--tms-font-weight-regular) var(--tms-font-size-md)/1.33 var(--tms-font-family);
  box-shadow: none;
  appearance: none;
}
.tms-order-popup__field input::placeholder { color: var(--tms-color-black); opacity: .5; }
.tms-order-popup__phone-control { position: relative; display: block; }
.tms-order-popup__phone-control input { padding-left: 58px; }
.tms-order-popup__flag {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--tms-space-5);
  width: 25px;
  height: 18px;
  overflow: hidden;
  font: 18px/18px "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  transform: translateY(-50%);
  pointer-events: none;
}
.tms-order-popup__contacts {
  display: inline-block;
  margin: 0;
  color: var(--tms-color-black);
  font: var(--tms-font-weight-bold) var(--tms-font-size-md)/normal var(--tms-font-family);
  text-decoration: underline;
}
.tms-order-popup__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tms-control-height);
  margin: 25px 0 0;
  padding: 18.8px 60px;
  border: 0;
  border-radius: var(--tms-radius-control);
  background: var(--tms-color-brand);
  color: var(--tms-color-white);
  font: var(--tms-font-weight-semibold) var(--tms-font-size-md)/1.4 var(--tms-font-family);
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.tms-order-popup__submit:hover,
.tms-order-popup__submit:focus-visible { background: var(--tms-color-brand-hover); }
.tms-order-popup__submit:disabled { cursor: wait; opacity: .7; }
.tms-order-popup__consent {
  margin: var(--tms-space-5) 0 0;
  color: var(--tms-color-black);
  font: var(--tms-font-weight-light) 15px/var(--tms-line-height-body) var(--tms-font-family);
  text-align: center;
}
.tms-order-popup__consent a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.tms-order-popup__close {
  position: fixed;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--tms-color-white);
  cursor: pointer;
}
.tms-order-popup__close svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.tms-order-popup__close:focus-visible,
.tms-order-popup__field input:focus-visible,
.tms-order-popup__contacts:focus-visible,
.tms-order-popup__consent a:focus-visible,
.tms-order-popup__submit:focus-visible { outline: 2px solid var(--tms-color-brand); outline-offset: 3px; }
.tms-order-popup__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.tms-order-popup-open { overflow: hidden !important; }

@media (max-width: 560px) {
  .tms-order-popup { display: block; padding: 0; background: var(--tms-color-white); }
  .tms-order-popup::before {
    content: "";
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: var(--tms-control-height-mobile);
    background: var(--tms-color-black);
  }
  .tms-order-popup__backdrop { display: none; }
  .tms-order-popup__dialog { width: 100%; min-height: 100dvh; padding-top: var(--tms-control-height-mobile); }
  .tms-order-popup__content { padding: var(--tms-space-5); }
  .tms-order-popup__header { margin-bottom: 14px; }
  .tms-order-popup__header h2 { margin-bottom: 6px; font-size: 28px; line-height: 1.23; }
  .tms-order-popup__header p { font-size: 12px; line-height: 1.45; }
  .tms-order-popup__field input {
    height: var(--tms-control-height-mobile);
    padding-right: 14px;
    padding-left: 14px;
  }
  .tms-order-popup__phone-control input { padding-left: 58px; }
  .tms-order-popup__flag { left: 14px; }
  .tms-order-popup__submit { min-height: var(--tms-control-height-mobile); padding: 14px var(--tms-space-7); }
  .tms-order-popup__consent { font-size: 12px; line-height: 1.45; }
  .tms-order-popup__close {
    top: 7px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
}
