/* Keep the popup independent from theme and Contact Form 7 spacing. */
body .blockUI.blockMsgAwooc.blockPage {
  width: calc(100vw - 32px) !important;
  max-width: 740px !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  border-radius: 16px !important;
}
#awooc-form-custom-order .awooc-popup-inner { padding: 28px !important; }
#awooc-form-custom-order .awooc-popup-title {
  margin: 0 0 22px !important; padding: 0 !important;
  font-size: 24px !important; line-height: 1.25 !important;
}
#awooc-form-custom-order .awooc-row {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start; gap: 24px; margin: 0 !important;
}
#awooc-form-custom-order .awooc-col {
  width: 100% !important; max-width: none !important; min-width: 0;
  padding: 0 !important; margin: 0 !important;
}
#awooc-form-custom-order .awooc-popup-image { width: 100% !important; margin: 0 !important; }
#awooc-form-custom-order .awooc-popup-form,
#awooc-form-custom-order .wpcf7-form { width: 100%; margin: 0 !important; padding: 0 !important; }
#awooc-form-custom-order img.awooc-form-custom-order-img {
  display: block; width: 100% !important; height: auto !important;
  aspect-ratio: 1; object-fit: cover; border-radius: 10px;
}
#awooc-form-custom-order .mvb-contact-form {
  display: grid; gap: 12px; text-align: left; line-height: 1.4;
}
#awooc-form-custom-order .mvb-contact-form p {
  margin: 0 !important; padding: 0 !important; position: relative; line-height: 1.4;
}
#awooc-form-custom-order .mvb-contact-form br { display: none; }
#awooc-form-custom-order .mvb-contact-form .wpcf7-form-control-wrap { display: block; margin: 0 !important; }
#awooc-form-custom-order .mvb-contact-form input[type="text"],
#awooc-form-custom-order .mvb-contact-form input[type="tel"],
#awooc-form-custom-order .mvb-contact-form textarea {
  display: block !important; width: 100% !important; box-sizing: border-box;
  margin: 0 !important; padding: 10px 12px !important;
  font-size: 16px !important; line-height: 22px !important;
  border: 1px solid #e4deea; border-radius: 6px;
}
#awooc-form-custom-order .mvb-contact-form input[type="text"],
#awooc-form-custom-order .mvb-contact-form input[type="tel"] { height: 44px !important; }
#awooc-form-custom-order .mvb-contact-form textarea {
  height: 88px !important; min-height: 88px !important; max-height: 88px !important;
  resize: none !important; overflow-y: auto !important;
}
#awooc-form-custom-order .mvb-contact-form .mvb-preference {
  display: block; border: 0 !important; padding: 0 !important; margin: 0 !important;
  height: auto !important; min-height: 0 !important; min-width: 0;
}
#awooc-form-custom-order .mvb-preference legend {
  display: block; float: none; width: 100%; margin: 0 0 8px !important; padding: 0 !important;
  font-size: 14px; font-weight: 600; line-height: 20px;
}
#awooc-form-custom-order .mvb-preference .wpcf7-radio {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
#awooc-form-custom-order .mvb-preference .wpcf7-list-item {
  display: block; margin: 0 !important; padding: 0 !important; line-height: 20px !important;
}
#awooc-form-custom-order .mvb-preference label {
  display: flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 0 !important;
  font-size: 14px !important; line-height: 20px !important; white-space: nowrap; cursor: pointer;
}
#awooc-form-custom-order .mvb-preference input[type="radio"] {
  display: block; flex: 0 0 16px; width: 16px !important; height: 16px !important;
  padding: 0 !important; margin: 0 !important; accent-color: #63317b;
}
#awooc-form-custom-order .mvb-messenger[hidden] { display: none !important; }
#awooc-form-custom-order .mvb-contact-label {
  display: block; margin-bottom: 6px; font-size: 14px; line-height: 20px;
}
#awooc-form-custom-order .mvb-contact-help {
  display: block; margin-top: 5px; font-size: 12px; line-height: 17px; color: #666;
}
#awooc-form-custom-order .mvb-contact-form .wpcf7-submit {
  display: block !important; width: 100%; height: 46px; margin: 0 !important;
  padding: 10px 16px !important; font-size: 16px; line-height: 24px;
}
#awooc-form-custom-order .mvb-contact-form .wpcf7-spinner {
  position: absolute; top: 50%; right: 12px; margin: -12px 0 0; pointer-events: none;
}
#awooc-form-custom-order .wpcf7-response-output:empty { display: none; }
@media (max-width: 640px) {
  #awooc-form-custom-order .awooc-popup-inner { padding: 24px 20px !important; }
  #awooc-form-custom-order .awooc-popup-title { font-size: 21px !important; margin-bottom: 18px !important; }
  #awooc-form-custom-order .awooc-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #awooc-form-custom-order .columns-left { display: none; }
  #awooc-form-custom-order .mvb-preference .wpcf7-radio { gap: 8px 12px; }
}
