/* Ensure checkout fields stay in proper RTL alignment */
.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    text-align: right !important;
    direction: rtl !important;
    width: 100%;
    box-sizing: border-box;
    padding: 12px !important; /* Better spacing */
    font-size: 16px; /* Improve readability */
}

/* Keep 'שם מלא' and 'טלפון' in the same row */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 49% !important;
    margin-left: 1% !important;
    display: inline-block;
    vertical-align: top;
}

/* REMOVE ALL error messages */
.woocommerce-error,
.woocommerce-invalid-required-field .woocommerce-input-wrapper::after,
.checkout-inline-error-message {
    display: none !important;
}

/* Keep invalid fields with red border */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
    border-color: red !important;
}

/* Ensure labels align properly */
.woocommerce form .form-row label {
    display: block;
    text-align: right;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Make required asterisks (*) more noticeable */
.woocommerce-checkout label .required {
    color: red;
    font-weight: bold;
    margin-left: 3px;
    font-size: 16px;
}

/* Fix "Ship to a Different Address?" checkbox alignment */
#ship-to-different-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

/* Make the "Ship to a Different Address?" checkbox bigger */
#ship-to-different-address input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 5px;
}

/* Ensure the label is clickable */
#ship-to-different-address label {
    font-weight: bold;
    cursor: pointer;
}

/* Style the "Agreement to Terms" text above the payment button */
#terms_agreement_text {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

/* Style the Terms & Conditions link */
#terms_agreement_text a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: bold;
}
#terms_agreement_text a:hover {
    color: #005177;
}

/* Ensure checkout button stays aligned */
.woocommerce-checkout button[type="submit"] {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 12px;
}

/* Hide cart subtotal row */
tr.cart-subtotal {
    display: none !important;
}

/* Improve visibility of Terms & Conditions link */
#terms_agreement_text a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: bold;
    font-size: 16px; /* Slightly bigger */
}
#terms_agreement_text a:hover {
    color: #005177;
    text-decoration: none;
}