/* ============================================================
   TCC Shipment Center — My Account "Shipments" page styles
   ============================================================ */

.tcc-shipments {
    --tcc-gold-1: #c9a04a;
    --tcc-gold-2: #a37a2c;
    --tcc-gold-soft: #f6efdc;
    --tcc-ink: #1f2933;
    --tcc-muted: #6b7280;
    --tcc-line: #e5e7eb;
    --tcc-surface: #ffffff;
    --tcc-surface-2: #fafafa;
    --tcc-success-bg: #eef7ee;
    --tcc-success-edge: #b6dfb6;
    --tcc-success-ink: #1b5e20;
    --tcc-radius: 10px;
    --tcc-radius-sm: 6px;
    --tcc-shadow-sm:
        0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
    --tcc-shadow-md:
        0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);

    color: var(--tcc-ink);
}

.tcc-shipments > p:first-of-type {
    color: var(--tcc-muted);
    margin: 0 0 1.25em;
}

/* ---- Section headings ---- */
.tcc-shipments h2,
.tcc-shipments h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--tcc-ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tcc-shipments h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--tcc-gold-1), var(--tcc-gold-2));
}

/* ============================================================
   Orders table
   ============================================================ */
.tcc-shipments-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--tcc-surface);
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius);
    box-shadow: var(--tcc-shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.tcc-shipments-table thead th {
    background: var(--tcc-surface-2);
    color: var(--tcc-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--tcc-line);
}
.tcc-shipments-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--tcc-line);
    vertical-align: top;
    background: var(--tcc-surface);
    transition: background-color 0.15s ease;
}
.tcc-shipments-table tbody tr:last-child td {
    border-bottom: 0;
}
.tcc-shipments-table tbody tr:hover td {
    background: #fbf9f2;
}
.tcc-shipments-table tbody tr:has(.tcc-order-check:checked) td {
    background: var(--tcc-gold-soft);
}
.tcc-shipments-table .tcc-order-check {
    width: 18px;
    height: 18px;
    accent-color: var(--tcc-gold-2);
    cursor: pointer;
    margin-top: 2px;
}
.tcc-shipments-table a {
    color: var(--tcc-gold-2);
    font-weight: 600;
    text-decoration: none;
}
.tcc-shipments-table a:hover {
    text-decoration: underline;
}

/* ============================================================
   Shipping method picker
   ============================================================ */
.tcc-shipments-quote {
    background: var(--tcc-surface);
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius);
    box-shadow: var(--tcc-shadow-sm);
    padding: 18px 20px;
    margin: 0 0 18px;
}
.tcc-shipments-quote-empty {
    color: var(--tcc-muted);
    margin: 0;
    padding: 14px 16px;
    background: var(--tcc-surface-2);
    border: 1px dashed var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    font-size: 14px;
}

/* Prepaid credit banner */
.tcc-shipping-credit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--tcc-success-bg);
    border: 1px solid var(--tcc-success-edge);
    border-left: 4px solid #2e7d32;
    color: var(--tcc-success-ink);
    padding: 12px 14px;
    border-radius: var(--tcc-radius-sm);
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.45;
}
.tcc-shipping-credit__badge {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Method row = clickable card */
.tcc-shipments-quote-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tcc-shipments-quote-methods .tcc-method {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--tcc-surface);
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}
.tcc-shipments-quote-methods .tcc-method:hover:not(.tcc-method-disabled) {
    border-color: var(--tcc-gold-1);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.12);
}
.tcc-shipments-quote-methods .tcc-method:has(input[type="radio"]:checked) {
    border-color: var(--tcc-gold-2);
    background: var(--tcc-gold-soft);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.18);
}
.tcc-shipments-quote-methods .tcc-method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tcc-gold-2);
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.tcc-shipments-quote-methods .tcc-method-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--tcc-surface-2);
}
.tcc-shipments-quote-methods .tcc-method-disabled:hover {
    border-color: var(--tcc-line);
    box-shadow: none;
}
.tcc-method__label {
    flex: 1 1 auto;
    font-weight: 600;
    color: var(--tcc-ink);
    font-size: 14.5px;
}
.tcc-method__pricing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
    font-size: 14px;
}
.tcc-method__strike {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.9em;
}
.tcc-method__due {
    color: var(--tcc-ink);
}
.tcc-method__due strong {
    color: var(--tcc-gold-2);
    font-size: 1.05em;
}
.tcc-method__due--free {
    color: var(--tcc-success-ink);
    font-weight: 700;
}
.tcc-method__saved {
    background: var(--tcc-success-bg);
    color: var(--tcc-success-ink);
    font-size: 0.8em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--tcc-success-edge);
}
.tcc-shipments-quote-methods .tcc-method-reason {
    flex-basis: 100%;
    margin: -4px 0 0 30px;
    color: var(--tcc-muted);
    font-size: 12.5px;
    font-style: italic;
}

