/* VEIKY V95.1 — isolated storefront orders/scrollbar CSS.
   Loaded after V89; safe when the local V89 file contains earlier customizations. */

/* V95 — Order status contrast and fluid account content. */
/* Labels come from CustomerOrderPresentation; no business status is altered. */
html[data-store-theme='light'] [data-customer-order-card] [data-order-status-label='Cancelado'] {
    color: #8d2731;
    border-color: #dca5ab;
    background: #fff0f1;
}
html[data-store-theme='light'] [data-customer-order-card] [data-order-status-label='Estornado'] {
    color: #51483f;
    border-color: #d7cec2;
    background: #f1eeea;
}
html[data-store-theme='light'] [data-customer-order-card] [data-order-status-label='Pagamento recusado'] {
    color: #8a5219;
    border-color: #e2c48e;
    background: #fff5e7;
}
html[data-store-theme='light'] [data-customer-order-card] :is(
    [data-order-status-label='Pago'],
    [data-order-status-label='Em preparação'],
    [data-order-status-label='Em produção'],
    [data-order-status-label='Preparando envio']
) {
    color: #805527;
    border-color: #d6b78e;
    background: #fbf1e4;
}
html[data-store-theme='light'] [data-customer-order-card] [data-order-status-label='Entregue'] {
    color: #256342;
    border-color: #a3ccb3;
    background: #e9f6ed;
}
html[data-store-theme='light'] [data-customer-order-card] [data-order-status-label='Aguardando pagamento'] {
    color: #5e554b;
    border-color: #d8d0c5;
    background: #f5f2ee;
}
/* Gold-filled 'Enviado' keeps its high-contrast dark text. */
html[data-store-theme='light'] [data-customer-order-card] [data-order-status-label='Enviado'] {
    color: #211911;
    border-color: #caa47a;
    background: #dab68f;
}
html[data-store-theme='light'] [data-customer-order-card]:has([data-order-status-label='Cancelado']) [data-customer-order-support] {
    color: #803c42;
}
html[data-store-theme='light'] [data-customer-order-card]:has([data-order-status-label='Pagamento recusado']) [data-customer-order-support] {
    color: #805827;
}
/* Clamped children of flex/grid cards must be allowed to shrink, not expand the page. */
[data-account-orders-index],
[data-account-orders-list],
[data-customer-order-card],
[data-customer-order-progress],
[data-customer-order-item],
[data-customer-order-actions] {
    min-width: 0;
    max-width: 100%;
}
[data-customer-order-card] [data-customer-order-support] {
    min-width: 0;
    overflow-wrap: anywhere;
}
[data-account-orders-filters] > a {
    max-width: 100%;
}
[data-order-timeline-detailed] {
    min-width: 0;
    width: 100%;
}
[data-order-timeline-detailed] > li:not(:last-child)::after {
    content: '';
    position: absolute;
    z-index: 0;
    width: 1px;
    left: 19px;
    top: 40px;
    bottom: -16px;
    background: rgb(255 255 255 / .2);
}
[data-order-timeline-detailed] > li.is-complete:not(:last-child)::after {
    background: #dab68f;
}
html[data-store-theme='light'] [data-order-timeline-detailed] > li:not(:last-child)::after {
    background: #d8d0c7;
}
html[data-store-theme='light'] [data-order-timeline-detailed] > li.is-complete:not(:last-child)::after {
    background: #cba174;
}
html[data-store-theme='light'] [data-order-timeline-detailed] > li.is-current > span:first-child {
    background: #fff;
}
html[data-store-theme='light'] [data-order-timeline-detailed] > li:not(.is-current):not(.is-complete) > span:first-child {
    border-color: #cdc2b7;
    color: #847a70;
}
@media (min-width: 640px) {
    [data-order-timeline-detailed] > li:not(:last-child)::after {
        top: 22px;
        bottom: auto;
        left: calc(50% + 23px);
        width: calc(100% - 46px + 8px);
        height: 1px;
    }
}

/* VEIKY scrollbar: store-only, subtle dark track and warm gold thumb. */
html[data-store-theme='light'] {
    scrollbar-width: thin;
    scrollbar-color: #b99a75 #f7f4f0;
}
html[data-store-theme='dark'] {
    scrollbar-width: thin;
    scrollbar-color: #917354 #12100e;
}
html[data-store-theme]::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-store-theme='light']::-webkit-scrollbar-track { background: #f7f4f0; }
html[data-store-theme='dark']::-webkit-scrollbar-track { background: #12100e; }
html[data-store-theme]::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
html[data-store-theme='light']::-webkit-scrollbar-thumb { background-color: #b99a75; border-color: #f7f4f0; }
html[data-store-theme='dark']::-webkit-scrollbar-thumb { background-color: #917354; border-color: #12100e; }
html[data-store-theme='light']::-webkit-scrollbar-thumb:hover { background-color: #9c764d; }
html[data-store-theme='dark']::-webkit-scrollbar-thumb:hover { background-color: #dab68f; }
