.buyer-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  background: #fff;
  color: #333;
  box-shadow: 0 20px 70px #1727422e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  overflow: auto;
  overscroll-behavior: contain;
}
.buyer-dialog::backdrop { background: #17274270; }
.buyer-dialog *, .buyer-dialog *::before, .buyer-dialog *::after { box-sizing: border-box; }
.buyer-dialog [hidden] { display: none !important; }
.buyer-dialog p, .buyer-dialog h2 { margin: 0; }
.buyer-dialog h2 { color: #333; font-size: 25px; font-weight: 650; letter-spacing: -.6px; line-height: 1.2; }
.buyer-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #666; background: #f5f5f5; font: 27px/1 sans-serif; cursor: pointer; }
.buyer-close:hover { background: #ebebeb; color: #333; }
.buyer-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 21px; background: #edf4ff; color: #3483fa; }
.buyer-dialog .buyer-progress { color: #777; font-size: 10px; font-weight: 700; letter-spacing: .12em; margin-bottom: 9px; }
.buyer-dialog .buyer-description { color: #666; font-size: 14px; line-height: 1.55; margin-top: 10px; margin-bottom: 26px; }
.buyer-form { display: grid; gap: 17px; margin: 0; }
.buyer-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buyer-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #333; font-size: 13px; font-weight: 500; line-height: 1.35; }
.buyer-field input { display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 12px; border: 1px solid #c8c8c8; border-radius: 7px; outline: 0; background: #fff; color: #333; box-shadow: none; font: 400 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; transition: border-color .15s, box-shadow .15s; }
.buyer-field input::placeholder { color: #969696; opacity: 1; }
.buyer-field input:focus { border-color: #3483fa; box-shadow: 0 0 0 2px #3483fa26; }
.buyer-field input[aria-invalid="true"] { border-color: #b3261e; }
.buyer-field input:disabled { background: #f7f7f7; color: #777; }
.buyer-phone { display: flex; align-items: stretch; width: 100%; border: 1px solid #c8c8c8; border-radius: 7px; background: #fff; }
.buyer-phone:focus-within { border-color: #3483fa; box-shadow: 0 0 0 2px #3483fa26; }
.buyer-phone > span { display: flex; align-items: center; flex: 0 0 auto; padding-left: 13px; color: #666; font-size: 15px; }
.buyer-phone input { border: 0; background: transparent; padding-left: 10px; }
.buyer-phone input:focus { box-shadow: none; }
.buyer-dialog .buyer-help { color: #777; font-size: 12px; line-height: 1.5; margin-top: -9px; }
.buyer-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; padding: 13px 16px; margin: 3px 0 0; border: 1px solid transparent; border-radius: 7px; background: #3483fa; color: #fff; font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: center; cursor: pointer; transition: background .15s; }
.buyer-primary:hover:not(:disabled) { background: #2968c8; }
.buyer-primary:disabled { background: #ebebeb; color: #999; cursor: default; }
.buyer-dialog .buyer-fineprint { color: #888; text-align: center; font-size: 11px; line-height: 1.5; }
.buyer-dialog .buyer-destination { color: #555; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.buyer-dialog .buyer-demo { padding: 13px; border: 1px solid #bfd7ff; border-radius: 8px; background: #f2f7ff; color: #285893; font-size: 13px; line-height: 1.55; }
.buyer-field .buyer-code-input { min-height: 58px; padding: 11px; font-size: 25px; font-weight: 600; letter-spacing: .38em; text-align: center; font-variant-numeric: tabular-nums; }
.buyer-code-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 14px; }
.buyer-text-button { padding: 10px 0; min-height: 40px; border: 0; background: transparent; color: #2968c8; font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.buyer-text-button:disabled { color: #8a8a8a; cursor: default; }
.buyer-dialog .buyer-error { margin-top: 18px; padding: 12px; border: 1px solid #f0cbc8; border-radius: 7px; background: #fff5f4; color: #a02b23; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.buyer-account { display: grid; gap: 13px; }
.buyer-dialog .buyer-account-name { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.buyer-dialog .buyer-account-phone { color: #777; font-size: 15px; margin-bottom: 6px; }
.buyer-dialog button:focus-visible { outline: 3px solid #3483fa70; outline-offset: 3px; }
.buyer-dialog-open { overflow: hidden; }
.buyer-checkout-contact { display: flex; flex-direction: column; gap: 6px; padding: 15px; border: 1px solid #ebebeb; border-radius: 8px; background: #fafafa; color: #333; }
.buyer-checkout-contact strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.buyer-checkout-contact span { font-size: 14px; }
.buyer-checkout-contact small { color: #777; font-size: 12px; line-height: 1.45; }
@media (max-width: 450px) {
  .buyer-dialog { padding: 29px 23px 25px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .buyer-dialog h2 { font-size: 24px; }
  .buyer-name-grid { gap: 10px; }
  .buyer-mark { margin-bottom: 19px; }
  .buyer-dialog .buyer-description { margin-bottom: 23px; }
  .buyer-dialog .buyer-fineprint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .buyer-dialog *, .buyer-dialog *::before, .buyer-dialog *::after { transition: none !important; }
}

.buyer-delete-link{color:#a0382b!important;margin-top:8px}.buyer-delete-confirm{margin-top:18px;border-top:1px solid #e6d7d4;padding-top:18px;text-align:left}.buyer-delete-confirm h3{font-size:17px;margin:0 0 12px}.buyer-delete-confirm p{font-size:12px;line-height:1.65;color:#666;margin:0 0 12px}.buyer-delete-consent{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.6;margin:16px 0}.buyer-delete-consent input{width:auto!important;min-width:15px;margin-top:4px;accent-color:#a0382b}.buyer-delete-button{background:#a0382b!important}.buyer-delete-confirm .buyer-fineprint{display:block;margin-top:12px}
