/**
 * Opay Public — payment button styles
 */

.opay-button-wrap {
  display: inline-block;
}

/* -------------------------------------------------------------------------
 * Primary pay button
 * ---------------------------------------------------------------------- */

.opay-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #0082fb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.opay-pay-btn:hover:not(:disabled) {
  background-color: #0070d8;
  box-shadow: 0 2px 8px rgba(0, 130, 251, 0.35);
}

.opay-pay-btn:active:not(:disabled) {
  background-color: #005fc0;
}

.opay-pay-btn:disabled,
.opay-pay-btn--preview {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.opay-amount {
  font-weight: 400;
  font-size: 14px;
  opacity: 0.88;
}

/* -------------------------------------------------------------------------
 * Customer info form (shown after clicking Pay)
 * ---------------------------------------------------------------------- */

.opay-customer-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.opay-customer-form input[type="email"],
.opay-customer-form input[type="text"] {
  padding: 10px 14px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  background: #fff;
  color: #1b1b1c;
}

.opay-customer-form input:focus {
  outline: none;
  border-color: #0082fb;
  box-shadow: 0 0 0 2px rgba(0, 130, 251, 0.2);
}

/* -------------------------------------------------------------------------
 * Checkout confirm button
 * ---------------------------------------------------------------------- */

.opay-checkout-btn {
  padding: 10px 20px;
  background-color: #0082fb;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: flex-start;
}

.opay-checkout-btn:hover:not(:disabled) {
  background-color: #0070d8;
}

.opay-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
 * Inline error message
 * ---------------------------------------------------------------------- */

.opay-button-error {
  color: #c62828;
  font-size: 13px;
  margin-top: 6px;
  padding: 6px 10px;
  background: #fdecea;
  border-radius: 4px;
  border-left: 3px solid #c62828;
}

/* -------------------------------------------------------------------------
 * Block editor preview styles
 * ---------------------------------------------------------------------- */

.opay-block-preview {
  display: inline-block;
}

.opay-block-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #72777c;
}
