/* Cart weight panel. Plain CSS (no Tailwind/LESS) so it behaves the same on Luma and Hyva. Override the --tm-cw-* variables in your theme. */
.tm-cw {
    --tm-cw-accent: #b45309;
    --tm-cw-ok: #15803d;
    --tm-cw-track: #e5e7eb;
    --tm-cw-border: #d1d5db;
    --tm-cw-bg: #f9fafb;
    box-sizing: border-box;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--tm-cw-border);
    border-radius: 0.5rem;
    background: var(--tm-cw-bg);
    color: inherit;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.tm-cw--met { --tm-cw-accent: var(--tm-cw-ok); }

.tm-cw__title {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
}

.tm-cw__text { margin: 0 0 0.5rem; font-weight: 600; }
.tm-cw__remaining { margin: 0.5rem 0 0; color: var(--tm-cw-accent); font-weight: 600; }
.tm-cw__remaining[hidden], .tm-cw[hidden] { display: none; }

.tm-cw__bar {
    display: block;
    width: 100%;
    height: 0.625rem;
    border: 0;
    border-radius: 999px;
    background: var(--tm-cw-track);
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    color: var(--tm-cw-accent);
}
.tm-cw__bar::-webkit-progress-bar { background: var(--tm-cw-track); border-radius: 999px; }
.tm-cw__bar::-webkit-progress-value { background: var(--tm-cw-accent); border-radius: 999px; }
.tm-cw__bar::-moz-progress-bar { background: var(--tm-cw-accent); border-radius: 999px; }

.tm-cw__estimate { margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--tm-cw-border); }
.tm-cw__estimate-title { margin: 0 0 0.4rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.tm-cw__rates { margin: 0; padding: 0; list-style: none; }
.tm-cw__rates li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.2rem 0; }
.tm-cw__rate-price { font-weight: 600; white-space: nowrap; }
.tm-cw__note { margin: 0.25rem 0 0; font-size: 0.8125rem; opacity: 0.8; }
.tm-cw__zip { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.tm-cw__zip input { flex: 1 1 auto; min-width: 0; padding: 0.5rem 0.6rem; border: 1px solid var(--tm-cw-border); border-radius: 0.375rem; font-size: 1rem; }
.tm-cw__zip button { flex: 0 0 auto; min-height: 2.5rem; padding: 0 0.9rem; border: 1px solid var(--tm-cw-border); border-radius: 0.375rem; background: #fff; color: inherit; font-size: 1rem; cursor: pointer; }

/* Mini-cart placement */
.tm-cw--minicart { margin: 0.75rem 0; padding: 0.65rem 0.75rem; font-size: 0.875rem; }

/* Replace the collapsed "Estimate Shipping and Tax" block on the cart page (Luma and Hyva both use #block-shipping). */
.cart-summary:has(.tm-cw[data-hide-native]) #block-shipping,
.tm-cw-hide-native .cart-summary #block-shipping { display: none; }
