/**
 * BEX Express 4.0 - izgled kod kupca (checkout, Paket Shop, Hvala, Moj nalog).
 *
 * Pravila:
 * - font se nasleđuje od teme;
 * - akcent je CSS promenljiva --bex-accent (podrazumevano glavna zelena),
 *   prodavnica je menja u temi: :root { --bex-accent: #...; };
 * - boje linija, podloga i tihog teksta računaju se iz currentColor, pa isti
 *   CSS radi i u svetloj i u tamnoj temi (tamna tema: klasa bex-theme-dark
 *   koju postavlja mala skripta kada je pozadina strane tamna).
 */

:root {
    --bex-accent: #2A6F52;
    --bex-accent-strong: #1F5640;
    --bex-on-accent: #fff;
    --bex-surface: #fff;
    --bex-radius: 10px;
    --bex-radius-sm: 7px;
    /* statusi (tekst / podloga) */
    --bex-st-transit: #3E5A80;  --bex-st-transit-bg: #EDF1F6;
    --bex-st-warn: #8A6418;     --bex-st-warn-bg: #F8F1E1;
    --bex-st-error: #A2463D;    --bex-st-error-bg: #F7ECEA;
    --bex-st-return: #9C5D2E;   --bex-st-return-bg: #F6EEE5;
    --bex-st-wine: #86403A;     --bex-st-wine-bg: #F4E9E7;
    --bex-st-ok: #2A6F52;       --bex-st-ok-bg: #EDF4EF;
    --bex-st-muted: #6A736D;    --bex-st-muted-bg: #F3F5F2;
}

.bex-ui,
.bex-delivery-choice,
.bex-parcel-shop-picker,
.bex-parcel-shop-block-picker,
.bex-address-status,
.bex-inline-dropdown,
.bex-customer-card,
.bex-status {
    --bex-line: rgba(127, 127, 127, .3);
    --bex-line: color-mix(in srgb, currentColor 16%, transparent);
    --bex-soft: rgba(127, 127, 127, .08);
    --bex-soft: color-mix(in srgb, currentColor 5%, transparent);
    --bex-muted: #6A736D;
    --bex-muted: color-mix(in srgb, currentColor 64%, transparent);
    --bex-accent-soft: rgba(42, 111, 82, .1);
    --bex-accent-soft: color-mix(in srgb, var(--bex-accent) 9%, transparent);
    --bex-focus: 0 0 0 3px color-mix(in srgb, var(--bex-accent) 28%, transparent);
    box-sizing: border-box;
}

.bex-ui *, .bex-delivery-choice *, .bex-parcel-shop-picker *, .bex-parcel-shop-block-picker *, .bex-customer-card * {
    box-sizing: border-box;
}

.bex-theme-dark {
    --bex-st-transit: #9DB6D8;  --bex-st-transit-bg: rgba(157, 182, 216, .14);
    --bex-st-warn: #E0BF75;     --bex-st-warn-bg: rgba(224, 191, 117, .14);
    --bex-st-error: #E59A91;    --bex-st-error-bg: rgba(229, 154, 145, .14);
    --bex-st-return: #E0A77A;   --bex-st-return-bg: rgba(224, 167, 122, .14);
    --bex-st-wine: #E09A93;     --bex-st-wine-bg: rgba(224, 154, 147, .14);
    --bex-st-ok: #8CCBA9;       --bex-st-ok-bg: rgba(140, 203, 169, .14);
    --bex-st-muted: #B5BCB7;    --bex-st-muted-bg: rgba(181, 188, 183, .12);
}

.bex-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -.14em; }
.bex-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Fokus: mišem bez okvira, tastaturom diskretan zeleni prsten (bez plavog). */
.bex-ui a:focus:not(:focus-visible), .bex-ui button:focus:not(:focus-visible), .bex-ui [tabindex]:focus:not(:focus-visible),
.bex-delivery-choice [tabindex]:focus:not(:focus-visible), .bex-customer-card a:focus:not(:focus-visible), .bex-customer-card button:focus:not(:focus-visible) {
    outline: none; box-shadow: none;
}

/* --------------------------------------------------------------------
 * Dugmad (samo unutar BEX blokova; ne dira dugmad teme)
 * ------------------------------------------------------------------ */
.bex-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 36px; padding: 7px 14px; margin: 0;
    border: 1px solid var(--bex-line); border-radius: var(--bex-radius-sm);
    background: transparent; color: inherit;
    font: inherit; font-size: .875em; font-weight: 600; line-height: 1.2; text-decoration: none;
    cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bex-btn:hover { background: var(--bex-soft); }
