.pmoco-button {
  margin-top: 10px;
}

.pmoco-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.pmoco-modal.is-open {
  display: block;
}

.pmoco-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.pmoco-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: #fff;
  border-radius: 16px;
  padding: 56px 24px 24px;
  overflow: auto;
  box-sizing: border-box;
}

.pmoco-modal .pmoco-modal__dialog > button.pmoco-modal__close,
.pmoco-modal .pmoco-modal__close {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 5 !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0,0,0,.04) !important;
  color: #222 !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 32px !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  display: block !important;
  opacity: 1 !important;
}

.pmoco-modal .pmoco-modal__close:hover,
.pmoco-modal .pmoco-modal__close:focus {
  background: rgba(0,0,0,.08) !important;
  color: #111 !important;
  outline: none !important;
}

.pmoco-modal__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.pmoco-modal__product {
  margin-bottom: 18px;
  color: #777;
  font-weight: 600;
  line-height: 1.4;
}

.pmoco-field {
  display: block;
  margin-bottom: 16px;
}

.pmoco-field > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.pmoco-field input,
.pmoco-field textarea {
  width: 100%;
  box-sizing: border-box;
}

.pmoco-submit {
  width: 100%;
  margin-top: 4px;
}

.pmoco-message {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.45;
}

.pmoco-message.is-error {
  color: #c62828;
}

.pmoco-message.is-success {
  color: #238c3c;
  font-weight: 500;
}

.pmoco-powered {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #8b8b8b;
}

.pmoco-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.pmoco-modal-open {
  overflow: hidden;
}

.pmoco-modal.pmoco-modal--success .pmoco-modal__title,
.pmoco-modal.pmoco-modal--success .pmoco-modal__product,
.pmoco-modal.pmoco-modal--success .pmoco-field,
.pmoco-modal.pmoco-modal--success .pmoco-submit {
  display: none;
}

.pmoco-modal.pmoco-modal--success .pmoco-message {
  margin-top: 4px;
}

.pmoco-modal.pmoco-modal--success .pmoco-modal__dialog {
  padding-top: 56px !important;
}

.pmoco-modal.pmoco-modal--success .pmoco-modal__close {
  top: 14px !important;
  left: 14px !important;
}


.pmoco-modal .pmoco-submit,
.pmoco-modal .pmoco-submit.button,
.pmoco-modal .pmoco-submit.button.alt {
  background: #1f8f3a !important;
  border-color: #1f8f3a !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.pmoco-modal .pmoco-submit:hover,
.pmoco-modal .pmoco-submit:focus,
.pmoco-modal .pmoco-submit.button:hover,
.pmoco-modal .pmoco-submit.button:focus,
.pmoco-modal .pmoco-submit.button.alt:hover,
.pmoco-modal .pmoco-submit.button.alt:focus {
  background: #187832 !important;
  border-color: #187832 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.pmoco-modal .pmoco-submit:disabled,
.pmoco-modal .pmoco-submit.loading {
  background: #7ab88a !important;
  border-color: #7ab88a !important;
  color: #fff !important;
  opacity: .85 !important;
}
