/* Order-item status label (order details page) */
.wphub-status-label-top{
    display: block;
    margin: 8px 0 0;
}
.wphub-status-label{
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
}
.wphub-status-label.wphub-not-shipped{
    color: #D8000C;
    background-color: #FFBABA;
}
.wphub-status-label.wphub-partially-shipped{
    color: #9F6000;
    background-color: #FEEFB3;
}
.wphub-status-label.wphub-shipped{
    color: #270;
    background-color: #DFF2BF;
}
.wphub-status-label.wphub-refunded{
    color: #555;
    background-color: #E2E2E2;
}

/* Shipment box on the order details page */
.shipment-section{
    box-sizing: border-box;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 0 0 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.wphub-shipment-head{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 16px;
}
.wphub-shipment-title{
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
}
.wphub-shipment-title .wphub-shipment-date{
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #50575e;
    margin-top: 2px;
}
.wphub-shipment-badge-wrap{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.wphub-shipment-badge-wrap .wphub-tl-eta{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.3;
}
.wphub-shipment-badge{
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,.08);
}
.wphub-shipment-badge.wphub-status-ready{ color:#50575e; background:#f6f7f7; border-color:#dcdcde; }
.wphub-shipment-badge.wphub-status-picked{ color:#2271b1; background:#f0f6fc; border-color:#72aee6; }
.wphub-shipment-badge.wphub-status-dispatched{ color:#996800; background:#fcf9e8; border-color:#dba617; }
.wphub-shipment-badge.wphub-status-delivered{ color:#008a20; background:#f0f6f1; border-color:#00a32a; }

/* Provider / tracking meta grid */
.wphub-shipment-meta{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 8px 20px;
    margin: 14px 0 6px;
    padding: 12px 14px;
    background: #f6f7f7;
    border-radius: 8px;
}
.wphub-shipment-meta .wphub-meta-item{ font-size: 13px; }
.wphub-shipment-meta .wphub-meta-label{
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #646970;
    margin-bottom: 2px;
}
.wphub-shipment-meta a{ word-break: break-all; }

/* Items table inside the shipment box */
.shipment-section > table,
.shipment-section > table tbody,
.shipment-section > table th,
.shipment-section > table tbody td{
    border: none !important;
}
table.partial_shipment_details{
    margin: 10px 0 0;
}
table.partial_shipment_details thead th{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #646970;
    background: #f6f7f7;
    padding: 8px 12px;
}
table.partial_shipment_details tbody td{
    padding: 8px 12px;
}
table.partial_shipment_details tr td span.item-title{
    font-weight: 600;
}
table.partial_shipment_details tr td ul.wc-item-meta{
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}
table.partial_shipment_details tr td ul.wc-item-meta li{
    margin: 0 0 2px;
}
table.partial_shipment_details tr td ul.wc-item-meta li p{
    display: inline;
    padding-left: 3px;
}

/* Customer Note inside the shipment box */
.wphub-shipment-comments{
    margin: 14px 0 0;
    padding: 10px 14px;
    background: #f6f7f7;
    border-left: 3px solid #2271b1;
    border-radius: 6px;
}
.wphub-shipment-comments .wphub-shipment-note-label{
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #646970;
    margin-bottom: 4px;
}
.wphub-shipment-comments .wphub-shipment-note-text{
    font-size: 13px;
    color: #1d2327;
    line-height: 1.5;
    white-space: pre-line;
}

@media (max-width: 480px){
    .shipment-section{ padding: 14px; }
    .wphub-shipment-head{ flex-direction: column; }
}
/* Timeline stepper (order page + tracking page) */
.wphub-timeline{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:0 4px;
    margin:14px 0 6px;
}
.wphub-tl-step{
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:1 1 0;
    min-width:0;
    position:relative;
    font-size:12px;
}
.wphub-tl-step:not(:last-child)::after{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    width:100%;
    height:2px;
    background:#e0e0e1;
}
.wphub-tl-step .wphub-tl-dot{
    width:16px;height:16px;
    border-radius:50%;
    background:#fff;
    border:2px solid #c3c4c7;
    position:relative;z-index:1;
    margin-bottom:6px;
}
.wphub-tl-step .wphub-tl-label{
    text-align:center;
    color:#8c8f94;
    line-height:1.3;
}
.wphub-tl-step.is-done:not(:last-child)::after{ background:#2271b1; }
.wphub-tl-step.is-done .wphub-tl-dot{ background:#2271b1; border-color:#2271b1; }
.wphub-tl-step.is-current .wphub-tl-dot{
    background:#2271b1;border-color:#2271b1;
    box-shadow:0 0 0 3px rgba(34,113,177,.18);
}
.wphub-tl-step.is-current .wphub-tl-label{ color:#1d2327; font-weight:600; }
.wphub-tl-meta{
    font-size:12px;color:#50575e;margin:8px 0 2px;
}
.wphub-shipment-badge-wrap .wphub-tl-eta-label{
    font-size:10px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:#646970;
}
.wphub-shipment-badge-wrap .wphub-tl-eta-value{
    font-size:12px;
    color:#2271b1;
    font-weight:600;
    margin-top:1px;
    white-space:nowrap;
}

/* Tracking page */
.wphub-tracking{
    max-width:640px;margin:0 auto;
}
.wphub-tracking-form{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:0 0 18px;
}
.wphub-tracking-form label{ font-weight:600; }
.wphub-tracking-inputs{ display:flex; gap:8px; }
.wphub-tracking-inputs input{
    flex:1;min-width:0;padding:9px 12px;border:1px solid #c3c4c7;border-radius:6px;
}
.wphub-tracking-inputs button{
    padding:9px 16px;border:none;border-radius:6px;
    background:#2271b1;color:#fff;cursor:pointer;
}
.wphub-tracking-note{ color:#8a5300; }