/* ============================================================
   Note + submit
   ============================================================ */
.tcc-shipments-form label[for="tcc_note"] {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tcc-ink);
}
.tcc-shipments-form #tcc_note {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    background: var(--tcc-surface);
    font: inherit;
    color: var(--tcc-ink);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    resize: vertical;
    min-height: 80px;
}
.tcc-shipments-form #tcc_note:focus {
    outline: none;
    border-color: var(--tcc-gold-1);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.18);
}

/* Request dispatch button */
.tcc-shipments-form button[name="tcc_shipment_submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: linear-gradient(
        135deg,
        var(--tcc-gold-1) 0%,
        var(--tcc-gold-2) 100%
    );
    border: 0;
    border-radius: var(--tcc-radius-sm);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.2s ease,
        opacity 0.2s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.tcc-shipments-form button[name="tcc_shipment_submit"]::before {
    content: "\2709";
    font-size: 16px;
    line-height: 1;
}
.tcc-shipments-form button[name="tcc_shipment_submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4ac56 0%, #b0852e 100%);
    box-shadow:
        0 6px 14px rgba(163, 122, 44, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.tcc-shipments-form button[name="tcc_shipment_submit"]:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18) inset;
}
.tcc-shipments-form button[name="tcc_shipment_submit"]:focus-visible {
    outline: 2px solid var(--tcc-gold-1);
    outline-offset: 3px;
}
.tcc-shipments-form button[name="tcc_shipment_submit"]:disabled,
.tcc-shipments-form button[name="tcc_shipment_submit"][disabled] {
    background: #eceff3 !important;
    background-image: none !important;
    color: #9aa3ad !important;
    border: 1px dashed #c9ced6 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    text-shadow: none;
    opacity: 1;
    transform: none;
}
.tcc-shipments-form button[name="tcc_shipment_submit"]:disabled::before,
.tcc-shipments-form button[name="tcc_shipment_submit"][disabled]::before {
    content: "\1F512"; /* padlock — clearer "locked" affordance */
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
    .tcc-shipments-table thead {
        display: none;
    }
    .tcc-shipments-table,
    .tcc-shipments-table tbody,
    .tcc-shipments-table tbody tr,
    .tcc-shipments-table tbody td {
        display: block;
        width: 100%;
    }
    .tcc-shipments-table tbody tr {
        padding: 10px 4px;
        border-bottom: 1px solid var(--tcc-line);
    }
    .tcc-shipments-table tbody td {
        border-bottom: 0;
        padding: 4px 14px;
    }
    .tcc-shipments-table tbody td[style*="text-align:right"] {
        text-align: left !important;
        font-weight: 600;
    }

    .tcc-shipments-quote-methods .tcc-method {
        align-items: flex-start;
    }
    .tcc-method__pricing {
        margin-left: 30px;
        width: 100%;
    }
}

/* placeholder appended by tooling */

/* ============================================================
   Tabs — styled to match the WooCommerce My Account nav pills
   (black pill buttons with gold gradient for the active tab)
   ============================================================ */
