/* MON-209: the shipping module owns appearance; the shop owns its font/accent.
   MON-228: the same card as in the side cart (MON-222) on the cart and checkout pages: light card, amount in bold,
   the bar with a truck and the threshold on the right. */
.molfar-inpost-progress {
  width: 100%; min-width: 0; margin: 16px 0; padding: 12px 14px; box-sizing: border-box;
  border-radius: 12px; background: #FBF4F1; color: #1f1f1f;
  font-family: inherit; font-size: var(--molfar-font-size, 13px); line-height: 1.45;
}
.molfar-progress-message { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.molfar-progress-text { min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.molfar-progress-text strong { font-weight: 700; }
.molfar-progress-check { flex: 0 0 16px; align-self: center; color: var(--molfar-success); }
.molfar-progress-track { width: 100%; height: var(--molfar-height, 7px); border-radius: 999px; background: var(--molfar-background); overflow: hidden; }
.molfar-progress-fill { height: 100%; border-radius: inherit; background: var(--molfar-color, var(--accent-1)); transition: width var(--molfar-duration, 400ms) ease, background-color var(--molfar-duration, 400ms) ease; }
.molfar-inpost-progress.is-qualified .molfar-progress-fill { background: var(--molfar-success); }
.molfar-progress-row { display: flex; align-items: center; gap: 10px; }
.molfar-progress-row .molfar-progress-track { flex: 1; min-width: 0; }
.molfar-progress-goal { flex: none; display: inline-flex; align-items: center; gap: 4px; color: #6b6b6b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.molfar-progress-continue { display: inline-block; margin-top: 12px; color: var(--accent-1); font-size: 16px; }
.molfar-progress-continue:hover { color: var(--accent-1); text-decoration: underline; }
.molfar-inpost-progress [hidden] { display: none !important; }
.molfar-cart-coupon { margin: 16px 0; width: 100%; --uikit-input-height: 48px; --uikit-input-padding: 12px 14px; }
.molfar-cart-coupon label { display: block; margin-bottom: 8px; }
.molfar-coupon-actions { display: flex; gap: 8px; margin-top: 8px; }
.molfar-coupon-actions .button { flex: 1; min-width: 0; min-height: 48px; height: auto; padding: 12px 16px; white-space: normal; }
.molfar-coupon-remove { flex: 0 0 48px; height: 48px; border: 1px solid var(--accent-1); border-radius: 5px; color: var(--accent-1); background: transparent; font-size: 24px; cursor: pointer; }
.molfar-coupon-remove:hover { background: var(--fon-kartok); }
.molfar-coupon-actions button:disabled { opacity: .6; cursor: wait; }
.molfar-coupon-error { color: #a93a31; font-size: 13px; }
.molfar-coupon-error:not(:empty) { margin-top: 8px; }
/* The bar stays outside the product scroller, immediately after the header. */
#smca-modal-body.popup-basket { display: flex; flex-direction: column; }
#smca-modal-body .popup-basket-header, #smca-modal-body .popup-basket-footer, .molfar-popup-progress { flex: 0 0 auto; }
#smca-modal-body .popup-basket-body { height: auto !important; min-height: 0; flex: 1 1 auto; }
.molfar-popup-progress { padding: 0 20px; }
.molfar-popup-progress:empty { display: none; }
@media (max-width: 768px) {
  #smca-modal-body.popup-basket { width: 100%; }
  .molfar-popup-progress { padding-right: 16px; padding-left: 16px; }
  #checkout-cart #content > .container { padding-right: 16px; padding-left: 16px; }
  .simple-content [id^="simplecheckout_form_"].container { padding-right: 16px; padding-left: 16px; }
  #checkout-cart .basket-bar { width: 100%; padding-right: 0; padding-left: 0; }
  #simplecheckout_summary .molfar-inpost-progress { width: 100%; margin-right: 0; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .molfar-progress-fill { transition: none; }
}
