.text-input-credit-card {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: normal;
    padding: 1em;
    display: block;
    background-color: var(--wc-form-color-background, #fff);
    border: var(--wc-form-border-width) solid var(--wc-form-border-color);
    border-radius: var(--wc-form-border-radius);
    color: var(--wc-form-color-text, #000);
    box-sizing: border-box;
    height: 48.80px !important;
    margin: 0;
    line-height: normal;
}

.woocommerce form .form-row.woocommerce-validated input.text-input-credit-card {
    border-color: #69bf29;
}

.woocommerce form .form-row.woocommerce-invalid input.text-input-credit-card {
    border-color: var(--wc-red);
}

.woocommerce-js form .form-row.woocommerce-invalid input.text-input-credit-card {
    border-color: #d65d67;
}

.form-row-pair {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-row-pair>.form-row {
    flex: 1;
    min-width: 200px;
}

.wc-block-components-payment-method-icons {
    margin-top: 10px;
}

.wc-block-components-payment-method-icon {
    border: 1px solid black;
}

@media only screen and (max-width: 600px) {
    .text-input-credit-card {
        width: 100% !important;
    }

    .form-row-pair {
        flex-direction: column;
    }

    .anet-card-number-label {
        display: inline-block;
        margin-top: 0;
    }
}

@media only screen and (min-width: 601px) {
    .text-input-credit-card {
        width: 50% !important;
    }
}

/* Credit Card Edit Form Styles */
.expiry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.expiry-row .form-row {
    flex: 1;
    min-width: 200px;
}

@media only screen and (max-width: 600px) {
    .expiry-row {
        flex-direction: column;
    }
}

/* Additional styles for edit form */
#anet-credit-card-edit-form {
    max-width: 600px;
}

#anet-credit-card-edit-error {
    color: #b32d2e;
    margin-bottom: 12px;
    display: none;
}

#anet-credit-card-edit-form .form-row select {
    height: 50px;
}

#anet-credit-card-edit-form .form-row {
    margin-bottom: 1em;
}

#anet-credit-card-save-btn {
    margin: 1em;
}

/* Hide the show password button only for CVV field */
.woocommerce-input-wrapper.password-input input#anet-card-cvc + .show-password-input {
    display: none !important;
}
