/*
Theme Name: Astra Child
Template: astra
Version: 1.2.0
Text Domain: astra-child
*/

body.woocommerce-account,
.transport-shipments {
    --transport-ink: #172f49;
    --transport-muted: #46596c;
    --transport-accent: #1d5f86;
    --transport-border: #d7e0e9;
    --transport-surface: #f3f7fa;
    --transport-current: #e9f4f3;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
    min-width: 0;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
    margin-bottom: 1.25rem;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link {
    list-style: none;
    background: transparent;
    border: 0;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .85rem;
    border: 1px solid var(--transport-border);
    border-radius: .5rem;
    color: var(--transport-ink);
    background: #fff;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link:not(.is-active) a:hover {
    background: var(--transport-surface);
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a[aria-current="page"] {
    border-color: var(--transport-accent);
    background: var(--transport-ink);
    color: #fff;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a:focus-visible,
.transport-shipments .woocommerce-pagination a:focus-visible {
    outline: 2px solid var(--transport-accent);
    outline-offset: 2px;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login {
    max-width: 30rem;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 1.75rem);
    border-color: var(--transport-border);
    border-radius: .75rem;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login input.input-text,
body.woocommerce-account .woocommerce form.woocommerce-form-login button[type="submit"] {
    min-height: 44px;
}

.transport-shipments {
    min-width: 0;
    margin-block: 1.5rem;
    color: var(--transport-ink);
}

.transport-shipments .transport-shipments__heading {
    margin: 0 0 .85rem;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem);
    line-height: 1.25;
    color: var(--transport-ink);
}

.transport-shipments .account-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--transport-border);
    border-radius: .75rem;
    scrollbar-color: #9aaebf transparent;
}

.transport-shipments table.woocommerce-orders-table {
    width: 100%;
    margin: 0;
    background: #fff;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .875rem;
    line-height: 1.4;
}

.transport-shipments .account-table-scroll .woocommerce-orders-table tr > :is(th, td) {
    padding: .75rem .6rem;
    border: 0;
    border-bottom: 1px solid var(--transport-border);
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

.transport-shipments .woocommerce-orders-table .nobr {
    white-space: normal;
}

.transport-shipments .woocommerce-orders-table thead th {
    background: var(--transport-surface);
    color: var(--transport-ink);
}

.transport-shipments .woocommerce-orders-table tbody tr:nth-child(even) {
    background: #fafcfd;
}

.transport-shipments .woocommerce-orders-table tbody tr:last-child > * {
    border-bottom: 0;
}

.transport-shipments .woocommerce-orders-table__cell-order-number {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.transport-shipments .woocommerce-orders-table__cell-billing_postcode {
    color: #174e50;
    font-weight: 650;
}

.transport-shipments__label {
    display: none;
}

.transport-shipments__value {
    white-space: pre-line;
}

.transport-shipments .woocommerce-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
}

.transport-shipments .woocommerce-pagination a.woocommerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .5rem .9rem;
    margin: 0;
    float: none;
    border-radius: .5rem;
    line-height: 1.3;
}

@media (min-width: 1101px) {
    .transport-shipments table.woocommerce-orders-table {
        table-layout: fixed;
    }

    .transport-shipments .woocommerce-orders-table__header-order-number {
        width: 6%;
    }

    .transport-shipments .woocommerce-orders-table__header-billing_address_1 {
        width: 10%;
    }

    .transport-shipments .woocommerce-orders-table__header-billing_city {
        width: 11%;
    }

    .transport-shipments .woocommerce-orders-table__header-billing_postcode,
    .transport-shipments .woocommerce-orders-table__header-client {
        width: 13%;
    }

    .transport-shipments .woocommerce-orders-table__header-shipping_address_1,
    .transport-shipments .woocommerce-orders-table__header-billing_address_2 {
        width: 9%;
    }

    .transport-shipments .woocommerce-orders-table__header-shipping_postcode {
        width: 6%;
    }

    .transport-shipments .woocommerce-orders-table__header-shipping_address_2 {
        width: 8%;
    }

    .transport-shipments .woocommerce-orders-table__header-order_comments {
        width: 15%;
    }
}

@media (max-width: 1100px) {
    .transport-shipments .account-table-scroll {
        overflow: visible;
        border: 0;
    }

    .transport-shipments table.woocommerce-orders-table {
        display: block;
        background: transparent;
    }

    .transport-shipments table.woocommerce-orders-table thead {
        display: table-header-group;
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .transport-shipments .woocommerce-orders-table tbody {
        display: grid;
        gap: .85rem;
    }

    .transport-shipments table.woocommerce-orders-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .7rem 1rem;
        padding: .85rem;
        border: 1px solid var(--transport-border);
        border-radius: .75rem;
        background: #fff;
    }

    .transport-shipments .woocommerce-orders-table tbody tr:nth-child(even) {
        background: #fff;
    }

    .transport-shipments .account-table-scroll table.woocommerce-orders-table tbody tr > :is(th, td) {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        background: none;
        text-align: left !important;
    }

    .transport-shipments table.woocommerce-orders-table tbody tr td::before {
        content: none;
    }

    .transport-shipments table.woocommerce-orders-table tbody tr th.woocommerce-orders-table__cell-order-number {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: .5rem;
        grid-column: 1 / -1;
        padding-bottom: .6rem;
        border-bottom: 1px solid var(--transport-border);
        font-size: 1.05rem;
    }

    .transport-shipments .woocommerce-orders-table__cell-billing_address_1,
    .transport-shipments .woocommerce-orders-table__cell-billing_city,
    .transport-shipments .woocommerce-orders-table__cell-billing_postcode,
    .transport-shipments .woocommerce-orders-table__cell-client,
    .transport-shipments .woocommerce-orders-table__cell-order_comments {
        grid-column: 1 / -1;
    }

    .transport-shipments table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-billing_postcode {
        padding: .5rem .65rem;
        border-radius: .4rem;
        background: var(--transport-current);
    }

    .transport-shipments__label {
        display: block;
        margin-bottom: .15rem;
        color: var(--transport-muted);
        font-size: .78rem;
        font-weight: 600;
    }

    .transport-shipments .woocommerce-orders-table__cell-order-number .transport-shipments__label {
        margin: 0;
        font-size: .9rem;
    }

    .transport-shipments .transport-shipments__value {
        display: block;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .transport-shipments .woocommerce-orders-table tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 520px) {
    body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link {
        flex: 1 1 calc(50% - .25rem);
        min-width: 0;
    }
}




