/* Float cart panel styles are prefixed with #spiFloatCart.
   WooCommerce's own stylesheet loads on shop and product pages only, and its
   .woocommerce ul.cart_list li img (0,2,3) and .woocommerce a.button (0,2,1)
   outranked the unprefixed .spi-fcart__body rules — so the panel rendered with
   Woo's 32px thumbnails and 3px-radius grey buttons on those pages only.
   The ID takes every rule to 1,x,x, which beats Woo without !important. */
/* ================================================================
   SPI Float Cart — slide-in panel from right
   Usage: add class "float_cart" to any clickable element
   ================================================================ */

/* ── Overlay ── */
.spi-fcart-overlay { position: fixed; inset: 0; background: rgba(11,17,41,0.55); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.spi-fcart-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ── Panel ── */
.spi-fcart { position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: #fff; z-index: 9999; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); box-shadow: -4px 0 40px rgba(11,17,41,0.18); }
.spi-fcart.is-open { transform: translateX(0); }

/* ── Header ── */
.spi-fcart__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(11,17,41,0.08); flex-shrink: 0; }
/* Rendered as <div>, not <h2>/<h3>: the float cart is injected into wp_footer on
   every page, so heading tags here polluted every page's outline. The kit's
   .elementor-kit-12 h2/h3 rules were also supplying the uppercase and the larger
   size, so both are restated here to keep the panel looking identical. */
.spi-fcart__title { font-family: 'Teko', sans-serif; text-transform: uppercase; font-size: 40px; font-weight: 600; letter-spacing: 0.02em; color: #0b1129; margin: 0; display: flex; align-items: center; gap: 10px; }
.spi-fcart__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: #2670aa; color: #fff; font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 700; padding: 0 6px;top:-12px;position:relative}
#spiFloatCart .spi-fcart__close { background: none !important; border: none !important; cursor: pointer; color: #5f6269 !important; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50% !important; transition: background 0.15s ease, color 0.15s ease; padding: 0 !important; }
#spiFloatCart .spi-fcart__close:hover { background: rgba(11,17,41,0.06) !important; color: #0b1129 !important; }
.spi-fcart__close svg { width: 20px; height: 20px; }

/* ── Body (scrollable) ── */
#spiFloatCart .spi-fcart__body { flex: 1; overflow-y: auto; padding: 0; scrollbar-width: thin; scrollbar-color: rgba(11,17,41,0.15) transparent; }
#spiFloatCart .spi-fcart__body::-webkit-scrollbar { width: 4px; }
#spiFloatCart .spi-fcart__body::-webkit-scrollbar-thumb { background: rgba(11,17,41,0.15); border-radius: 2px; }

/* ── Empty state ── */
.spi-fcart__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 60px 24px; text-align: center; height: 100%; color: #5f6269; }
.spi-fcart__empty svg { opacity: 0.3; }
.spi-fcart__empty p { margin: 0; font-size: 15px; line-height: 1.5; }
.spi-fcart__empty a { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; height: 44px; padding: 0 28px; border-radius: 999px; background: linear-gradient(158deg, rgb(20,102,152) 0%, rgb(52,152,201) 58%, rgb(144,224,255) 130%); color: #fff; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-decoration: none; transition: filter 0.2s ease, transform 0.2s ease; }
.spi-fcart__empty a:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Cart items list ── */
.spi-fcart__items { list-style: none; margin: 0; padding: 16px 0; }
.spi-fcart__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 24px; border-bottom: 1px solid rgba(11,17,41,0.06); }
.spi-fcart__item:last-child { border-bottom: none; }

/* ── Item image ── */
.spi-fcart__item-img { width: 72px; height: 72px; border-radius: 10px; object-fit: contain; background: #edf3f9; border: 1px solid rgba(11,17,41,0.07); display: block; }
.spi-fcart__item-img-placeholder { width: 72px; height: 72px; border-radius: 10px; background: #edf3f9; border: 1px solid rgba(11,17,41,0.07); display: flex; align-items: center; justify-content: center; color: rgba(11,17,41,0.2); }

/* ── Item info ── */
.spi-fcart__item-info { min-width: 0; }
.spi-fcart__item-name { font-size: 14px; font-weight: 600; color: #0b1129; line-height: 1.3; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spi-fcart__item-name a { color: inherit; text-decoration: none; }
.spi-fcart__item-name a:hover { color: #2670aa; }
.spi-fcart__item-qty { font-size: 13px; color: #5f6269; margin: 0 0 4px; }
.spi-fcart__item-price { font-size: 14px; font-weight: 700; color: #0b1129; margin: 0; }

/* ── Remove button ── */
.spi-fcart__item-remove { background: none; border: none; cursor: pointer; color: rgba(11,17,41,0.3); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; transition: background 0.15s ease, color 0.15s ease; padding: 0; align-self: start; margin-top: 4px; }
.spi-fcart__item-remove:hover { background: #fef2f2; color: #cc1818; }
.spi-fcart__item-remove svg { width: 14px; height: 14px; }

/* ── Loading state ── */
.spi-fcart__loading { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.spi-fcart__spinner { width: 32px; height: 32px; border: 2.5px solid rgba(38,112,170,0.2); border-top-color: #2670aa; border-radius: 50%; animation: spi-spin 0.7s linear infinite; }
@keyframes spi-spin { to { transform: rotate(360deg); } }

/* ── Footer (totals + checkout) ── */
.spi-fcart__footer { flex-shrink: 0; border-top: 1px solid rgba(11,17,41,0.08); padding: 20px 24px 28px; }
.spi-fcart__subtotal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.spi-fcart__subtotal-label { font-size: 15px; color: #5f6269; }
.spi-fcart__subtotal-value { font-family: 'Teko', sans-serif; font-size: 26px; font-weight: 600; color: #0b1129; line-height: 1; }
.spi-fcart__actions { display: flex; flex-direction: column; gap: 10px; }
.spi-fcart__checkout { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px; background: linear-gradient(158deg, rgb(20,102,152) 0%, rgb(52,152,201) 58%, rgb(144,224,255) 130%); color: #fff; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-decoration: none; border: none; cursor: pointer; transition: filter 0.2s ease, transform 0.2s ease; }
.spi-fcart__checkout:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.spi-fcart__view-cart { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(11,17,41,0.25); color: #0b1129; font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-decoration: none; transition: box-shadow 0.2s ease; }
.spi-fcart__view-cart:hover { box-shadow: inset 0 0 0 1.5px #2670aa; color: #2670aa; }

/* ── WooCommerce mini-cart reset (when using wc template inside) ── */
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart { margin: 0; padding: 0; list-style: none; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__empty-message { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 24px; text-align: center; color: #5f6269; font-size: 15px; }
/* The item <li> has 4 flat children (remove link, name-link-wrapping-the-thumbnail,
   optional variation meta, quantity/stepper) — NOT separate image/content columns —
   so it stays a simple block and the name link itself becomes the image+text row. */
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item { display: block; padding: 16px 24px; border-bottom: 1px solid rgba(11,17,41,0.06); position: relative; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item a.remove { position: absolute; top: 16px; right: 20px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: rgba(11,17,41,0.35); transition: color 0.15s ease, background 0.15s ease; text-decoration: none; border-radius: 50%; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item a.remove svg { width: 15px; height: 15px; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item a.remove:hover { color: #cc1818; background: #fef2f2; }
#spiFloatCart .spi-fcart__body .mini_cart_item a:not(.remove) { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; font-weight: 600; line-height: 1.35; color: #0b1129; text-decoration: none; padding-right: 30px; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item img { flex-shrink: 0; width: 72px; height: 72px; border-radius: 10px; object-fit: contain; background: #edf3f9; border: 1px solid rgba(11,17,41,0.06); }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item dl.variation { margin: 6px 0 0 86px; font-size: 12px; color: #5f6269; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item dl.variation dt, 
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item dl.variation dd { display: inline; margin: 0; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item dl.variation p { margin: 0; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart-item .woocommerce-mini-cart-item__quantity { font-size: 13px; color: #5f6269; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid rgba(11,17,41,0.08); font-size: 15px; font-weight: 600; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__total .woocommerce-Price-amount { font-family: 'Teko', sans-serif; font-size: 22px; color: #0b1129; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__buttons { padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__buttons a { padding: 0; display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 999px; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-decoration: none; transition: filter 0.2s ease, transform 0.2s ease; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__buttons .button.checkout { background: linear-gradient(158deg, rgb(20,102,152) 0%, rgb(52,152,201) 58%, rgb(144,224,255) 130%); color: #fff; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__buttons .button.checkout:hover { filter: brightness(1.08); transform: translateY(-1px); }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__buttons a:not(.checkout) { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(11,17,41,0.25); color: #0b1129; }
#spiFloatCart .spi-fcart__body .woocommerce-mini-cart__buttons a:not(.checkout):hover { box-shadow: inset 0 0 0 1.5px #2670aa; color: #2670aa; }

/* ── Discount breakdown + grand total (missing from WC's mini-cart by default) ── */
#spiFloatCart .spi-fcart__body .spi-fcart__discounts { padding: 0 24px; }
.spi-fcart__discount-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; font-size: 13px; color: #1e8e3e; }
.spi-fcart__discount-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
#spiFloatCart .spi-fcart__coupon-remove { border: none !important; background: rgba(11,17,41,0.08) !important; color: #5f6269 !important; width: 16px; height: 16px; border-radius: 50% !important; font-size: 12px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; }
#spiFloatCart .spi-fcart__coupon-remove:hover { background: #fef2f2 !important; color: #cc1818 !important; }
#spiFloatCart .spi-fcart__body .spi-fcart__grand-total { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 24px 0; font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; color: #0b1129; }
#spiFloatCart .spi-fcart__body .spi-fcart__grand-total .woocommerce-Price-amount { font-family: 'Teko', sans-serif; font-size: 22px; }

/* ── Free shipping progress bar ── */
.spi-fcart__shipbar { flex-shrink: 0; padding: 16px 24px; border-bottom: 1px solid rgba(11,17,41,0.08); }
.spi-fcart__shipbar[hidden] { display: none; }
.spi-fcart__shipbar-msg { margin: 0 0 10px; font-family: 'Roboto', sans-serif; font-size: 13px; color: #0b1129; }
.spi-fcart__shipbar.is-complete .spi-fcart__shipbar-msg { color: #1e8e3e; font-weight: 600; }
.spi-fcart__shipbar-track { position: relative; height: 6px; border-radius: 999px; background: rgba(11,17,41,0.08); }
.spi-fcart__shipbar-fill { height: 100%; border-radius: 999px; background: linear-gradient(158deg, rgb(20,102,152) 0%, rgb(52,152,201) 58%, rgb(144,224,255) 130%); transition: width 0.4s ease; }
.spi-fcart__shipbar.is-complete .spi-fcart__shipbar-fill { background: #1e8e3e; }
.spi-fcart__shipbar-icon { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #2670aa; display: flex; align-items: center; justify-content: center; color: #2670aa; transition: left 0.4s ease; }
.spi-fcart__shipbar-icon svg { width: 12px; height: 12px; }
.spi-fcart__shipbar.is-complete .spi-fcart__shipbar-icon { box-shadow: 0 0 0 2px #1e8e3e; color: #1e8e3e; }

/* ── Return to shop (empty state) ── */
.spi-fcart__return-to-shop { display: flex; justify-content: center; padding: 0 24px 24px; }
.spi-fcart__return-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 28px; border-radius: 999px; background: #0b1129; color: #fff; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-decoration: none; transition: filter 0.2s ease, transform 0.2s ease; }
.spi-fcart__return-btn:hover { filter: brightness(1.15); transform: translateY(-1px); color: #fff; }

/* ── Quantity stepper (replaces the plain qty text) ──
   #spiFloatCart id-scoping + explicit resets are needed because Hello Elementor's
   reset.css styles bare <button>/[type=button] elements with a pink pill border. */
#spiFloatCart .spi-fcart__body .spi-fcart__qty-row { display: flex; align-items: center; gap: 0; margin: 8px 0 0 86px; }
#spiFloatCart .spi-fcart__body .spi-fcart__stepper { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 4px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(11,17,41,0.18); }
#spiFloatCart .spi-fcart__stepper-btn { width: 22px; height: 22px; border: none !important; background: none !important; cursor: pointer; font-size: 15px; line-height: 1; color: #0b1129 !important; display: flex; align-items: center; justify-content: center; border-radius: 50% !important; padding: 0 !important; }
#spiFloatCart .spi-fcart__stepper-btn:hover { background: rgba(11,17,41,0.08) !important; }
#spiFloatCart .spi-fcart__body .spi-fcart__stepper-qty { min-width: 14px; text-align: center; font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 600; color: #0b1129; }
#spiFloatCart .spi-fcart__body .spi-fcart__stepper-price { display: inline-block; margin-left: 12px; font-size: 14px; font-weight: 700; color: #0b1129; }
/* Committing state — dim the whole body while staged changes are being saved. */
#spiFloatCart.is-committing .spi-fcart__body { opacity: 0.5; pointer-events: none; }

/* ── Pending-changes bar (sits above the checkout button) ── */
#spiFloatCart .spi-fcart__body .spi-fcart__pending-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 24px 4px; padding: 12px 14px; border-radius: 12px; background: #fff8e6; box-shadow: inset 0 0 0 1px rgba(138,109,26,0.25); }
#spiFloatCart .spi-fcart__body .spi-fcart__pending-text { flex: 1 1 auto; font-family: 'Roboto', sans-serif; font-size: 12.5px; font-weight: 600; color: #8a6d1a; }
#spiFloatCart .spi-fcart__body .spi-fcart__pending-actions { display: flex; gap: 8px; }
#spiFloatCart .spi-fcart__pending-update { height: 34px; padding: 0 16px !important; border: none !important; border-radius: 999px !important; background: linear-gradient(158deg, rgb(20,102,152) 0%, rgb(52,152,201) 58%, rgb(144,224,255) 130%) !important; color: #fff !important; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
#spiFloatCart .spi-fcart__pending-update:hover { filter: brightness(1.08); }
#spiFloatCart .spi-fcart__pending-discard { height: 34px; padding: 0 14px !important; border: none !important; border-radius: 999px !important; background: transparent !important; color: #8a6d1a !important; box-shadow: inset 0 0 0 1.5px rgba(138,109,26,0.4); font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
#spiFloatCart .spi-fcart__pending-discard:hover { background: rgba(138,109,26,0.1) !important; }

/* ── Leave-guard alert (faded overlay over the whole cart) ── */
.spi-fcart__alert { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(11,17,41,0.55); animation: spi-fcart-fade 0.15s ease; }
.spi-fcart__alert[hidden] { display: none; }
@keyframes spi-fcart-fade { from { opacity: 0; } to { opacity: 1; } }
.spi-fcart__alert-box { background: #fff; border-radius: 16px; padding: 24px 22px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 12px 40px rgba(11,17,41,0.3); }
.spi-fcart__alert-title { margin: 0 0 8px; font-family: 'Teko', sans-serif; text-transform: uppercase; font-size: 28px; font-weight: 600; color: #0b1129; }
.spi-fcart__alert-msg { margin: 0 0 18px; font-family: 'Roboto', sans-serif; font-size: 13.5px; line-height: 1.5; color: #5f6269; }
.spi-fcart__alert-actions { display: flex; flex-direction: column; gap: 10px; }
#spiFloatCart .spi-fcart__alert-btn { height: 46px; border: none !important; border-radius: 999px !important; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; cursor: pointer; }
#spiFloatCart .spi-fcart__alert-update { background: linear-gradient(158deg, rgb(20,102,152) 0%, rgb(52,152,201) 58%, rgb(144,224,255) 130%) !important; color: #fff !important; }
#spiFloatCart .spi-fcart__alert-update:hover { filter: brightness(1.08); }
#spiFloatCart .spi-fcart__alert-discard { background: transparent !important; color: #0b1129 !important; box-shadow: inset 0 0 0 1.5px rgba(11,17,41,0.25); }
#spiFloatCart .spi-fcart__alert-discard:hover { box-shadow: inset 0 0 0 1.5px #cc1818; color: #cc1818 !important; }
#spiFloatCart .spi-fcart__alert-cancel { margin-top: 14px; border: none !important; background: none !important; color: #5f6269 !important; font-family: 'Roboto', sans-serif; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0 !important; }
#spiFloatCart .spi-fcart__alert-cancel:hover { color: #0b1129 !important; }

/* ── Gift wrap upsell + note/shipping/coupon row ── */
#spiFloatCart .spi-fcart__body .spi-fcart__extra-row { display: block; padding: 16px 24px; border-bottom: 1px solid rgba(11,17,41,0.06); }
.spi-fcart__giftwrap { display: flex; align-items: flex-start; gap: 10px; font-family: 'Roboto', sans-serif; font-size: 13px; color: #0b1129; cursor: pointer; margin-bottom: 14px; }
.spi-fcart__giftwrap input { margin-top: 2px; width: 16px; height: 16px; accent-color: #2670aa; }
.spi-fcart__utility-row { display: flex; justify-content: space-between; gap: 8px; }
#spiFloatCart .spi-fcart__utility-btn { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px !important; border: none !important; background: none !important; cursor: pointer; font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 600; text-transform: none !important; color: #5f6269 !important; border-radius: 10px !important; transition: background 0.15s ease, color 0.15s ease; }
#spiFloatCart .spi-fcart__utility-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
#spiFloatCart .spi-fcart__utility-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#spiFloatCart .spi-fcart__utility-btn:hover, #spiFloatCart .spi-fcart__utility-btn.is-active { background: #edf3f9 !important; color: #2670aa !important; }
.spi-fcart__panel { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(11,17,41,0.12); }
#spiFloatCart .spi-fcart__note-input { width: 100%; min-height: 70px; padding: 10px 12px; border-radius: 10px !important; border: 1px solid rgba(11,17,41,0.15) !important; font-family: 'Roboto', sans-serif; font-size: 13px; resize: vertical; box-sizing: border-box; }
.spi-fcart__coupon-row { display: flex; gap: 8px; }
#spiFloatCart .spi-fcart__coupon-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 999px !important; border: 1px solid rgba(11,17,41,0.15) !important; font-family: 'Roboto', sans-serif; font-size: 13px; box-sizing: border-box; }
#spiFloatCart .spi-fcart__panel-save { height: 40px; padding: 0 20px !important; border: none !important; border-radius: 999px !important; background: #0b1129 !important; color: #fff !important; font-family: 'Roboto', sans-serif; font-weight: 700; text-transform: none !important; font-size: 13px; cursor: pointer; margin-top: 10px; transition: filter 0.15s ease; }
#spiFloatCart .spi-fcart__coupon-row .spi-fcart__panel-save { margin-top: 0; }
#spiFloatCart .spi-fcart__panel-save:hover { filter: brightness(1.2); }
.spi-fcart__panel-message { margin: 10px 0 0; font-size: 12px; color: #1e8e3e; }
.spi-fcart__panel-message.is-error { color: #cc1818; }
/* WooCommerce renders the calculator collapsed behind a "Calculate shipping"
   link, toggled by wc-cart.js — which only loads on the cart page. The link is
   hidden below and the form shown directly instead. !important is needed because
   the template writes style="display:none" inline, which no selector can beat. */
#spiFloatCart .spi-fcart__body .spi-fcart__panel .shipping-calculator-form { display: block !important; margin-top: 4px; }
#spiFloatCart .spi-fcart__body .spi-fcart__panel .shipping-calculator-form p { margin: 0 0 10px; }
#spiFloatCart .spi-fcart__body .spi-fcart__panel .shipping-calculator-form select, 
#spiFloatCart .spi-fcart__body .spi-fcart__panel .shipping-calculator-form input[type="text"] { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(11,17,41,0.15); font-family: 'Roboto', sans-serif; font-size: 13px; box-sizing: border-box; }
#spiFloatCart .spi-fcart__body .spi-fcart__panel .shipping-calculator-button { display: none; }

/* The calculator's Update button is a bare <button>, so Hello Elementor's reset
   (button { color:#cc3366 }) coloured it pink. Match the Save/Apply buttons in
   the note and coupon panels. !important mirrors those rules, which need it to
   beat the same reset. */
#spiFloatCart .spi-fcart__body .spi-fcart__panel .shipping-calculator-form button {
  height: 40px;
  padding: 0 20px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #0b1129 !important;
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: none !important;
  cursor: pointer;
}
#spiFloatCart .spi-fcart__body .spi-fcart__panel .shipping-calculator-form button:hover {
  filter: brightness(1.2);
}

/* ── Header trigger icon cart-count badge ── */
.float_cart { position: relative; }
.spi-fcart__header-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: 999px; background: #2670aa; color: #fff; font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; pointer-events: none; z-index: 1; }
.spi-fcart__header-badge[hidden] { display: none; }

/* ── Mobile ── */
@media (max-width: 480px) { .spi-fcart { width: 100%; max-width: 100%; } }
