/* MyWoolbridge V53: recipient form layout from OpenPencil 0:44228-0:44249.
   Only the existing order-data form; no validation, payment or delivery logic. */
body.wb-order-page [data-wb-order-form]:has(> #wbOrderDataTitle) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 30px !important;
  border-radius: 16px !important;
  background: #fbfbfb !important;
  box-shadow: none !important;
}
body.wb-order-page [data-wb-order-form] > #wbOrderDataTitle {
  margin: 0 0 16px !important;
  color: #1b1b1b;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 30px !important;
  letter-spacing: .08px;
}
body.wb-order-page .wb-order-customer-form.wb-order-form-card {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0 !important;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  padding: 30px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.wb-order-page .wb-order-customer-form > h3 {
  margin: 0 0 20px !important;
  color: #000;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 30px !important;
}
body.wb-order-page .wb-order-customer-form .wb-customer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
body.wb-order-page .wb-order-customer-form .wb-customer-form > .wb-order-field,
body.wb-order-page .wb-order-customer-form > .wb-order-field--comment {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  margin: 0;
}
body.wb-order-page .wb-order-customer-form .wb-order-control {
  box-sizing: border-box;
  width: 100%;
  min-height: 62px !important;
  height: 62px;
  padding: 16px !important;
  border: 1.5px solid #b3b3b3 !important;
  border-radius: 16px !important;
  background: #fff;
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
body.wb-order-page .wb-order-customer-form .wb-order-control::placeholder {
  color: #b3b3b3;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
}
body.wb-order-page .wb-order-customer-form .wb-order-control:focus {
  border-color: #ef84b5 !important;
  outline-offset: 2px;
}
body.wb-order-page .wb-order-customer-form .wb-order-field.is-invalid .wb-order-control {
  border-color: #ef3333 !important;
}
body.wb-order-page .wb-order-customer-form .wb-order-field > label {
  z-index: 3;
  top: -10px;
  left: 12px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 8px;
  background: #fff;
  color: #8d848d;
  line-height: 20px;
}
body.wb-order-page .wb-order-customer-form .wb-order-field--phone .wb-order-control,
body.wb-order-page .wb-order-customer-form .wb-order-field--phone .iti__tel-input.wb-order-control {
  padding-left: 54px !important;
}
body.wb-order-page .wb-order-customer-form [data-wb-order-date-input] {
  padding-right: 54px !important;
}
body.wb-order-page .wb-order-customer-form .wb-order-checkbox {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 24px;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: #535353;
}
body.wb-order-page .wb-order-customer-form .wb-order-checkbox > span {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}
body.wb-order-page .wb-order-customer-form .wb-order-checkbox > b {
  min-width: 0;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 18px;
  overflow-wrap: anywhere;
}
body.wb-order-page .wb-order-customer-form > .wb-order-field--comment {
  width: 100% !important;
  margin-top: 14px !important;
}
body.wb-order-page .wb-order-customer-form textarea.wb-order-control {
  height: 102px;
  min-height: 102px !important;
  max-height: none;
  resize: vertical;
}
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 28px 0 0 !important;
}
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-back,
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-next {
  box-sizing: border-box;
  flex: 0 1 190px !important;
  width: 190px;
  min-width: 0 !important;
  max-width: 190px;
  min-height: 52px !important;
  height: 52px;
  margin: 0 !important;
  border-radius: 16px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 24px;
}
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-back {
  gap: 10px;
  border: 1.5px solid #ffc7e0 !important;
  background: #fff !important;
  color: #f397c1 !important;
  font-size: 28px !important;
}
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-back::after {
  content: "Назад";
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-next {
  flex: 0 1 326px !important;
  width: 326px;
  max-width: 326px;
}
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-next:disabled,
body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-next.is-disabled {
  border-color: #f4f4f4 !important;
  background: #f4f4f4 !important;
  color: #b3b3b3 !important;
  opacity: 1 !important;
}
@media (max-width: 991.98px) {
  body.wb-order-page .wb-order-main.wb-mobile-tabs-ready [data-wb-order-form]:has(> #wbOrderDataTitle) {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.wb-order-page .wb-order-main.wb-mobile-tabs-ready .wb-order-customer-form.wb-order-form-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }
  body.wb-order-page .wb-order-customer-form > h3 {
    margin-bottom: 16px !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
  body.wb-order-page .wb-order-customer-form .wb-customer-form {
    gap: 18px !important;
  }
  body.wb-order-page .wb-order-customer-form .wb-order-field > label {
    top: -8px;
  }
  body.wb-order-page .wb-order-customer-form > .wb-order-field--comment {
    width: 100% !important;
  }
  body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-back {
    flex: 0 0 58px !important;
    width: 58px;
    max-width: 58px;
  }
  body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-back::after {
    content: none;
  }
  body.wb-order-page .wb-order-customer-form > .wb-order-step-actions > .wb-order-next {
    flex: 1 1 auto !important;
    width: auto;
    max-width: none;
  }
}