.tcc-shipments .tcc-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    flex-wrap: wrap;
    border: 0;
    background: transparent;
    list-style: none;
}
.tcc-shipments .tcc-tab,
.tcc-shipments a.tcc-tab,
.tcc-shipments a.tcc-tab:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    border: 1px solid #111;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease;
}
.tcc-shipments .tcc-tab:hover,
.tcc-shipments a.tcc-tab:hover,
.tcc-shipments .tcc-tab:focus-visible {
    background: #2a2a2a;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
.tcc-shipments .tcc-tab.is-active,
.tcc-shipments a.tcc-tab.is-active {
    background: linear-gradient(
        135deg,
        var(--tcc-gold-1) 0%,
        var(--tcc-gold-2) 100%
    );
    border-color: var(--tcc-gold-2);
    color: #fff !important;
    box-shadow:
        0 2px 6px rgba(163, 122, 44, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: default;
}
.tcc-shipments .tcc-tab.is-active:hover {
    transform: none;
}
.tcc-shipments .tcc-tab__icon {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
}
.tcc-shipments .tcc-tab__label {
    line-height: 1;
}
.tcc-shipments .tcc-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    margin-left: 2px;
}
.tcc-shipments .tcc-tab.is-active .tcc-tab__count {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

@media (max-width: 640px) {
    .tcc-shipments .tcc-tabs {
        gap: 8px;
    }
    .tcc-shipments .tcc-tab {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1 1 auto;
    }
}

.tcc-shipments .tcc-intro {
    color: var(--tcc-muted);
    margin: 0 0 18px;
    font-size: 14px;
}

/* ============================================================
   Empty state
   ============================================================ */
/* ============================================================
   Empty state
   ============================================================ */
.tcc-shipments .tcc-empty {
    background: var(--tcc-surface);
    border: 1px dashed var(--tcc-line);
    border-radius: var(--tcc-radius);
    padding: 36px 24px;
    text-align: center;
    color: var(--tcc-muted);
}
.tcc-shipments .tcc-empty__icon {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.55;
}
.tcc-shipments .tcc-empty h3 {
    margin: 0 0 6px;
    color: var(--tcc-ink);
    justify-content: center;
}
.tcc-shipments .tcc-empty h3::before {
    display: none !important;
    content: none;
}
.tcc-shipments .tcc-empty p {
    margin: 0 auto 12px;
    max-width: 480px;
}

/* ============================================================
   History cards
   ============================================================ */
.tcc-shipments .tcc-history {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tcc-shipments .tcc-history-card {
    background: var(--tcc-surface);
    border: 1px solid var(--tcc-line);
    border-left: 5px solid var(--tcc-line);
    border-radius: var(--tcc-radius);
    box-shadow: var(--tcc-shadow-sm);
    padding: 20px 22px;
    margin: 0;
    transition:
        box-shadow 0.18s ease,
        transform 0.12s ease;
}
.tcc-shipments .tcc-history-card:hover {
    box-shadow: var(--tcc-shadow-md);
    transform: translateY(-1px);
}
.tcc-shipments .tcc-history-card.tcc-state-pending {
    border-left-color: #d4a017;
}
.tcc-shipments .tcc-history-card.tcc-state-ready {
    border-left-color: var(--tcc-gold-2);
}
.tcc-shipments .tcc-history-card.tcc-state-dispatched {
    border-left-color: #2e7d32;
}

.tcc-shipments .tcc-history-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}
.tcc-shipments .tcc-history-card__head > div {
    min-width: 0;
}
.tcc-shipments .tcc-history-card__title {
    margin: 0;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--tcc-ink);
    display: block;
    line-height: 1.2;
}
.tcc-shipments .tcc-history-card__title::before {
    display: none !important;
    content: none;
}
.tcc-shipments .tcc-history-card__sub {
    color: var(--tcc-muted);
    font-size: 12.5px;
    margin-top: 4px;
}

.tcc-shipments .tcc-history-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}
.tcc-shipments .tcc-history-status__icon {
    font-size: 13px;
}
.tcc-shipments .tcc-state-pending .tcc-history-status {
    background: #fff8e1;
    color: #7a5d00;
    border-color: #f0d98a;
}
.tcc-shipments .tcc-state-ready .tcc-history-status {
    background: var(--tcc-gold-soft);
    color: var(--tcc-gold-2);
    border-color: #e6cf95;
}
.tcc-shipments .tcc-state-dispatched .tcc-history-status {
    background: var(--tcc-success-bg);
    color: var(--tcc-success-ink);
    border-color: var(--tcc-success-edge);
}

