/* ESIA-001: isolated order dialog styles, loaded after the site stylesheet. */
.order-call { margin: 14px 0; }
.product-sizes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.product-size { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; min-height: 48px; padding: 6px 10px; border: 1px solid #d9d4d6; border-radius: 8px; background: #fff; color: #302c30; font: 600 14px/1 Arial, sans-serif; }
.product-size strong, .order-modal .order-size strong { font-size: 15px; line-height: 1.1; }
.product-size small, .order-modal .order-size small { margin-top: 3px; color: #777078; font: 400 11px/1 Arial, sans-serif; }
.order-call-btn { border: 0; border-radius: 6px; padding: 12px 28px; background: #ed1c24; color: #fff; font: 700 16px/1.4 Arial, sans-serif; cursor: pointer; }
.order-call-btn:hover { background: #c9141c; }
.order-modal[hidden] { display: none !important; }
.order-modal.is-open { display: flex; }
.order-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; overflow: hidden; font-family: Arial, sans-serif; line-height: 1.4; }
.order-modal *, .order-modal *::before, .order-modal *::after { box-sizing: border-box; }
.order-modal-overlay { position: absolute; inset: 0; background: rgba(20, 16, 20, .62); }
.order-modal .order-modal-dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 28px; border-radius: 16px; background: #fff; color: #252326; box-shadow: 0 20px 70px rgba(0,0,0,.24); }
.order-modal .order-modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f4f3f3; color: #676167; font: 400 25px/1 Arial, sans-serif; cursor: pointer; }
.order-modal .order-modal-close:hover { background: #ece9e9; color: #252326; }
.order-modal .order-modal-header { margin: 0 0 22px; padding: 0 20px 20px 0; border-bottom: 1px solid #eeebeb; }
.order-modal .order-eyebrow { display: block; margin-bottom: 8px; color: #a11920; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.order-modal #order-modal-title { margin: 0 0 6px; color: #252326; font: 700 25px/1.2 Arial, sans-serif; text-transform: none; overflow-wrap: anywhere; }
.order-modal .order-modal-subtitle { margin: 0; color: #716b71; font: 400 14px/1.4 Arial, sans-serif; }
.order-modal .order-form { margin: 0; padding: 0; }
.order-modal .order-form-row { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.order-modal .order-form-row > label, .order-modal .order-quantity-label > label, .order-modal legend { display: block; float: none; width: auto; margin: 0 0 7px; padding: 0; background: transparent; color: #302c30; font: 600 14px/1.4 Arial, sans-serif; }
.order-modal .order-label-hint { margin-left: 6px; color: #716b71; font-size: 12px; font-weight: 400; }
.order-modal input[type="text"], .order-modal input[type="tel"], .order-modal input[type="number"] { display: block; width: 100%; height: 46px; margin: 0; padding: 11px 13px; border: 1px solid #d9d4d6; border-radius: 7px; background: #fff; color: #252326; box-shadow: none; font: 400 16px/1.4 Arial, sans-serif; transition: border-color .15s; }
.order-modal input::placeholder { color: #918a91; }
.order-modal input:focus { outline: 2px solid #ed1c2433; outline-offset: 1px; border-color: #ba1c25; }
.order-modal .form-hint { display: block; margin: 6px 0 0; color: #716b71; font: 400 12px/1.45 Arial, sans-serif; }
.order-modal .form-error { display: block; min-height: 0; margin: 5px 0 0; padding: 0; background: transparent; color: #b21720; font: 400 12px/1.4 Arial, sans-serif; }
.order-modal .form-error:empty { display: none; }
.order-modal [aria-invalid="true"] { border-color: #b21720; }
.order-modal .order-sizes { display: flex; gap: 7px; overflow-x: auto; padding: 3px 2px 5px; }
.order-modal .order-sizes .order-size { position: relative; flex: 0 0 auto; display: block; margin: 0; font-weight: 600; cursor: pointer; }
.order-modal .order-size input { display: block; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.order-modal .order-size span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; min-height: 48px; padding: 6px 10px; border: 1px solid #d9d4d6; border-radius: 8px; color: #302c30; background: #fff; font: 600 14px/1 Arial, sans-serif; }
.order-modal .order-size input:checked + span { background: #fff0f1; border-color: #c61721; color: #ad131d; box-shadow: inset 0 0 0 1px #c61721; }
.order-modal .order-size input:focus-visible + span { outline: 2px solid #a11920; outline-offset: 2px; }
.order-modal .order-quantity-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 0 14px; padding: 14px; border: 1px solid #eeebeb; border-radius: 9px; background: #faf9f9; }
.order-modal .order-quantity-label > label { margin-bottom: 0; }
.order-modal .order-quantity-label .form-hint { margin-top: 3px; }
.order-modal .order-quantity-input { display: flex; align-items: center; gap: 7px; color: #716b71; font-size: 12px; }
.order-modal .order-quantity-input input { min-width: 0; padding: 10px 7px; text-align: center; }
.order-modal .error_part { grid-column: 1 / -1; }
.order-modal .order-submit { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 48px; margin: 0; padding: 12px 16px; border: 0; border-radius: 7px; background: #ed1c24; color: #fff; font: 700 16px/1.4 Arial, sans-serif; text-transform: none; cursor: pointer; }
.order-modal .order-submit:hover { background: #c9141c; }
.order-modal .order-submit:disabled { opacity: .65; cursor: wait; }
.order-modal button:focus-visible { outline: 2px solid #97121a; outline-offset: 3px; }
.order-modal .order-form-status { margin: 0 0 16px; padding: 12px; border-radius: 7px; color: #97202a; background: #fff0f1; font: 400 14px/1.5 Arial, sans-serif; }
.order-modal .order-form-status[data-success="true"] { color: #21633b; background: #edf7ef; }
.order-modal .order-form-status[hidden] { display: none; }
@media (max-width: 520px) {
  .order-modal { padding: 12px; }
  .order-modal .order-modal-dialog { padding: 24px 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .order-modal #order-modal-title { font-size: 23px; }
  .order-modal .order-modal-header { margin-bottom: 18px; padding-bottom: 16px; }
  .order-modal .order-form-row { margin-bottom: 16px; }
}
@media (max-width: 359px) {
  .order-modal .order-modal-dialog { padding: 24px 16px; }
  .order-modal .order-quantity-row { grid-template-columns: minmax(0, 1fr) 96px; padding: 10px; gap: 0 8px; }
}
