/* =========================================================
   GenPeptide Order Tracker - Responsive
   ========================================================= */

/* Tablet */
@media only screen and (max-width: 991px) {
    .cbwct-tracking-container {
        padding: 0 16px;
    }
    .cbwct-tracking-container table tr td:first-child {
        width: 160px;
    }
    .cbwct_wc_traking_steps::before,
    .cbwct_wc_traking_steps::after {
        top: 50px;
    }
    .cbwct-wc-traking-img {
        width: 42px;
        height: 42px;
    }
    .cbwct-wc-traking-img img {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .cbwct-tracking-container {
        padding: 0 12px;
        margin-top: 18px;
    }

    /* Form goes vertical, button full-width */
    .cbwct-tracking-form-area {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cbwct-tracking-form-field {
        flex-basis: 100%;
        min-width: 0;
    }
    .cbwct-tracking-from form input[type="submit"],
    .cbwct-tracking-from button {
        width: 100% !important;
    }

    /* Status header stacks */
    .cbwct-status-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }
    .cbwct-status-value {
        font-size: 18px;
    }

    /* Progress stepper - keep horizontal but compact */
    .cbwct-tracking-porgressbar {
        padding: 24px 12px 16px;
    }
    .cbwct_wc_traking_steps::before,
    .cbwct_wc_traking_steps::after {
        top: 44px;
        left: 10%;
        right: 10%;
    }
    .cbwct_wc_traking_steps::after {
        max-width: 80%;
    }
    .cbwct-wc-traking-img {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }
    .cbwct-wc-traking-img img {
        width: 18px !important;
        height: 18px !important;
    }
    .cbwct-wc-traking-round {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    .cbwct_wc_traking_step .cbwct-step-label {
        font-size: 11px;
        margin-top: 8px;
    }

    /* Result table - stacked layout */
    .cbwct-tracking-container td {
        display: block;
        width: 100% !important;
        padding: 10px 16px;
    }
    .cbwct-tracking-container table tr td:first-child {
        width: 100% !important;
        padding-bottom: 4px;
        background: #f9fafb !important;
    }
    .cbwct-tracking-container table tr td:nth-child(2) {
        padding-top: 4px;
        padding-bottom: 14px;
        border-bottom: 1px solid #f3f4f6;
    }
    .cbwct-tracking-list table tr:last-child td:nth-child(2) {
        border-bottom: none;
    }
}

/* Small mobile */
@media only screen and (max-width: 480px) {
    .cbwct_wc_traking_step .cbwct-step-label {
        font-size: 10px;
    }
    .cbwct-status-value {
        font-size: 16px;
    }
}
