.ts-fullwidth {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.ts-shipping-table-wrap {
    margin: 18px 0;
    overflow-x: auto;
}

.ts-shipping-table {
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
    width: 100%;
}

.ts-shipping-table th,
.ts-shipping-table td {
    border: 1px solid #d9dee7;
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
    word-break: normal;
}

.ts-shipping-table thead th {
    background: #f3f6fa;
    color: #172033;
    font-weight: 700;
}

.ts-shipping-table th:nth-child(1),
.ts-shipping-table td:nth-child(1) {
    width: 26%;
}

.ts-shipping-table th:nth-child(2),
.ts-shipping-table td:nth-child(2),
.ts-shipping-table th:nth-child(3),
.ts-shipping-table td:nth-child(3),
.ts-shipping-table th:nth-child(4),
.ts-shipping-table td:nth-child(4),
.ts-shipping-table th:nth-child(5),
.ts-shipping-table td:nth-child(5) {
    width: 13%;
}

.ts-shipping-table th:nth-child(6),
.ts-shipping-table td:nth-child(6) {
    width: 22%;
}

.ts-shipping-table tbody th {
    font-weight: 700;
}

.ts-shipping-table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.ts-shipping-table tbody tr:hover {
    background: #f7fbff;
}

.ts-shipping-table .is-inactive {
    color: #72777c;
}

.ts-badge {
    background: #f0f0f1;
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    padding: 2px 8px;
}

.ts-discounts {
    display: grid;
    gap: 8px;
}

.ts-discount-band {
    background: #f8fafc;
    border: 1px solid #dce3ee;
    border-radius: 6px;
    padding: 6px;
}

.ts-discount-band > strong {
    display: block;
    margin-bottom: 6px;
}

.ts-discounts ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-discounts li {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    flex: 0 1 auto;
    gap: 10px;
    justify-content: space-between;
    min-width: 128px;
    padding: 5px 8px;
}

.ts-box-count {
    background: #172033;
    border-radius: 999px;
    color: #ffffff;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    white-space: nowrap;
}

.ts-discount-value {
    color: #0f7a3b;
    font-weight: 700;
    text-align: right;
}

.ts-message {
    background: #fff8e5;
    border: 1px solid #f0d58c;
    margin: 14px 0;
    padding: 12px;
}

.ts-examples {
    margin: 22px 0 0;
}

.ts-examples h2 {
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.ts-example-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ts-example-card {
    background: #f8fafc;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    padding: 14px;
}

.ts-example-card h3 {
    color: #172033;
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 8px;
}

.ts-example-band {
    color: #526071;
    font-size: 13px;
    margin: -2px 0 10px;
}

.ts-example-card ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-example-card li {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 8px 10px;
}

.ts-example-qty {
    background: #0f7a3b;
    border-radius: 999px;
    color: #ffffff;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
    white-space: nowrap;
}

.ts-example-calc {
    color: #172033;
    font-weight: 600;
    text-align: right;
}

.ts-example-calc strong {
    color: #0f7a3b;
}

.ts-saving-label {
    background: #dcfce7;
    border-radius: 999px;
    color: #0f7a3b;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    margin-right: 4px;
    padding: 4px 7px;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .ts-fullwidth {
        overflow-wrap: anywhere;
    }

    .ts-shipping-table-wrap {
        margin: 14px 0;
        overflow-x: visible;
    }

    .ts-shipping-table {
        font-size: 13px;
        min-width: 0;
    }

    .ts-shipping-table thead {
        display: none;
    }

    .ts-shipping-table,
    .ts-shipping-table tbody,
    .ts-shipping-table tr,
    .ts-shipping-table td {
        display: block !important;
        width: 100%;
    }

    .ts-shipping-table tr {
        background: #ffffff;
        border: 1px solid #d9dee7;
        border-radius: 8px;
        margin: 0 0 12px;
        overflow: hidden;
    }

    .ts-shipping-table tbody tr:nth-child(even),
    .ts-shipping-table tbody tr:hover {
        background: #ffffff;
    }

    .ts-shipping-table td {
        align-items: flex-start;
        border: 0;
        border-bottom: 1px solid #eef2f7;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        gap: 7px;
        line-height: 1.45 !important;
        min-height: 0;
        padding: 13px 14px;
        position: static;
        white-space: normal;
    }

    .ts-shipping-table td:last-child {
        border-bottom: 0;
    }

    .ts-shipping-table td::before {
        color: #526071;
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        float: none;
        height: auto;
        line-height: 1.25;
        margin: 0;
        max-width: 100%;
        min-height: 0;
        position: static;
        white-space: normal;
        width: auto;
    }

    .ts-shipping-table td > * {
        max-width: 100%;
    }

    .ts-shipping-table th:nth-child(n),
    .ts-shipping-table td:nth-child(n) {
        width: 100%;
    }

    .ts-discounts,
    .ts-discount-band,
    .ts-discounts ul {
        width: 100%;
    }

    .ts-discount-band {
        box-sizing: border-box;
    }

    .ts-discounts li {
        box-sizing: border-box;
        flex: 1 1 100%;
        min-width: 0;
    }

    .ts-discount-value {
        white-space: nowrap;
    }

    .ts-examples {
        margin-top: 18px;
    }

    .ts-examples h2 {
        font-size: 18px;
    }

    .ts-example-grid {
        grid-template-columns: 1fr;
    }

    .ts-example-card li {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .ts-example-calc {
        text-align: left;
    }
}