.bex-btn:focus-visible { outline: none; box-shadow: var(--bex-focus); }
.bex-btn--primary { background: var(--bex-accent); border-color: var(--bex-accent); color: var(--bex-on-accent); }
.bex-btn--primary:hover { background: var(--bex-accent-strong); border-color: var(--bex-accent-strong); color: var(--bex-on-accent); }
.bex-btn--sm { min-height: 30px; padding: 5px 12px; font-size: .8125em; }
.bex-btn[disabled], .bex-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.bex-link { color: var(--bex-accent); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 2px 0; font: inherit; font-weight: 600; cursor: pointer; }
.bex-link:hover { text-decoration: underline; }
.bex-link:focus-visible { outline: none; box-shadow: var(--bex-focus); border-radius: 3px; }

/* --------------------------------------------------------------------
 * Bedž statusa pošiljke (markup iz bex_status_badge(), mapa statusa 3a)
 * ------------------------------------------------------------------ */
.bex-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: .8125rem; font-weight: 500; line-height: 1.35; white-space: nowrap;
    color: var(--bex-st-muted); background: var(--bex-st-muted-bg);
}
.bex-status .bex-icon { width: 14px; height: 14px; }
.bex-status--prevoz { color: var(--bex-st-transit); background: var(--bex-st-transit-bg); }
.bex-status--paznja { color: var(--bex-st-warn); background: var(--bex-st-warn-bg); }
.bex-status--greska { color: var(--bex-st-error); background: var(--bex-st-error-bg); }
.bex-status--povrat { color: var(--bex-st-return); background: var(--bex-st-return-bg); }
.bex-status--vino { color: var(--bex-st-wine); background: var(--bex-st-wine-bg); }
.bex-status--uspeh { color: var(--bex-st-ok); background: var(--bex-st-ok-bg); }
.bex-status--puno { color: var(--bex-on-accent); background: var(--bex-accent); }
.bex-muted { color: var(--bex-muted); }

/* --------------------------------------------------------------------
 * Checkout: adresa iz BEX adresara (klasični)
 * ------------------------------------------------------------------ */