.tcc-shipments .tcc-history-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px 20px;
    padding: 14px 0;
    border-top: 1px solid var(--tcc-line);
    border-bottom: 1px solid var(--tcc-line);
    margin: 0 0 14px;
    list-style: none;
}
.tcc-shipments .tcc-history-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.tcc-shipments .tcc-history-meta__label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--tcc-muted);
    line-height: 1.2;
}
.tcc-shipments .tcc-history-meta__value {
    font-size: 14px;
    color: var(--tcc-ink);
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.tcc-shipments .tcc-pay {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    text-decoration: none !important;
}
.tcc-shipments .tcc-pay-paid {
    color: var(--tcc-success-ink);
}
.tcc-shipments a.tcc-pay-due {
    color: var(--tcc-gold-2) !important;
    border-bottom: 1px dashed var(--tcc-gold-2);
    padding-bottom: 1px;
}
.tcc-shipments a.tcc-pay-due:hover {
    color: var(--tcc-gold-1) !important;
    border-bottom-style: solid;
}
.tcc-shipments .tcc-pay-quote {
    display: inline-flex;
    align-items: center;
    color: #7a5d00;
    background: #fff8e1;
    border: 1px solid #f0d98a;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.tcc-shipments .tcc-history-orders,
.tcc-shipments .tcc-history-tracking,
.tcc-shipments .tcc-history-note {
    margin: 0 0 14px;
}
.tcc-shipments .tcc-history-orders:last-child,
.tcc-shipments .tcc-history-tracking:last-child,
.tcc-shipments .tcc-history-note:last-child {
    margin-bottom: 0;
}

.tcc-shipments .tcc-history-orders__list,
.tcc-shipments .tcc-history-tracking__list {
    list-style: none !important;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.tcc-shipments .tcc-history-orders__list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--tcc-surface-2);
    border: 1px solid var(--tcc-line);
    border-radius: 999px;
    font-size: 13px;
    margin: 0;
    list-style: none;
}
.tcc-shipments .tcc-history-orders__list li::before {
    display: none;
    content: none;
}
.tcc-shipments .tcc-history-orders__list a {
    color: var(--tcc-gold-2) !important;
    font-weight: 700;
    text-decoration: none !important;
}
.tcc-shipments .tcc-history-orders__list a:hover {
    text-decoration: underline !important;
}
.tcc-shipments .tcc-history-orders__status {
    font-size: 11px;
    color: var(--tcc-muted);
    text-transform: lowercase;
}

.tcc-shipments .tcc-history-tracking__list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--tcc-gold-soft);
    border: 1px solid #e6cf95;
    border-radius: 6px;
    font-size: 13px;
    margin: 0;
    list-style: none;
}
.tcc-shipments .tcc-history-tracking__list li::before {
    display: none;
    content: none;
}
.tcc-shipments .tcc-history-tracking__list code {
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    color: var(--tcc-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tcc-shipments .tcc-history-tracking__list a {
    color: var(--tcc-gold-2) !important;
    text-decoration: none !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tcc-shipments .tcc-history-tracking__list a:hover {
    text-decoration: underline !important;
}
.tcc-shipments .tcc-history-tracking__provider {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tcc-muted);
    font-weight: 700;
}

.tcc-shipments .tcc-history-note blockquote {
    margin: 8px 0 0;
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 3px solid #d4a017;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    border-radius: 4px;
    color: #3a2f00;
    font-size: 13.5px;
    line-height: 1.5;
    font-style: italic;
    quotes: none;
}
.tcc-shipments .tcc-history-note blockquote::before,
.tcc-shipments .tcc-history-note blockquote::after {
    content: none;
}

@media (max-width: 640px) {
    .tcc-shipments .tcc-history-card {
        padding: 16px;
    }
    .tcc-shipments .tcc-history-card__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .tcc-shipments .tcc-history-card__head {
        flex-direction: column;
        align-items: stretch;
    }
    .tcc-shipments .tcc-history-status {
        align-self: flex-start;
    }
}

/* ----- Dispatch-after fieldset & order availability ----- */
.tcc-shipments-table .tcc-order-row--pending td {
    background: #fffbe6;
}
.tcc-shipments-table .tcc-status-hint {
    color: #856404;
    font-style: italic;
    font-size: 12px;
}

.tcc-shipments .tcc-dispatch-after {
    margin: 22px 0 18px;
    padding: 18px 22px 20px;
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius);
    background: var(--tcc-surface);
    box-shadow: var(--tcc-shadow-sm);
}
.tcc-shipments .tcc-dispatch-after__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tcc-ink);
    line-height: 1.3;
}
.tcc-shipments .tcc-dispatch-after__legend-icon {
    font-size: 17px;
    line-height: 1;
}
.tcc-shipments .tcc-dispatch-after .tcc-required {
    color: #b32d2e;
    font-weight: 700;
    margin-left: 2px;
}
.tcc-shipments .tcc-dispatch-after__hint {
    margin: 6px 0 16px;
    font-size: 13.5px;
    color: var(--tcc-muted);
    line-height: 1.5;
}

