.helcim-pay {
  --hd-accent: #2d7ff9;
  --hd-accent-hover: #1c66d6;
  --hd-border: #d9dee5;
  --hd-text: #1f2733;
  --hd-muted: #6b7480;
  --hd-error: #d23b3b;
  --hd-success: #1f9d57;
  max-width: 460px;
  margin: 0 auto;
  box-sizing: border-box;
}

.helcim-pay *,
.helcim-pay *::before,
.helcim-pay *::after {
  box-sizing: border-box;
}

.helcim-pay__form {
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(19, 32, 53, 0.07);
}

.helcim-pay__title {
  margin: 0 0 20px;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--hd-text);
  text-align: center;
}

.helcim-pay__field {
  margin-bottom: 18px;
}

.helcim-pay__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hd-text);
}

.helcim-pay__req {
  color: var(--hd-error);
  margin-left: 2px;
}

.helcim-pay__amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.helcim-pay__currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--hd-muted);
  pointer-events: none;
  z-index: 1;
}

/* High specificity + !important so the host theme (e.g. Divi) cannot override
   the padding/height and reintroduce the overlap or mismatched field heights. */
.helcim-pay .helcim-pay__input {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
  color: var(--hd-text);
  background: #fff;
  border: 1px solid var(--hd-border) !important;
  border-radius: 9px !important;
  box-shadow: none;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}

/* Leave symmetric room for the currency symbol so the centered value never
   overlaps the "$" sign. */
.helcim-pay .helcim-pay__amount {
  padding-left: 30px !important;
  padding-right: 30px !important;
}

.helcim-pay .helcim-pay__input:focus {
  outline: none;
  border-color: var(--hd-accent) !important;
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.18);
}

.helcim-pay__button {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--hd-accent);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.helcim-pay__button:hover:not(:disabled) {
  background: var(--hd-accent-hover);
}

.helcim-pay__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.helcim-pay.is-busy .helcim-pay__button {
  opacity: 0.6;
  cursor: progress;
}

.helcim-pay__message {
  margin: 16px 0 0;
  min-height: 1.2em;
  font-size: 0.92rem;
  text-align: center;
}

.helcim-pay__message.is-error {
  color: var(--hd-error);
}

.helcim-pay__message.is-success {
  color: var(--hd-success);
  font-weight: 600;
}

.helcim-pay__message.is-info {
  color: var(--hd-muted);
}

.helcim-pay__form--done .helcim-pay__button {
  display: none;
}
