/* Order Hint */
.py-order-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    justify-content: flex-start;
    box-sizing: border-box;
}

.py-order-hint .py-order-hint-icon {
    display: flex;
    align-items: center; 
}

.py-order-hint .py-order-hint-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    margin-top: 0;
}

.py-order-hint .py-order-hint-text {
    display: flex; 
    align-items: center;
}

.py-order-hint .py-order-hint-text p {
    margin: 0;
    line-height: 1;
    font-size: 16px;
    font-weight: 400;
}

.py-order-hint .py-order-number,
.py-order-hint .py-order-date,
.py-order-hint .py-order-status {
    font-weight: 700;
}

@media (max-width: 768px) {
    .py-order-hint {
        flex-direction: row;
        align-items: flex-start;
        text-align: justify;
        padding: 10px;
        margin-bottom: 15px;
    }

    
    .py-order-hint .py-order-hint-icon {
        flex-shrink: 0;
        margin-top: 4px;
    }

    .py-order-hint .py-order-hint-icon svg {
        margin-top: -2px;
    }
    
    .py-order-hint .py-order-hint-text p {
        line-height: 1.6;
        margin: 0;
    }
}


/* Order Notes */

h2.py-order-notes-title {
    font-size: 20px !important;
    font-weight: bold !important;
    text-align: center;
    margin-bottom: 15px;
}

.py-order-notes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.py-order-note-wrapper {
    background-color: #0066ff;
    border-radius: 16px 16px 3px 16px;
    padding: 15px;
    max-width: max-content;
    width: fit-content;
}

.py-order-note-text p {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 400;
    text-align: justify;
}

.py-order-note-text p a {
    color: #fff;
    text-decoration: underline;
}

.py-order-note-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Order Details */

@media (max-width: 768px) {
    section.py-order-items {
        box-sizing: border-box;
        overflow: hidden;
    }
    
    table.py-order-table {
        margin-bottom: 0;
    }
    
    table.py-order-table thead {
        display: none;
    }
    
    tr.py-order-item-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
        border: 2px solid #0066ff;
        border-radius: 16px;
        overflow: hidden;
    }
    
    table.py-order-table,
    table.py-order-table tbody,
    table.py-order-table tfoot {
        display: block;
        width: 100%;
    }

    tr.py-order-item-row {
        display: flex;
        flex-direction: column;
        width: 100%;  
    }

    tr.py-order-item-row td:last-child {
    border-bottom: 0 !important;
    }
    
    td.py-item-index,
    td.py-item-name,
    td.py-item-unit-price,
    td.py-item-quantity,
    td.py-item-total {
        width: 100%; 
    }
    
        
    td.py-item-index,
    td.py-item-unit-price,
    td.py-item-quantity,
    td.py-item-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .py-flex {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        width: 100%;
    }
    
    span.py-label {
        font-size: 15px;
        font-weight: 500;
        color: #0066ff;
    }
 
    td.py-item-index .py-value::before {
    content: "شماره ";
    font-weight: 700;
    }
   
   span.py-value {
    font-size: 15px;
    font-weight: bold;
    }
    
    td.py-item-name .py-flex {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    
    td.py-item-name .py-value {
    font-size: 15px;
    font-weight: 700;
    text-align: justify;
    }
    
    .py-item-unit-price .woocommerce-Price-amount,
    .py-item-unit-price .woocommerce-Price-currencySymbol,
    .py-item-total .woocommerce-Price-amount,
    .py-item-total .woocommerce-Price-currencySymbol {
        color: #333;
    }
    
    
    .py-order-item-row td:nth-child(odd) {
        background-color: #0066ff10;
    }

    .py-order-item-row td:nth-child(even) {
        background-color: #ffffff;
    }
    
    
    
    /* Order Details Footer */
    
    tr.py-grand-total-row {
        display: flex;
        justify-content: space-between;
        border-radius: 10px;
        border: 2px solid #0066ff;
    }
    
    tr.py-grand-total-row td:first-child {
        display: none;
    }
    tr.py-grand-total-row td {
    border-bottom: 0 !important;
    }
    
    td.py-totals-label {
    font-weight: bold;
    color: #0066ff;
    }
    


    
}