.tcc-shipments .tcc-dispatch-after__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 720px) {
    .tcc-shipments .tcc-dispatch-after__options {
        grid-template-columns: 1fr;
    }
}

.tcc-shipments .tcc-dispatch-after__option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    background: var(--tcc-surface);
    margin: 0;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
    position: relative;
}
.tcc-shipments .tcc-dispatch-after__option:hover {
    border-color: var(--tcc-gold-1);
    background: var(--tcc-surface-2);
}
.tcc-shipments .tcc-dispatch-after__option.is-selected,
.tcc-shipments .tcc-dispatch-after__option:has(input:checked) {
    border-color: var(--tcc-gold-2);
    background: var(--tcc-gold-soft);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.18);
}
.tcc-shipments .tcc-dispatch-after__radio {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--tcc-gold-2);
    cursor: pointer;
}
.tcc-shipments .tcc-dispatch-after__option-icon {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    color: var(--tcc-gold-2);
}
.tcc-shipments .tcc-dispatch-after__option-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.tcc-shipments .tcc-dispatch-after__option-text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--tcc-ink);
    line-height: 1.3;
}
.tcc-shipments .tcc-dispatch-after__option-text small {
    color: var(--tcc-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.tcc-shipments .tcc-dispatch-after__date {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px dashed var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    background: var(--tcc-surface);
    opacity: 0.55;
    transition:
        opacity 0.15s ease,
        border-color 0.15s ease;
    width: 100%;
}
.tcc-shipments
    .tcc-dispatch-after__option.is-selected
    .tcc-dispatch-after__date,
.tcc-shipments
    .tcc-dispatch-after__option:has(input:checked)
    .tcc-dispatch-after__date,
.tcc-shipments .tcc-dispatch-after__date.is-enabled {
    opacity: 1;
    border-color: var(--tcc-gold-1);
    border-style: solid;
}
.tcc-shipments .tcc-dispatch-after__date-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--tcc-muted);
}
.tcc-shipments .tcc-dispatch-after__date input[type="date"] {
    padding: 8px 10px;
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--tcc-ink);
    background: var(--tcc-surface);
    width: 100%;
    max-width: 240px;
    box-sizing: border-box;
}
.tcc-shipments .tcc-dispatch-after__date input[type="date"]:focus {
    outline: none;
    border-color: var(--tcc-gold-1);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.2);
}
.tcc-shipments .tcc-dispatch-after__date input[type="date"]:disabled {
    background: var(--tcc-surface-2);
    color: var(--tcc-muted);
    cursor: not-allowed;
}