.woocommerce-checkout .bex-autocomplete-wrap { position: relative; overflow: visible !important; }
.woocommerce-checkout .bex-inline-field input,
.woocommerce-checkout .bex-inline-field .input-text { transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.woocommerce-checkout .bex-inline-field input:focus { outline: none; border-color: var(--bex-accent); box-shadow: 0 0 0 3px rgba(42, 111, 82, .18); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bex-accent) 22%, transparent); }
.woocommerce-checkout .bex-street-field input:disabled { opacity: .6; cursor: not-allowed; }
.woocommerce-checkout .bex-postcode-readonly { cursor: default; opacity: .75; }
.woocommerce-checkout .bex-city-field,
.woocommerce-checkout .bex-street-field,
.woocommerce-checkout .bex-number-field,
.woocommerce-checkout .bex-postcode-field { box-sizing: border-box; }
.woocommerce-checkout .bex-number-field { clear: both; }
.bex-field-hint { display: block; margin-top: 5px; font-size: .8125em; color: #6A736D; color: color-mix(in srgb, currentColor 64%, transparent); }

.bex-inline-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 999999;
    max-height: 300px; overflow-y: auto; padding: 6px;
    background: var(--bex-surface); color: inherit;
    border: 1px solid var(--bex-line); border-radius: var(--bex-radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.bex-inline-option {
    appearance: none; -webkit-appearance: none;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    width: 100%; min-height: 44px; margin: 0; padding: 8px 12px;
    border: 0; border-radius: var(--bex-radius-sm); background: transparent; color: inherit;
    font: inherit; text-align: left; cursor: pointer;
}
.bex-inline-option:hover,
.bex-inline-option.is-active,
.bex-inline-option[aria-selected="true"] { background: var(--bex-accent-soft); }
.bex-inline-option:focus { outline: none; }
.bex-inline-option:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--bex-accent); }
.bex-option-main { max-width: 100%; font-weight: 600; font-size: .9375em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bex-option-meta { max-width: 100%; color: var(--bex-muted); font-size: .8125em; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bex-inline-message { display: flex; align-items: center; gap: 8px; padding: 11px 12px; color: var(--bex-muted); font-size: .875em; }
.bex-mini-spinner {
    width: 14px; height: 14px; flex: 0 0 14px;
    border: 2px solid var(--bex-line); border-top-color: var(--bex-accent); border-radius: 50%;
    animation: bex-inline-spin .7s linear infinite;
}
@keyframes bex-inline-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bex-mini-spinner, .bex-spinner { animation-duration: 2s; } }

.bex-address-status {
    clear: both; display: none; align-items: center; gap: 10px;
    margin: 4px 0 16px; padding: 11px 14px; border-radius: var(--bex-radius-sm);
    font-size: .875em; line-height: 1.4;
}
.bex-address-status.is-ok, .bex-address-status.is-warning { display: flex; }
.bex-address-status.is-ok { color: var(--bex-st-ok); background: var(--bex-st-ok-bg); }
.bex-address-status.is-warning { color: var(--bex-st-warn); background: var(--bex-st-warn-bg); }
.bex-address-status .bex-icon { width: 18px; height: 18px; }
input[id^="bex_"][type="hidden"] { display: none !important; }

@media (min-width: 769px) {
    .woocommerce-checkout .bex-city-field,
    .woocommerce-checkout .bex-number-field { width: 48% !important; float: left !important; clear: both !important; }
    .woocommerce-checkout .bex-street-field,
    .woocommerce-checkout .bex-postcode-field { width: 48% !important; float: right !important; clear: none !important; }
}
@media (max-width: 768px) {
    .woocommerce-checkout .bex-city-field,
    .woocommerce-checkout .bex-street-field,
    .woocommerce-checkout .bex-number-field,
    .woocommerce-checkout .bex-postcode-field { width: 100% !important; float: none !important; clear: both !important; }
    .bex-inline-dropdown { max-height: 240px; }
    .bex-inline-option { min-height: 48px; }
}

/* --------------------------------------------------------------------
 * Način isporuke: dve kartice (12.1 / 12.3)
 * ------------------------------------------------------------------ */
/* Kartice „Način isporuke” zamenjuju iste BEX metode u tabeli pregleda (bez duplog izbora). */
ul.bex-rates-by-cards li.bex-rate-by-card:not(.is-chosen) { display: none !important; }
ul.bex-rates-by-cards li.bex-rate-by-card input[type="radio"] { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
ul.bex-rates-by-cards li.bex-rate-by-card label { margin-left: 0 !important; padding-left: 0 !important; }
ul.bex-rates-by-cards li.bex-rate-by-card label::before { display: none !important; }
.bex-delivery-choice { clear: both; width: 100%; margin: 18px 0 20px; padding: 0; border: 0; min-width: 0; container-type: inline-size; }
.bex-delivery-choice-title { display: block; margin: 0 0 12px; padding: 0; font-size: 1.125em; font-weight: 700; line-height: 1.3; }
.bex-delivery-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bex-delivery-mode {
    position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; align-items: center; gap: 14px;
    width: 100%; min-height: 78px; margin: 0; padding: 18px 18px;
    border: 1px solid var(--bex-line); border-radius: var(--bex-radius);
    background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.bex-delivery-mode:hover { border-color: color-mix(in srgb, var(--bex-accent) 55%, transparent); }
.bex-delivery-mode:focus { outline: none; }
.bex-delivery-mode:focus-visible { outline: none; box-shadow: var(--bex-focus); }
.bex-delivery-mode.is-active { border: 2px solid var(--bex-accent); padding: 17px; background: var(--bex-accent-soft); }
.bex-delivery-icon {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 8px; background: var(--bex-soft); color: var(--bex-muted);
}
.bex-delivery-mode.is-active .bex-delivery-icon { background: var(--bex-surface); color: var(--bex-accent); }
.bex-delivery-icon .bex-icon { width: 20px; height: 20px; }
.bex-delivery-text { min-width: 0; }
.bex-delivery-text strong { display: block; margin-bottom: 3px; font-size: 1em; font-weight: 600; line-height: 1.3; }
.bex-delivery-text small { display: block; font-size: .8125em; line-height: 1.35; color: var(--bex-muted); font-weight: 400; }
.bex-delivery-radio {
    width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--bex-line);
    display: flex; align-items: center; justify-content: center;
}
.bex-delivery-mode.is-active .bex-delivery-radio { border: 0; background: var(--bex-accent); }
.bex-delivery-mode.is-active .bex-delivery-radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bex-on-accent); }
.bex-delivery-mode-note { margin: 12px 0 0; font-size: .875em; line-height: 1.45; color: var(--bex-muted); }
.bex-delivery-pickup-mount { margin-top: 22px; }
.bex-delivery-pickup-mount .bex-parcel-shop-picker { margin: 0; width: 100%; }
body.bex-parcel-mode-active .bex-address-status { display: none !important; }
@media (max-width: 640px) {
    .bex-delivery-choice-grid { grid-template-columns: 1fr; gap: 10px; }
    .bex-delivery-mode { min-height: 68px; padding: 14px; gap: 12px; }
    .bex-delivery-mode.is-active { padding: 13px; }
}

