/* SMM Bridge frontend order details */
.smmwc-front-order-details,
.smmwc-front-order-details *,
.smmwc-order-item-meta,
.smmwc-order-item-meta *{
    box-sizing:border-box;
}

.smmwc-front-order-details{
    direction:rtl;
    width:100%;
    margin:28px 0 18px !important;
    padding:0 !important;
    clear:both;
    font-family:inherit;
}

.smmwc-front-order-details .woocommerce-order-details__title{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    margin:0 0 14px !important;
    padding:0 !important;
    font-size:18px !important;
    line-height:1.8 !important;
    font-weight:800 !important;
    color:#1f2937 !important;
    text-align:right !important;
}

.smmwc-front-order-details .woocommerce-order-details__title:before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:#1d9bf0;
    box-shadow:0 0 0 5px rgba(29,155,240,.12);
}

.smmwc-front-order-details table.smmwc-front-table,
table.smmwc-front-table{
    direction:rtl !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    border:1px solid #e5e7eb !important;
    border-radius:16px !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
    overflow:hidden !important;
    background:#fff !important;
    box-shadow:0 12px 30px rgba(15,23,42,.06) !important;
}

.smmwc-front-order-details table.smmwc-front-table thead,
table.smmwc-front-table thead{
    display:table-header-group !important;
}

.smmwc-front-order-details table.smmwc-front-table thead th,
table.smmwc-front-table thead th{
    padding:14px 16px !important;
    border:0 !important;
    border-bottom:1px solid #e5e7eb !important;
    background:#f8fafc !important;
    color:#334155 !important;
    font-size:13px !important;
    line-height:1.7 !important;
    font-weight:800 !important;
    text-align:center !important;
    white-space:nowrap !important;
}

.smmwc-front-order-details table.smmwc-front-table tbody td,
table.smmwc-front-table tbody td{
    padding:15px 16px !important;
    border:0 !important;
    border-bottom:1px solid #eef2f7 !important;
    background:#fff !important;
    color:#111827 !important;
    font-size:14px !important;
    line-height:1.9 !important;
    text-align:center !important;
    vertical-align:middle !important;
}

.smmwc-front-order-details table.smmwc-front-table tbody tr:last-child td,
table.smmwc-front-table tbody tr:last-child td{
    border-bottom:0 !important;
}

.smmwc-front-order-details table.smmwc-front-table tbody tr:hover td,
table.smmwc-front-table tbody tr:hover td{
    background:#fbfdff !important;
}

.smmwc-front-order-details table.smmwc-front-table code,
table.smmwc-front-table code,
.smmwc-order-item-meta code{
    direction:ltr !important;
    display:inline-block !important;
    max-width:220px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    vertical-align:middle !important;
    padding:5px 9px !important;
    border:1px solid #dbeafe !important;
    border-radius:999px !important;
    background:#eff6ff !important;
    color:#1d4ed8 !important;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace !important;
    font-size:12px !important;
    line-height:1.5 !important;
}

.smmwc-front-order-details table.smmwc-front-table a,
table.smmwc-front-table a{
    color:#0f7fd0 !important;
    font-weight:700 !important;
    text-decoration:none !important;
}

.smmwc-front-status{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:88px !important;
    padding:5px 10px !important;
    border-radius:999px !important;
    font-size:12px !important;
    line-height:1.5 !important;
    font-weight:800 !important;
    white-space:nowrap !important;
}
.smmwc-front-status--completed{background:#ecfdf3 !important;color:#067647 !important;border:1px solid #abefc6 !important;}
.smmwc-front-status--partial{background:#fff7ed !important;color:#c2410c !important;border:1px solid #fed7aa !important;}
.smmwc-front-status--processing{background:#eff6ff !important;color:#1d4ed8 !important;border:1px solid #bfdbfe !important;}
.smmwc-front-status--failed,.smmwc-front-status--canceled{background:#fef2f2 !important;color:#b91c1c !important;border:1px solid #fecaca !important;}
.smmwc-front-status--review{background:#fffbeb !important;color:#b45309 !important;border:1px solid #fde68a !important;}
.smmwc-front-status--default{background:#f3f4f6 !important;color:#374151 !important;border:1px solid #e5e7eb !important;}

.smmwc-order-item-meta{
    direction:rtl;
    margin:12px 0 0 !important;
    padding:10px 12px !important;
    border:1px solid #e5e7eb !important;
    border-radius:12px !important;
    background:#f8fafc !important;
    color:#334155 !important;
    font-size:13px !important;
    line-height:2 !important;
}

@media (max-width: 768px){
    .smmwc-front-order-details table.smmwc-front-table,
    table.smmwc-front-table,
    .smmwc-front-order-details table.smmwc-front-table thead,
    table.smmwc-front-table thead,
    .smmwc-front-order-details table.smmwc-front-table tbody,
    table.smmwc-front-table tbody,
    .smmwc-front-order-details table.smmwc-front-table th,
    table.smmwc-front-table th,
    .smmwc-front-order-details table.smmwc-front-table td,
    table.smmwc-front-table td,
    .smmwc-front-order-details table.smmwc-front-table tr,
    table.smmwc-front-table tr{
        display:block !important;
    }

    .smmwc-front-order-details table.smmwc-front-table thead,
    table.smmwc-front-table thead{
        position:absolute !important;
        width:1px !important;
        height:1px !important;
        overflow:hidden !important;
        clip:rect(1px,1px,1px,1px) !important;
    }

    .smmwc-front-order-details table.smmwc-front-table tbody tr,
    table.smmwc-front-table tbody tr{
        padding:12px 14px !important;
        border-bottom:1px solid #e5e7eb !important;
        background:#fff !important;
    }

    .smmwc-front-order-details table.smmwc-front-table tbody tr:last-child,
    table.smmwc-front-table tbody tr:last-child{
        border-bottom:0 !important;
    }

    .smmwc-front-order-details table.smmwc-front-table tbody td,
    table.smmwc-front-table tbody td{
        display:flex !important;
        justify-content:space-between !important;
        align-items:center !important;
        gap:16px !important;
        padding:9px 0 !important;
        border-bottom:1px dashed #eef2f7 !important;
        text-align:left !important;
    }

    .smmwc-front-order-details table.smmwc-front-table tbody td:last-child,
    table.smmwc-front-table tbody td:last-child{
        border-bottom:0 !important;
    }

    .smmwc-front-order-details table.smmwc-front-table tbody td:before,
    table.smmwc-front-table tbody td:before{
        content:attr(data-title);
        color:#64748b !important;
        font-weight:800 !important;
        text-align:right !important;
        white-space:nowrap !important;
    }
}

/* Shahkar custom account invoice injection */
.smmwc-shahkar-order-details{
    direction:rtl;
    margin-top:20px !important;
    margin-bottom:10px !important;
}
.smmwc-shahkar-order-details__title .order-item-name{
    font-weight:800 !important;
}
.smmwc-shahkar-smm-table{
    direction:rtl !important;
    margin-top:10px !important;
    margin-bottom:22px !important;
}
.smmwc-shahkar-smm-table code{
    direction:ltr !important;
    display:inline-block !important;
    max-width:220px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    vertical-align:middle !important;
    padding:4px 8px !important;
    border-radius:8px !important;
    background:#eff6ff !important;
    color:#1d4ed8 !important;
    font-size:12px !important;
}
.smmwc-shahkar-smm-table .smmwc-front-status{
    min-width:86px !important;
}
