.wpoc-open-button,
.wpoc-submit {
  border: 0;
  border-radius: 4px;
  background: #1f2937;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.wpoc-open-button:hover,
.wpoc-submit:hover {
  background: #111827;
}

.wpoc-lock {
  overflow: hidden;
}

.wpoc-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 9999;
}

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

.wpoc-modal-backdrop {
  background: rgba(17, 24, 39, 0.64);
  inset: 0;
  position: absolute;
}

.wpoc-modal-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  left: 50%;
  max-height: calc(100vh - 32px);
  max-width: calc(100vw - 32px);
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wpoc-modal-close {
  align-items: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  z-index: 2;
}

.wpoc-modal-body,
.wpoc-page {
  padding: 28px;
}

.wpoc-form-header h2 {
  font-size: 24px;
  margin: 0 44px 8px 0;
}

.wpoc-form-header p {
  color: #4b5563;
  margin: 0 0 18px;
}

.wpoc-product-context {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 12px;
}

.wpoc-product-context span {
  color: #6b7280;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.wpoc-field {
  display: block;
  margin-bottom: 14px;
}

.wpoc-form {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpoc-form > * {
  grid-column: 1 / -1;
}

.wpoc-width-half {
  grid-column: span 1;
}

.wpoc-width-third {
  grid-column: span 1;
}

.wpoc-field span {
  color: #1f2937;
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.wpoc-field em {
  color: #b91c1c;
  font-style: normal;
}

.wpoc-field input:not([type="checkbox"]):not([type="radio"]),
.wpoc-field select,
.wpoc-field textarea {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.wpoc-field small {
  color: #6b7280;
  display: block;
  margin-top: 4px;
}

.wpoc-field-heading h3 {
  font-size: 18px;
  margin: 8px 0 4px;
}

.wpoc-field-paragraph p {
  color: #4b5563;
  margin: 0;
}

.wpoc-checkline {
  align-items: center;
  display: flex;
  gap: 8px;
}

.wpoc-checkline span {
  margin: 0;
}

.wpoc-options {
  display: grid;
  gap: 8px;
}

.wpoc-feedback {
  margin: 12px 0;
}

.wpoc-feedback.success {
  color: #047857;
}

.wpoc-feedback.error {
  color: #b91c1c;
}

.wpoc-hp {
  height: 1px;
  left: -10000px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 640px) {
  .wpoc-form {
    grid-template-columns: 1fr;
  }

  .wpoc-width-half,
  .wpoc-width-third {
    grid-column: 1 / -1;
  }

  .wpoc-modal-body,
  .wpoc-page {
    padding: 20px;
  }
}
