/* Alpha Maker Checkout - Style */

/* Reset any WordPress theme interference on the checkout section */
.amc-section-wrap *,
.amc-section-wrap *::before,
.amc-section-wrap *::after {
    box-sizing: border-box;
}

.amc-section-wrap input[type="email"],
.amc-section-wrap input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Placeholder color */
.amc-section-wrap input::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* Stripe card element container */
#amc-stripe-container {
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

#amc-card-element {
    min-height: 24px;
}

.amc-card-errors {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    min-height: 18px;
}

/* CTA Button disabled state */
#amc-pay-btn:disabled {
    background-color: #555 !important;
    cursor: not-allowed !important;
}

/* Loading spinner inside button */
#amc-pay-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: amc-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes amc-spin {
    to { transform: rotate(360deg); }
}

/* Responsive: stack fields on mobile */
@media (max-width: 640px) {
    .amc-fields-grid {
        grid-template-columns: 1fr !important;
    }
}
