/* Cart timer */
.sow-cart-timer-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.sow-cart-timer--warning .sow-cart-timer-display {
    color: #f0506e; /* UIkit danger red */
    animation: sow-pulse 1s ease-in-out infinite;
}

@keyframes sow-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ── Expired offers in archive listings ───────────────────────────────── */
.sow-expired {
    opacity: 0.55;
    filter: grayscale(75%);
    position: relative;
    transition: opacity 0.2s ease;
}
.sow-expired:hover {
    opacity: 0.8;
}
.sow-expired-badge {
    display: inline-block;
    background: #b32d2e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 6px;
}

/* ── Quantity input width ──────────────────────────────────────────────── */
/* Offer table quantity input */
.sow-qty-input {
    width: 80px !important;
    text-align: center;
}
/* Cart page quantity input (WooCommerce default .qty inside SOW offers) */
.woocommerce-cart .cart_item .quantity .qty,
.woocommerce-cart-form .cart_item .quantity .qty {
    width: 80px !important;
    text-align: center;
}

/* ── Hide Product Images on Cart ───────────────────────────────────────── */
.woocommerce-cart-form .product-thumbnail,
.woocommerce table.shop_table .product-thumbnail,
.woocommerce-checkout .product-thumbnail {
    display: none;
}

/* -- Product info popover ---------------------------------------------- */
/* Constrain the click-popover so long descriptions get a fixed reading
   width, a capped height, and scroll internally instead of overflowing
   the table. */
.sow-product-popover {
    width: 360px;
    max-width: calc(100vw - 40px);   /* never wider than the viewport on mobile */
    max-height: 60vh;                /* cap height so it can't cover the whole table */
    overflow-y: auto;                /* scroll long content inside the box */
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-overflow-scrolling: touch;
}
.sow-product-popover .uk-text-small {
    word-break: break-word;          /* prevent long unbroken strings overflowing */
}
/* Slim, unobtrusive scrollbar within the popover */
.sow-product-popover::-webkit-scrollbar {
    width: 8px;
}
.sow-product-popover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
.sow-product-popover::-webkit-scrollbar-track {
    background: transparent;
}