/* --------------------------------------------------------------------
 * Izbor BEX lokacije (12.3), isti za klasični i blokovski checkout
 * ------------------------------------------------------------------ */
.bex-parcel-shop-checkout-row td { padding-top: 12px; padding-bottom: 12px; }
.bex-parcel-shop-picker, .bex-parcel-shop-block-picker { width: 100%; container-type: inline-size; }
.bex-parcel-shop-block-picker { margin: 16px 0; font-size: 0.875rem; }
.bex-parcel-shop-block-picker .bex-ps-block-title { font-size: 1.15em; font-weight: 600; }
.bex-ps-block-title, .bex-ps-heading { margin: 0 0 12px; font-size: 1.125em; font-weight: 700; line-height: 1.3; }
.bex-ps-toolbar { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.bex-ps-search-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.bex-ps-search-wrap .bex-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--bex-muted); pointer-events: none; }
.bex-parcel-shop-picker input.bex-ps-search,
.bex-parcel-shop-block-picker input.bex-ps-search {
    width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 14px 10px 42px;
    border: 1px solid var(--bex-line); border-radius: var(--bex-radius-sm);
    background: transparent; color: inherit; font: inherit;
}
.bex-parcel-shop-picker input.bex-ps-search:focus,
.bex-parcel-shop-block-picker input.bex-ps-search:focus { outline: none; border-color: var(--bex-accent); box-shadow: var(--bex-focus); }
.bex-ps-nearby.bex-btn { flex: 0 0 auto; min-height: 44px; padding: 8px 16px; white-space: nowrap; font-size: .9375em; }
.bex-ps-nearby .bex-icon { width: 18px; height: 18px; }
.bex-ps-results { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bex-ps-results:empty { display: none; }
.bex-ps-selected:empty { display: none; }
.bex-ps-selected { margin-bottom: 12px; }
.bex-ps-card {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin: 0; padding: 17px 18px;
    border: 1px solid var(--bex-line); border-radius: var(--bex-radius);
    background: transparent; list-style: none;
}
.bex-ps-card.is-selected { border: 2px solid var(--bex-accent); padding: 16px 17px; background: var(--bex-accent-soft); }
.bex-ps-card-main { min-width: 0; flex: 1 1 auto; }
.bex-ps-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 1em; line-height: 1.35; }
.bex-ps-badge {
    display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px;
    font-size: .6875rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.4;
    color: var(--bex-st-transit); background: var(--bex-st-transit-bg);
}
.bex-ps-badge--shop { color: var(--bex-st-warn); background: var(--bex-st-warn-bg); }
.bex-ps-badge--branch { color: var(--bex-st-return); background: var(--bex-st-return-bg); }
.bex-ps-address { margin-top: 4px; font-size: .875em; line-height: 1.4; }
.bex-ps-hours { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .8125em; line-height: 1.4; color: var(--bex-muted); }
.bex-ps-hours .bex-icon { width: 14px; height: 14px; }
.bex-ps-actions { display: flex; gap: 14px; align-items: center; flex: 0 0 auto; }
.bex-ps-map { font-size: .875em; color: var(--bex-accent); text-decoration: none; font-weight: 500; }
.bex-ps-map:hover { text-decoration: underline; }
.bex-ps-choose.bex-btn, .bex-ps-change.bex-btn { min-height: 32px; padding: 5px 14px; font-size: .8125em; }
.bex-ps-card.is-selected .bex-ps-change.bex-btn { background: var(--bex-surface); }
.bex-ps-empty, .bex-ps-message { padding: 10px 2px; font-size: .875em; color: var(--bex-muted); }
.bex-ps-message:empty { display: none; }
.bex-ps-message { display: flex; align-items: center; gap: 8px; }
.bex-ps-message.is-error { color: var(--bex-st-error); }
.bex-ps-message.is-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--bex-line); border-top-color: var(--bex-accent); border-radius: 50%; animation: bex-inline-spin .7s linear infinite; }
@media (max-width: 640px) {
    .bex-ps-toolbar { flex-direction: column; }
    .bex-ps-nearby.bex-btn { width: 100%; }
    .bex-ps-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
    .bex-ps-card.is-selected { padding: 13px; }
    .bex-ps-actions { justify-content: space-between; }
    .bex-ps-choose.bex-btn, .bex-ps-change.bex-btn { min-height: 38px; padding: 7px 18px; }
}

