dialog.cs-order {
  width: min(520px, calc(100vw - 28px));
  max-height: min(92dvh, 880px);
  margin: auto;
  padding: clamp(20px, 3.2vw, 36px);
  border: 0;
  border-radius: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 28px 90px #0f172a30;
  background: var(--paper, #fff);
  color: var(--ink, #16202d);
  text-align: left;
}
.cs-order::backdrop {background: rgb(17 25 36 / .6); backdrop-filter: blur(3px);}
.cs-order [hidden] {display: none !important;}
.cs-order .cs-order__head {display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px;}
.cs-order .cs-order__head h2 {margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600;}
.cs-order .cs-order__head h2:focus {outline: none;}
.popup-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #51486b;
  cursor: pointer;
}
.popup-close::before, .popup-close::after {
  content: '';
  grid-area: 1 / 1;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.popup-close::after {transform: rotate(-45deg);}
.popup-close:hover {color: var(--brand, #3d2d7d);}
.popup-close:focus-visible {outline: 2px solid currentColor; outline-offset: -3px;}
.cs-order .cs-order__product {display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 15px; padding: 14px 0; margin-bottom: 20px; border-block: 1px solid #d5d9de;}
.cs-order .cs-order__product strong {font-size: 17px; overflow-wrap: anywhere;}
.cs-order .cs-order__price {font-size: 16px; white-space: nowrap;}
.cs-order .cs-order__price small {font-size: 13px; color: #525960;}
.cs-order form {margin: 0; padding: 0;}
.cs-order .cs-order__buyer {border: none; margin: 0 0 16px; padding: 0; min-width: 0;}
.cs-order .cs-order__buyer legend, .cs-order .cs-order__field {font-size: 14px; font-weight: 600; line-height: 1.45;}
.cs-order .cs-order__buyer legend {margin-bottom: 6px; padding: 0;}
.cs-order .cs-order__switch {display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: #e9edf0; border-radius: 12px; padding: 4px;}
.cs-order .cs-order__switch label {position: relative; cursor: pointer; min-width: 0;}
.cs-order .cs-order__switch input {position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0;}
.cs-order .cs-order__switch span {display: grid; place-items: center; min-height: 38px; padding: 6px; border-radius: 8px; text-align: center; font-size: 14px; font-weight: 600;}
.cs-order .cs-order__switch input:checked + span {background: #fff; color: var(--ink); box-shadow: 0 1px 5px #17242c18;}
.cs-order .cs-order__switch input:focus-visible + span {outline: 2px solid currentColor; outline-offset: -2px;}
.cs-order .cs-order__field {display: grid; gap: 5px; align-content: start; min-width: 0; margin: 0 0 14px;}
.cs-order .cs-order__pair {display: grid; gap: 12px; grid-template-columns: 1fr 1fr;}
.cs-order .cs-order__field input {display: block; min-width: 0; width: 100%; padding: 11px 12px; min-height: 44px; border: 1px solid #b6bec6; border-radius: 8px; background: #fff; color: #17212b; font: inherit; font-size: 16px; font-weight: 400;}
.cs-order .cs-order__field input::placeholder {color: #67717a;}
.cs-order input:focus-visible, .cs-order a:focus-visible, .cs-order button:focus-visible {outline: 2px solid var(--ink); outline-offset: 3px;}
.cs-order .cs-order__field input[aria-invalid=true] {border-color: #a02b26;}
.cs-order .cs-order__consents {display: grid; gap: 10px; margin: 4px 0 7px;}
.cs-order .cs-order__check {display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; cursor: pointer; color: #39434c;}
.cs-order .cs-order__check input {flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink);}
.cs-order .cs-order__check a, .cs-order .cs-order__policy {color: inherit; text-decoration: underline; text-underline-offset: 3px;}
.cs-order .cs-order__policy {display: inline-block; font-size: 12px; color: #505961;}
.cs-order .cs-order__note {margin: 13px 0; color: #535c65; font-size: 12px; line-height: 1.5;}
.cs-order .cs-order__submit {display: block; width: 100%; min-height: 46px; border-radius: 999px; padding: 11px 18px; background: var(--ink); color: #fff; border: 0; text-align: center; font-size: 15px; font-weight: 600; cursor: pointer;}
.cs-order .cs-order__submit:hover {filter: brightness(1.15);}
.cs-order .cs-order__error {display: block; margin-top: 2px; color: #a02b26; font-size: 12px; font-weight: 500;}
.cs-order .cs-order__result p {font-size: 16px; margin: 0 0 20px; line-height: 1.6;}
@media (max-width: 480px) {.cs-order .cs-order__pair {display: block;} .cs-order .cs-order__head {margin-bottom: 17px;}}
