/**
 * Checkout styles for WooCommerce Credit System.
 */
.wc-credit-installment-form {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-top: 10px;
}

.wc-credit-select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wc-credit-file-upload {
    padding: 10px;
    background: #fff;
    border: 1px dashed #ccc;
    width: 100%;
    margin-top: 5px;
}

.credit-check-date {
    width: 100%;
    height: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' class='bi bi-calendar' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.credit-check-amount {
    height: 44px !important;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Adjust padding for date icon in RTL (Persian) context */
body.rtl .credit-check-date,
[dir="rtl"] .credit-check-date {
    background-position: calc(100% - 12px) center;
    padding-right: 45px !important;
    padding-left: 10px !important;
}

/* Ensure LTR fallback */
body:not(.rtl) .credit-check-date,
[dir="ltr"] .credit-check-date {
    background-position: 12px center;
    padding-left: 45px !important;
    padding-right: 10px !important;
}