/* Uzak prostor (kolona teme, telefon): kartice jedna ispod druge. */
@container (max-width: 560px) {
    .bex-delivery-choice-grid { grid-template-columns: 1fr; gap: 10px; }
    .bex-delivery-mode { min-height: 68px; padding: 14px; gap: 12px; }
    .bex-delivery-mode.is-active { padding: 13px; }
    .bex-ps-toolbar { flex-direction: column; }
    .bex-ps-nearby.bex-btn { width: 100%; }
    .bex-ps-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
    .bex-ps-card.is-selected { padding: 13px; }
    .bex-ps-actions { justify-content: space-between; }
}

/* --------------------------------------------------------------------
 * Kartice kod kupca: BEX mesto preuzimanja (12.4) i praćenje (12.6)
 * ------------------------------------------------------------------ */
.bex-customer-card {
    margin: 0 0 28px; padding: 24px; clear: both;
    border: 1px solid var(--bex-line); border-radius: 14px; background: transparent; color: inherit;
}
.bex-pickup-card { display: flex; align-items: center; gap: 18px; }
.bex-pickup-card__icon {
    display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px;
    border-radius: var(--bex-radius); background: var(--bex-accent-soft); color: var(--bex-accent);
}
.bex-pickup-card__icon .bex-icon { width: 24px; height: 24px; }
.bex-pickup-card__body { flex: 1 1 auto; min-width: 0; }
.bex-card-eyebrow { display: block; margin: 0 0 3px; font-size: .8125em; font-weight: 600; color: var(--bex-accent); }
.bex-pickup-card__name { display: block; margin: 0; font-size: 1.125em; font-weight: 600; line-height: 1.35; }
.bex-pickup-card__address { display: block; margin: 4px 0 0; font-size: .875em; line-height: 1.45; }
.bex-pickup-card__map { flex: 0 0 auto; font-size: .875em; }

.bex-track-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bex-track-card__head .bex-icon { width: 20px; height: 20px; color: var(--bex-accent); }
.bex-track-card__title { flex: 1 1 auto; margin: 0 !important; padding: 0; font-size: 1.25em; font-weight: 700; line-height: 1.3; }
.bex-number-row {
    display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 11px 12px;
    border-radius: var(--bex-radius-sm); background: var(--bex-soft); font-weight: 600; font-size: .9375em;
}
.bex-number-row .bex-icon { width: 18px; height: 18px; color: var(--bex-muted); }
.bex-number-row__value { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bex-copy { font-size: .875em; }
.bex-track-card__eta { margin: 0 0 14px; font-weight: 600; color: var(--bex-accent); }
.bex-track-card__empty { margin: 0; color: var(--bex-muted); }

.bex-timeline { margin: 0 0 18px; padding: 0; list-style: none; }
.bex-timeline__item { position: relative; margin: 0; padding: 0 0 12px 24px; list-style: none; }
.bex-timeline__item::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--bex-line);
}
.bex-timeline__item::after {
    content: ""; position: absolute; left: 5px; top: 16px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--bex-line);
}
.bex-timeline__item:last-child { padding-bottom: 0; }
.bex-timeline__item:last-child::after { display: none; }
.bex-timeline__item.is-current::before { background: var(--bex-accent); }
.bex-timeline__item.is-warning::before { background: var(--bex-st-warn); }
.bex-timeline__item.is-error::before { background: var(--bex-st-error); }
.bex-timeline__title { display: block; font-size: .9375em; line-height: 1.35; }
.bex-timeline__item.is-current .bex-timeline__title { font-weight: 600; }
.bex-timeline__meta { display: block; margin-top: 2px; font-size: .8125em; color: var(--bex-muted); }
.bex-timeline__reason { display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 4px; font-size: .8125em; color: var(--bex-st-warn); background: var(--bex-st-warn-bg); }

/* Moj nalog: kolona „Pošiljka” */
.woocommerce-orders-table__cell-bex-shipment .bex-status { font-size: .8125rem; }
.woocommerce-orders-table__cell-bex-shipment .bex-muted { font-size: .875em; }

@media (max-width: 640px) {
    .bex-customer-card { padding: 18px 16px; border-radius: 12px; }
    .bex-pickup-card { flex-wrap: wrap; gap: 14px; }
    .bex-pickup-card__map { flex-basis: 100%; }
    .bex-track-card__head { flex-wrap: wrap; }
    .bex-track-card__title { font-size: 1.125em; }
}
