/* ==========================================================================
   Корзина (woocommerce/cart/cart.php + dist/scripts/cart.js).
   Основний вигляд — зі styles.css теми (як у кроці «Panier» старого чекауту),
   тут лише доповнення під живе оновлення.
   ========================================================================== */

/* На /panier/ у body є .woocommerce-cart, і правило теми
   «.woocommerce-cart .woocommerce table.shop_table th» фарбує заголовки «Total panier» у сірий.
   У кроці «Panier» плагіна вони білі. */
.woocommerce-cart .woocommerce .cart_totals table.shop_table th { background-color: #fff; }

/* Одна кнопка «Suivant» — праворуч, як у плагіні */
#absurde-cart .ck-cart-buttons { justify-content: flex-end; }

/* Невірний промокод — червона рамка поля (сама помилка — у тості) */
#absurde-cart .coupon .input-text.is-invalid { border-color: #e2401c; }

/* Під час перерахунку */
/* (спінер на ціні рядка і «Total panier» — jQuery blockUI зі стилями woocommerce.css) */
#absurde-cart.is-busy .ck-cart-next { opacity: .6; pointer-events: none; }
#absurde-cart tr.is-removing { opacity: .35; pointer-events: none; transition: opacity .25s; }

/* Нотіси після AJAX-дій: лише позиція (знизу по центру).
   Вигляд — стандартні .woocommerce-error / -message / -info з woocommerce.css і теми. */
.ck-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 10001;
    width: 760px; max-width: calc(100% - 32px);
    opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
    transition: opacity .25s, transform .25s;
}
.ck-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ck-toast > * { margin: 0 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); cursor: pointer; }
.ck-toast > * + * { margin-top: 8px !important; }

@media (max-width: 767.98px) {
    .ck-toast { bottom: 110px; }
}
