.notch_pay-payment-form,
.notch_pay-donation-form {
    max-width: 400px;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}

.notch_pay-payment-form .notch_pay-amount-field,
.notch_pay-payment-form .notch_pay-email-field,
.notch_pay-payment-form .notch_pay-name-field,
.notch_pay-donation-form .notch_pay-amount-field,
.notch_pay-donation-form .notch_pay-email-field,
.notch_pay-donation-form .notch_pay-name-field {
    margin-bottom: 1em;
}

.notch_pay-payment-form label,
.notch_pay-donation-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.notch_pay-payment-form input[type="email"],
.notch_pay-payment-form input[type="text"],
.notch_pay-payment-form input[type="number"],
.notch_pay-donation-form input[type="email"],
.notch_pay-donation-form input[type="text"],
.notch_pay-donation-form input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.notch_pay-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
}

.notch_pay-button:hover {
    background: #135e96;
}

.notch_pay-error {
    color: #d63638;
    margin-top: 8px;
}

.notch_pay-message.notch_pay-success { color: #00a32a; }
.notch_pay-message.notch_pay-failure { color: #d63638; }

/* Checkout block inline payment form */
.notch_pay-inline-content {
    margin-top: 0.75em;
}
.notch_pay-inline-content .notch_pay-inline-desc {
    margin: 0 0 1em;
    color: #50575e;
}
.notch_pay-channel-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 0.95em;
}
.notch_pay-channel-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
.notch_pay-channel-card {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1em;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    flex: 1;
    min-width: 140px;
}
.notch_pay-channel-card:hover {
    border-color: #2271b1;
    background-color: #f6f7f7;
}
.notch_pay-channel-card.is-selected {
    border-color: #2271b1;
    background-color: #f0f6fc;
}
.notch_pay-channel-card input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}
.notch_pay-channel-card-label {
    font-weight: 500;
}
.notch_pay-channel-options,
.notch_pay-phone-input {
    margin-bottom: 1em;
}
.notch_pay-phone-input label,
.notch_pay-phone-row label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.notch_pay-phone-input input[type="tel"],
.notch_pay-phone-row input[type="tel"] {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}
.notch_pay-phone-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.875em;
    color: #646970;
}
.notch_pay-phone-hidden {
    display: none;
}
.notch_pay-phone-row:not(.notch_pay-phone-visible) {
    display: none;
}

/* Full-page overlay for inline payment pending confirmation */
.notch_pay-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.notch_pay-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.notch_pay-overlay-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}
.notch_pay-overlay-card {
    padding: 1.75em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.notch_pay-pending-message {
    margin: 0 0 1em;
    font-weight: 500;
    font-size: 1.05em;
}
.notch_pay-pending-status {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.notch_pay-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #c3c4c7;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: notch-pay-spin 0.8s linear infinite;
}
@keyframes notch-pay-spin {
    to { transform: rotate(360deg); }
}
.notch_pay-retry-link {
    display: inline-block;
    margin-top: 0.5em;
    color: #2271b1;
    color: var(--wp-admin-theme-color, #2271b1);
    text-decoration: underline;
}
.notch_pay-retry-link:hover {
    text-decoration: none;
}

/* Inline charge form (step 2) */
.notch_pay-inline-charge-form {
    margin: 1.5em 0;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}
.notch_pay-charge-intro {
    margin: 0 0 1em;
    font-weight: 600;
}
.notch_pay-charge-status {
    margin-top: 1em;
    padding: 0.75em;
    border-radius: 4px;
}
.notch_pay-charge-status.success {
    background: #d4edda;
    color: #155724;
}
.notch_pay-charge-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* Inline charge on checkout page */
body.notch_pay-inline-charge .notch_pay-checkout-charge-wrapper {
    margin-bottom: 2em;
}
body.notch_pay-inline-charge .woocommerce-checkout,
body.notch_pay-inline-charge .woocommerce-checkout-review-order,
body.notch_pay-inline-charge .notch_pay-checkout-blocks-hide {
    display: none !important;
}
.notch_pay-charge-blocks {
    max-width: 500px;
    margin: 2em auto;
    padding: 1.5em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
