.vmcpf-product-fields {
  margin: 20px 0;
  padding: 20px;
  border: 2px solid #0067ed !important;
  border-radius: 10px;
  background: #fafafa;
}

.vmcpf-group-title {
  display: none;
}

.vmcpf-field {
  margin-bottom: 16px;
}

.vmcpf-field:last-child {
  margin-bottom: 0;
}

.vmcpf-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.vmcpf-product-fields .vmcpf-field input,
.vmcpf-product-fields .vmcpf-field textarea,
.vmcpf-product-fields .vmcpf-field select,
.vmcpf-modal .vmcpf-field input,
.vmcpf-modal .vmcpf-field textarea,
.vmcpf-modal .vmcpf-field select,
.single-product .vmcpf-product-fields .vmcpf-field input,
.single-product .vmcpf-product-fields .vmcpf-field textarea,
.single-product .vmcpf-product-fields .vmcpf-field select {
  width: 100%;
  border: 1.5px solid #0067ed !important;
  border-radius: 6px !important;
  -webkit-border-radius: 6px !important;
  -moz-border-radius: 6px !important;
  padding: 12px 14px;
  min-height: 46px;
  box-sizing: border-box;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.vmcpf-product-fields .vmcpf-field textarea,
.vmcpf-modal .vmcpf-field textarea,
.single-product .vmcpf-product-fields .vmcpf-field textarea {
  min-height: 90px;
}

.vmcpf-product-fields .vmcpf-field input:focus,
.vmcpf-product-fields .vmcpf-field textarea:focus,
.vmcpf-product-fields .vmcpf-field select:focus,
.vmcpf-modal .vmcpf-field input:focus,
.vmcpf-modal .vmcpf-field textarea:focus,
.vmcpf-modal .vmcpf-field select:focus,
.single-product .vmcpf-product-fields .vmcpf-field input:focus,
.single-product .vmcpf-product-fields .vmcpf-field textarea:focus,
.single-product .vmcpf-product-fields .vmcpf-field select:focus {
  outline: none;
  border-color: #0067ed !important;
  box-shadow: 0 0 0 1px rgba(0, 103, 237, 0.18);
}

.vmcpf-field small {
  display: block;
  margin-top: 6px;
  color: #666;
}

.vmcpf-required {
  color: #e11900;
}

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

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

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

.vmcpf-modal__dialog {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 520px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.vmcpf-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.vmcpf-modal__dialog h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.vmcpf-modal__notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: #143a73;
}

.vmcpf-modal__actions {
  margin-top: 20px;
}

.vmcpf-modal__confirm {
  min-width: 160px;
  min-height: 44px;
  border-radius: 8px;
}

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


form.cart.vmcpf-is-modal-active > *:not(#vmcpf-required-modal) {
  visibility: hidden !important;
}

form.cart.vmcpf-is-modal-active #vmcpf-required-modal,
form.cart.vmcpf-is-modal-active #vmcpf-required-modal * {
  visibility: visible !important;
}

.vmcpf-modal__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  background: #0067ed !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.vmcpf-modal__close:hover,
.vmcpf-modal__close:focus {
  background: #0057ca !important;
  color: #fff !important;
}

.vmcpf-modal__confirm,
.vmcpf-modal__actions .button,
.vmcpf-modal__actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 170px !important;
  height: 46px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #0067ed !important;
  color: #fff !important;
  box-shadow: none !important;
  text-transform: none !important;
  font-weight: 700 !important;
}

.vmcpf-modal__confirm:hover,
.vmcpf-modal__confirm:focus {
  background: #0057ca !important;
  color: #fff !important;
}
