/* PID Shop Enhancements: basket bar (1.7.0). */
.pid-basket-bar[hidden] { display: none !important; }
.pid-basket-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 9; background: #F0F8FA; border-bottom: 2px solid #2EC1EF; box-shadow: 0 4px 12px rgba(0, 32, 50, 0.12); font-family: Helvetica, Arial, sans-serif; transition: background-color 0.3s ease; }
.pid-basket-bar.is-flash { background: #C7ECF5; }
.pid-basket-bar__inner { max-width: 1290px; margin: 0 auto; padding: 0.55rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.pid-basket-bar p { margin: 0; }
.pid-basket-bar__status { color: #002032; font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: baseline; }
.pid-basket-bar__added { font-weight: 700; color: #003F63; }
.pid-basket-bar__vat { color: #898989; font-size: 0.85em; }
.pid-basket-bar__actions { display: flex; align-items: center; gap: 0.5rem; }
.pid-basket-bar .pid-basket-bar__btn:not(#pid-x) { display: inline-flex; align-items: center; min-height: 38px; padding: 0 1.1rem; border-radius: 999px; background: #DB0047; color: #FFFFFF; font: 700 0.92rem/1 Helvetica, Arial, sans-serif; text-decoration: none; border: 2px solid #DB0047; }
.pid-basket-bar .pid-basket-bar__btn:not(#pid-x):hover { background: #B8003C; border-color: #B8003C; }
.pid-basket-bar .pid-basket-bar__btn--ghost:not(#pid-x) { background: #FFFFFF; color: #002032; border-color: #0F71A9; }
.pid-basket-bar .pid-basket-bar__btn--ghost:not(#pid-x):hover { background: #C7ECF5; }
.pid-basket-bar .pid-basket-bar__btn:not(#pid-x):focus-visible { outline: 3px solid #2EC1EF; outline-offset: 2px; }
@media (min-width: 601px) {
  .pid-basket-bar__inner { padding-right: 4.5rem; } /* clear the floating search button */
}
@media (max-width: 600px) {
  .pid-basket-bar__inner { padding: 0.5rem 4rem 0.5rem 0.75rem; }
  .pid-basket-bar__status { font-size: 0.88rem; }
  .pid-basket-bar__actions { width: 100%; }
  .pid-basket-bar .pid-basket-bar__btn:not(#pid-x) { flex: 1 1 auto; justify-content: center; }
}
/* The small "View basket" link WooCommerce adds under a button. */
a.added_to_cart.wc-forward:not(#pid-x) { display: inline-flex; align-items: center; margin-top: 0.5rem; padding: 0.3rem 0.9rem; border: 1.5px solid #0F71A9; border-radius: 999px; background: #FFFFFF; color: #002032; font: 700 0.85rem/1.2 Helvetica, Arial, sans-serif; text-decoration: none; text-transform: none; }
a.added_to_cart.wc-forward:not(#pid-x)::after { content: " \2192"; margin-left: 0.3rem; }
a.added_to_cart.wc-forward:not(#pid-x):hover { background: #C7ECF5; }
/* Show progress while an AJAX add is running (the server can take a few seconds). */
a.add_to_cart_button.loading:not(#pid-x) { opacity: 0.75; cursor: progress; }
a.add_to_cart_button.loading:not(#pid-x)::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 0.5rem; border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #FFFFFF; border-radius: 50%; animation: pid-spin 0.8s linear infinite; vertical-align: middle; }
@keyframes pid-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { a.add_to_cart_button.loading:not(#pid-x)::after { animation: none; } }
/* Once the basket bar is showing it carries View basket, so drop the small link under the button. */
body.pid-has-basket-bar .added_to_cart:not(#pid-x) { display: none !important; }
