#shift4-payment-error.hidden {
    display: none;
}

#shift4-payment-error .wc-block-components-notice-banner {
    margin: 0 0 20px 0;
}

/* Card Form Wrapper */
.shift4-card-form-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.shift4-payment-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.shift4-payment-field:last-child {
    margin-bottom: 0;
}

/* Label styling */
#shift4-payment-form label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Input Fields (Stripe Style) */
.shift4-payment-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 14px;
    min-height: 44px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Simulator of Focus state since they are iframes inside */
.shift4-payment-input.shift4-focus,
.shift4-payment-input:focus-within {
    border-color: #6366f1; /* Indigo */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* Layout for Expiry + CVV row */
.shift4-payment-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.shift4-payment-fields .shift4-payment-field {
    margin-bottom: 0;
}

/* Secured by Badge */
.shift4-secured-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    color: #64748b;
    margin-top: 15px;
    padding-bottom: 10px;
}

.shift4-secured-by svg {
    flex-shrink: 0;
}

.shop_table thead th {
    text-align: left;
}

#apple-pay-submit-button {
    width: 100% !important;
}

.payment_method_shift4_applepay {
    padding-bottom: 10px !important;
}

.woocommerce-SavedPaymentMethods {
    padding: 0;
}

.woocommerce-SavedPaymentMethods-token img {
    margin: 0 !important;
}

@media only screen and (min-width: 768px) {
    #apple-pay-submit-button {
        width: 300px !important;
    }

    .woocommerce-SavedPaymentMethods-saveNew {
        margin-top: 20px !important;
    }
}