/* === Order items breakdown ============================================== */
.tcc-shipments button.tcc-order-toggle,
.tcc-shipments .tcc-order-toggle {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: var(--tcc-surface) !important;
    border: 1px solid var(--tcc-gold-1) !important;
    border-radius: 999px !important;
    min-width: 46px !important;
    width: auto !important;
    height: 28px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    color: var(--tcc-gold-2) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease !important;
}
.tcc-shipments button.tcc-order-toggle:hover,
.tcc-shipments .tcc-order-toggle:hover {
    background: var(--tcc-gold-soft) !important;
    color: var(--tcc-ink) !important;
    border-color: var(--tcc-gold-2) !important;
    box-shadow: 0 2px 6px rgba(201, 160, 74, 0.25) !important;
}
.tcc-shipments .tcc-order-toggle:active {
    transform: translateY(1px);
}
.tcc-shipments .tcc-order-toggle:focus-visible {
    outline: 2px solid var(--tcc-gold-1) !important;
    outline-offset: 2px !important;
}
.tcc-shipments .tcc-order-toggle__chevron {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.18s ease;
}
.tcc-shipments .tcc-order-toggle__count {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 700;
    color: inherit;
}
.tcc-shipments
    .tcc-order-toggle[aria-expanded="true"]
    .tcc-order-toggle__chevron {
    transform: rotate(90deg);
}
.tcc-shipments .tcc-order-items-row > td {
    background: var(--tcc-surface-2);
    padding: 14px 16px;
    border-top: 1px dashed var(--tcc-line);
}
.tcc-shipments .tcc-order-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.tcc-shipments .tcc-order-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--tcc-surface);
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    padding: 10px;
}
.tcc-shipments .tcc-order-item__media {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: var(--tcc-radius-sm);
    overflow: hidden;
    background: var(--tcc-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tcc-shipments .tcc-order-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tcc-shipments .tcc-order-item__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tcc-shipments .tcc-order-item__name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--tcc-ink);
    line-height: 1.35;
    word-break: break-word;
}
.tcc-shipments .tcc-order-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: var(--tcc-muted);
}
.tcc-shipments .tcc-order-item__meta-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 10.5px;
    color: var(--tcc-muted);
    margin-right: 2px;
}
.tcc-shipments .tcc-order-item__eta--ready {
    color: #2e7d32;
    font-weight: 600;
}
.tcc-shipments .tcc-order-item__eta--upcoming {
    color: #a37a2c;
    font-weight: 600;
}

/* === Order dispatch window + per-item stock state ====================== */
.tcc-shipments .tcc-status-awaiting {
    display: inline-block;
    color: #856404;
    font-weight: 700;
    font-size: 13px;
}
.tcc-shipments .tcc-order-arrival {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--tcc-ink);
    line-height: 1.45;
}
.tcc-shipments .tcc-order-arrival__label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    font-size: 10.5px;
    color: var(--tcc-muted);
    margin-right: 4px;
    display: inline-block;
}
.tcc-shipments .tcc-order-arrival__value {
    font-weight: 600;
    color: var(--tcc-ink);
}
.tcc-shipments button.tcc-order-toggle-link,
.tcc-shipments .tcc-order-toggle-link {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--tcc-gold-2) !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
}
.tcc-shipments button.tcc-order-toggle-link:hover,
.tcc-shipments .tcc-order-toggle-link:hover,
.tcc-shipments button.tcc-order-toggle-link:focus,
.tcc-shipments .tcc-order-toggle-link:focus {
    background: transparent !important;
    color: var(--tcc-ink) !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}
