.pms-authorize-net-field-wrapper {
    margin-bottom: 12px;
}

.pms-authorize-net-field-wrapper label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 15px;
}

.pms-authorize-net-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.pms-authorize-net-field:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.pms-authorize-net-field-row {
    display: flex;
    gap: 12px;
}

.pms-authorize-net-field-half {
    flex: 1;
}

.pms-authorize-net-error {
    color: #cc0000;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #cc0000;
    border-radius: 4px;
    background: #fff0f0;
}

.pms-authorize-net-error p {
    margin: 4px 0;
}

/**
 * Profile Builder default theme: align Authorize fields with other PMS billing rows.
 * When Form Designs are active, wrappers also get .wppb-form-text-field; skip these rules so theme CSS applies.
 */
.wppb-user-forms .pms-paygate-extra-fields-authorize_net .pms-authorize-net-field-wrapper {
    margin-bottom: 16px;
}

.wppb-user-forms .pms-paygate-extra-fields-authorize_net .pms-authorize-net-field-wrapper:not(.wppb-form-text-field) .cozmoslabs-form-field-label {
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    color: #090a0b;
    margin-bottom: 5px;
    display: block;
}

.wppb-user-forms .pms-paygate-extra-fields-authorize_net .pms-authorize-net-field-wrapper:not(.wppb-form-text-field) .pms-authorize-net-field {
    width: 100% !important;
    max-width: 100%;
    height: 44px;
    padding: 0 10px;
    box-sizing: border-box;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
}

.wppb-user-forms .pms-paygate-extra-fields-authorize_net .pms-authorize-net-field-wrapper:not(.wppb-form-text-field) .pms-authorize-net-field:hover {
    border-color: #999;
}

.wppb-user-forms .pms-paygate-extra-fields-authorize_net .pms-authorize-net-field-wrapper:not(.wppb-form-text-field) .pms-authorize-net-field:focus {
    color: #111;
    outline: none;
    box-shadow: none;
    border-color: #111;
}

.wppb-user-forms .pms-paygate-extra-fields-authorize_net .pms-authorize-net-error {
    margin-bottom: 16px;
}