.tcc-shipments .tcc-order-toggle-link:focus-visible {
    outline: 2px solid var(--tcc-gold-1) !important;
    outline-offset: 2px !important;
}
.tcc-shipments .tcc-order-toggle-link__text {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tcc-shipments .tcc-order-toggle-link:hover .tcc-order-toggle-link__text {
    text-decoration: none;
}
.tcc-shipments .tcc-order-toggle-link__arrow {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.18s ease;
}
.tcc-shipments
    .tcc-order-toggle-link[aria-expanded="true"]
    .tcc-order-toggle-link__arrow {
    transform: rotate(180deg);
}
.tcc-shipments .tcc-order-item__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.tcc-shipments .tcc-order-item__stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}
.tcc-shipments .tcc-order-item__stock--instock {
    color: #2e7d32;
    background: #eaf6ec;
    border-color: #c8e6cc;
}
.tcc-shipments .tcc-order-item__stock--backorder {
    color: #a37a2c;
    background: var(--tcc-gold-soft);
    border-color: var(--tcc-gold-1);
}
.tcc-shipments .tcc-order-item__stock--pending {
    color: #856404;
    background: #fff4d6;
    border-color: #f0d98a;
}

/* ============================================================
   Insurance opt-in
   ============================================================ */
.tcc-shipments .tcc-insurance {
    margin: 18px 0 4px;
    padding: 16px 18px;
    background: var(--tcc-surface);
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius);
    box-shadow: var(--tcc-shadow-sm);
}

.tcc-shipments .tcc-insurance__title {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tcc-ink);
}
.tcc-shipments .tcc-insurance__title-icon {
    font-size: 18px;
    line-height: 1;
}

.tcc-shipments .tcc-insurance__option {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 10px 12px;
    margin: 0;
    border: 1px solid var(--tcc-line);
    border-radius: var(--tcc-radius-sm);
    background: var(--tcc-surface-2);
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}
.tcc-shipments .tcc-insurance__option:hover {
    border-color: var(--tcc-gold-1);
    background: #fffaf0;
}
.tcc-shipments .tcc-insurance__option:has(.tcc-insurance__checkbox:checked) {
    border-color: var(--tcc-gold-2);
    background: var(--tcc-gold-soft);
    box-shadow: var(--tcc-shadow-sm);
}

.tcc-shipments .tcc-insurance__check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Force a sane size — some themes blow checkboxes up to full width. */
.tcc-shipments .tcc-insurance__checkbox,
.tcc-shipments input[type="checkbox"].tcc-insurance__checkbox {
    appearance: auto;
    -webkit-appearance: auto;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--tcc-gold-2);
    cursor: pointer;
    flex: 0 0 auto;
}

.tcc-shipments .tcc-insurance__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}
.tcc-shipments .tcc-insurance__label {
    font-weight: 600;
    color: var(--tcc-ink);
    line-height: 1.35;
}
.tcc-shipments .tcc-insurance__hint {
    font-size: 12px;
    color: var(--tcc-muted);
    line-height: 1.35;
}

.tcc-shipments .tcc-insurance__pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: 0 0 auto;
    text-align: right;
    font-size: 14px;
    color: var(--tcc-ink);
}
.tcc-shipments .tcc-insurance__pricing:empty {
    display: none;
}
.tcc-shipments .tcc-insurance__strike {
    text-decoration: line-through;
    color: var(--tcc-muted);
    font-size: 13px;
}
.tcc-shipments .tcc-insurance__due {
    font-weight: 600;
}
.tcc-shipments .tcc-insurance__due strong {
    color: var(--tcc-gold-2);
}
.tcc-shipments .tcc-insurance__due--free {
    color: var(--tcc-success-ink);
    font-weight: 700;
}
.tcc-shipments .tcc-insurance__saved {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--tcc-success-bg);
    border: 1px solid var(--tcc-success-edge);
    color: var(--tcc-success-ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* When pricing is visible we hide the "select orders" hint. */
.tcc-shipments
    .tcc-insurance__option:has(.tcc-insurance__pricing:not(:empty))
    .tcc-insurance__hint--empty {
    display: none;
}

@media (max-width: 540px) {
    .tcc-shipments .tcc-insurance__option {
        flex-wrap: wrap;
    }
    .tcc-shipments .tcc-insurance__pricing {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        padding-left: 34px;
    }
}
