/* Cart V2 (boni-de experiment first, owner Yaroslav 2026-12-03):
 * - Mobile bottom-sheet drawer (~86% height) & desktop right drawer (440px)
 * - 2-column Amazon-style item cards: larger product photo left, title/price/qty pill/actions cleanly on right
 * - Unobstructed Shop-style carousels (FBT & Saved) with sleek "+ 1" pill beside price (no overlay badge/tooltip)
 * - Sticky drawer footer & sticky mobile /shop/cart footer with collapsible neutral "Rabattcode +" + Checkout CTA
 * - PDP Save (heart) + Share buttons & smooth flying product-to-cart thumbnail animation
 */

/* ===== Drawer shell (mobile bottom-sheet + desktop right drawer) ===== */
.offcanvas.sf-cart-v2-offcanvas {
  --sf-cv2-accent: var(--primary, #69A424);
  --sf-cv2-text: #111827;
  --sf-cv2-muted: #64748b;
  --sf-cv2-border: #e5e7eb;
  --sf-cv2-surface: #f8fafc;
  width: 440px;
  max-width: 100vw;
  background: #fff;
  color: var(--sf-cv2-text);
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.18);
  border-left: 1px solid var(--sf-cv2-border);
}
@media (max-width: 767.98px) {
  .offcanvas.sf-cart-v2-offcanvas.offcanvas-end {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 86dvh;
    max-height: 86dvh;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.22);
    transform: translateY(100%);
  }
  .offcanvas.sf-cart-v2-offcanvas.offcanvas-end.show,
  .offcanvas.sf-cart-v2-offcanvas.offcanvas-end.showing {
    transform: translateY(0);
  }
}

.sf-cv2-drawer {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  font-family: inherit;
}
.sf-cv2-handle {
  display: none;
}
@media (max-width: 767.98px) {
  .sf-cv2-handle {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: #d1d5db;
    margin: 8px auto 2px;
    flex: 0 0 auto;
  }
}

.sf-cv2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sf-cv2-border);
  flex: 0 0 auto;
}
.sf-cv2-head-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.sf-cv2-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-cv2-text);
}
.sf-cv2-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--primary, #69A424) 14%, #fff);
  color: var(--primary, #69A424);
  font-size: 0.78rem;
  font-weight: 700;
}
.sf-cv2-clear {
  font-size: 0.78rem;
  color: var(--sf-cv2-muted);
  text-decoration: none;
  margin-left: 2px;
}
.sf-cv2-clear:hover {
  text-decoration: underline;
  color: var(--sf-cv2-text);
}

/* Free-shipping status strip (pinned cleanly at top of drawer / inside FSP block) */
.sf-cv2-shipbar {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--sf-cv2-border);
  flex: 0 0 auto;
}
.sf-cv2-shipbar--card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 14px;
}
.sf-cv2-shipbar-text {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
}
.sf-cv2-shipbar-text svg {
  flex: 0 0 auto;
  color: #16a34a;
}
.sf-cv2-shipbar-track {
  margin-top: 7px;
  height: 6px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.sf-cv2-shipbar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--primary, #69A424);
  transition: width 0.35s ease;
}
.sf-cv2-shipbar.is-free .sf-cv2-shipbar-fill {
  background: #16a34a;
}

/* Scrollable body inside drawer */
.sf-cv2-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 18px;
}

/* Soft Amazon-style status notice (removed / saved with Undo) */
.sf-cv2-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1.5px solid #93c5fd;
  font-size: 0.84rem;
  color: #1e293b;
}
.sf-cv2-notice[hidden] {
  display: none;
}
.sf-cv2-notice-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-cv2-notice-undo {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--primary, #69A424);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 2px 4px;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== 2-column cart item card (larger photo left, all text & actions cleanly right) ===== */
.sf-cv2-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#cart_products.sf-cv2-lines > .o_cart_product + .o_cart_product {
  border-top: 1px solid #e7ebf0;
  margin-top: 0;
  padding-top: 12px;
}
.sf-cv2-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e7ebf0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.sf-cv2-item-img {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}
.sf-cv2-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sf-cv2-item-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-cv2-item-body {
  min-width: 0;
}
.sf-cv2-item-name,
.sf-cv2-drawer a.sf-cv2-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.32;
  color: #111827 !important;
  text-decoration: none;
  margin-bottom: 4px;
}
.sf-cv2-item-name:hover,
.sf-cv2-drawer a.sf-cv2-item-name:hover {
  color: var(--primary, #69A424) !important;
}
.sf-cv2-item-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}
.sf-cv2-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sf-cv2-item-base {
  font-size: 0.77rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

/* Action bar inside right column: clean qty pill + Delete / Save for later / Share */
.sf-cv2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.sf-cv2-qty {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: 999px;
  border: 1.8px solid var(--primary, #69A424);
  background: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.sf-cv2-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: background-color 0.14s;
}
.sf-cv2-qty-btn:hover {
  background: #f1f5f9;
  color: #111827;
}
/* Override Odoo theme's gray input.quantity background cleanly */
.sf-cv2-qty input.sf-cv2-qty-val,
.sf-cv2-qty input.quantity {
  width: 30px;
  min-width: 28px;
  max-width: 34px;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  padding: 0 !important;
  margin: 0 !important;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.sf-cv2-qty input.sf-cv2-qty-val:focus,
.sf-cv2-qty input.quantity:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Mobile pill buttons (Amazon mobile style: full "Save for later" label) */
.sf-cv2-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #d5dde6;
  background: #fff;
  color: #1e293b;
  font-size: 0.79rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s, background-color 0.14s;
}
.sf-cv2-pill:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.sf-cv2-pill--icon {
  width: 32px;
  padding: 0;
}
.sf-cv2-pill-sep {
  display: none;
}

/* Desktop /shop/cart: larger photo + clean inline text links with "|" separators */
@media (min-width: 768px) {
  .sf-cv2-page-lines .sf-cv2-item {
    padding: 16px;
    gap: 16px;
  }
  .sf-cv2-page-lines .sf-cv2-item-img {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
  }
  .sf-cv2-page-lines .sf-cv2-pill {
    height: auto;
    padding: 2px 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--primary, #69A424);
    font-size: 0.84rem;
    font-weight: 500;
  }
  .sf-cv2-page-lines .sf-cv2-pill:hover {
    background: transparent;
    text-decoration: underline;
  }
  .sf-cv2-page-lines .sf-cv2-pill--icon {
    width: auto;
    padding: 2px 4px;
  }
  .sf-cv2-page-lines .sf-cv2-pill-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #d1d5db;
    margin: 0 2px;
  }
  .sf-cv2-page-lines .sf-cv2-share-icon {
    display: none;
  }
  .sf-cv2-page-lines .sf-cv2-share-text {
    display: inline;
  }
}
.sf-cv2-share-text {
  display: none;
}

/* ===== Shop-style horizontal carousels (clean photo + "+ 1" pill beside price) ===== */
.sf-cv2-carousel-block {
  margin-top: 18px;
}
.sf-cv2-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sf-cv2-carousel-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}
.sf-cv2-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.sf-cv2-card {
  flex: 0 0 150px;
  width: 150px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.sf-cv2-page-carousel .sf-cv2-card {
  flex: 0 0 168px;
  width: 168px;
}
.sf-cv2-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eaedf2;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.sf-cv2-card-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.sf-cv2-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sf-cv2-card-rm {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.sf-cv2-card-rm:hover {
  color: #dc2626;
  border-color: #fecaca;
}
.sf-cv2-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.32;
  color: #1f2937;
  text-decoration: none;
  padding: 0 2px;
  min-height: 2.2em;
}
.sf-cv2-card-name:hover {
  color: var(--primary, #69A424);
}
.sf-cv2-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding: 7px 2px 0;
}
.sf-cv2-card-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sf-cv2-card-bottom .sf-cv2-card-add,
.sf-cv2-card-bottom button.boni-fsp__upsell-add {
  position: relative;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 58px !important;
  max-width: 74px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--primary, #69A424) !important;
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}
.sf-cv2-card-add-ico {
  flex: 0 0 auto;
}
.sf-cv2-card-add-txt {
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sf-cv2-card-add:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  color: #fff;
}
.sf-cv2-card-add:active {
  transform: scale(0.95);
}
.sf-cv2-card-bottom .sf-cv2-card-add--link {
  background: #f1f5f9 !important;
  color: #1f2937 !important;
  box-shadow: none;
}
.sf-cv2-card-bottom .sf-cv2-card-add--link:hover {
  background: #e2e8f0 !important;
  color: #111827 !important;
}
.sf-cv2-card-add.is-loading {
  pointer-events: none;
}
.sf-cv2-card-add.is-loading > * {
  opacity: 0;
}
.sf-cv2-card-add.is-loading::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: sfCv2Spin 0.65s linear infinite;
}

/* Instant tactile loading spinner inside qty pill & action pills */
@keyframes sfCv2Spin {
  to { transform: rotate(360deg); }
}
.sf-cv2-qty {
  position: relative;
}
.sf-cv2-qty.is-loading {
  pointer-events: none;
}
.sf-cv2-qty.is-loading .sf-cv2-qty-btn {
  opacity: 0.38;
}
.sf-cv2-qty.is-loading input.sf-cv2-qty-val,
.sf-cv2-qty.is-loading input.quantity {
  color: transparent !important;
}
.sf-cv2-qty.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  margin-top: -7.5px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary, #69A424) 24%, transparent);
  border-top-color: var(--primary, #69A424);
  animation: sfCv2Spin 0.65s linear infinite;
  pointer-events: none;
}
.sf-cv2-pill {
  position: relative;
}
.sf-cv2-pill.is-loading {
  pointer-events: none;
  color: transparent !important;
}
.sf-cv2-pill.is-loading > * {
  opacity: 0;
}
.sf-cv2-pill.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(17, 24, 39, 0.2);
  border-top-color: var(--primary, #69A424);
  animation: sfCv2Spin 0.65s linear infinite;
}
.sf-cv2-totals-updating {
  opacity: 0.55;
  transition: opacity 150ms ease;
}

/* ===== Sticky drawer footer & /shop/cart sticky mobile checkout footer ===== */
.sf-cv2-foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--sf-cv2-border);
  background: #fff;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}
.sf-cv2-discount-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 6px;
}
.sf-cv2-discount-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2937;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.18s;
}
.sf-cv2-discount-bar[aria-expanded="true"] .sf-cv2-discount-plus {
  transform: rotate(45deg);
}
.sf-cv2-discount-panel {
  margin-bottom: 10px;
}
.sf-cv2-discount-panel[hidden] {
  display: none;
}
.sf-cv2-discount-form {
  display: flex;
  gap: 8px;
}
.sf-cv2-discount-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #111827;
  background: #fff;
}
.sf-cv2-discount-input:focus {
  outline: none;
  border-color: var(--primary, #69A424);
}
.sf-cv2-discount-apply {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: #1f2937;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.sf-cv2-discount-apply:hover {
  background: #111827;
  color: #fff;
}
.sf-cv2-discount-apply:disabled {
  opacity: 0.6;
}
.sf-cv2-discount-msg {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.35;
}
.sf-cv2-discount-msg.is-error {
  color: #dc2626;
}
.sf-cv2-discount-msg.is-success {
  color: #15803d;
}
.sf-cv2-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 600;
}
.sf-cv2-coupon-rm {
  border: 0;
  background: transparent;
  color: #065f46;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.sf-cv2-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 10px;
}
.sf-cv2-total-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}
.sf-cv2-total-vat {
  font-size: 0.78rem;
  font-weight: 400;
  color: #64748b;
  margin-left: 4px;
}
.sf-cv2-total-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sf-cv2-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 105, 164, 36), 0.25);
}
.sf-cv2-viewcart-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
}
.sf-cv2-viewcart-link:hover {
  color: #111827;
  text-decoration: underline;
}

/* /shop/cart page Cart V2 summary card (desktop sticky right card, mobile fixed bottom sheet) */
.sf-cv2-page-heading {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}
.sf-cv2-summary-card {
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
.sf-cv2-totals-table td {
  background: transparent !important;
  font-variant-numeric: tabular-nums;
}
.sf-cv2-totals-sub td {
  font-size: 0.86rem;
}
.sf-cv2-totals-grand {
  border-top: 1px solid #f1f5f9;
}
.sf-cv2-totals-grand td {
  font-size: 1.08rem;
}
.sf-cv2-cart-cta-wrap {
  padding-top: 10px;
}

@media (max-width: 991.98px) {
  main.sf-cv2-cart-page {
    padding-bottom: calc(210px + var(--sf-bottombar-h, 53px));
  }
  /* Unify the mobile checkout sheet and the bottom navigation bar into one seamless white bottom dock
     (no stacked double rounded corners, no dark footer peeking between them, no stray Odoo divider lines). */
  body:has(main.sf-cv2-cart-page) .tp-bottombar-component {
    border-radius: 0 !important;
    border-top: 1px solid #eef1f5 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .sf-cv2-cart-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--sf-bottombar-h, 53px) - 1px);
    z-index: 1020;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    width: 100%;
    border: 0 !important;
  }
  body:not(:has(.tp-bottombar-component)) .sf-cv2-cart-sticky {
    bottom: 0;
  }
  .sf-cv2-cart-sticky .sf-cv2-summary-card,
  .sf-cv2-cart-sticky .o_total_card {
    border: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.14) !important;
    margin: 0 !important;
    overflow: hidden;
  }
  .sf-cv2-cart-sticky .card-body,
  .sf-cv2-cart-sticky #cart_total,
  .sf-cv2-cart-sticky .sf-cv2-discount-wrap {
    border: 0 !important;
    border-top: 0 !important;
  }
  .sf-cv2-cart-sticky .card-body {
    padding: 10px 16px 12px !important;
    margin: 0 !important;
  }
  .sf-cv2-cart-sticky #cart_total {
    padding: 0 !important;
    margin: 0 !important;
  }
  .sf-cv2-cart-sticky .sf-cv2-discount-bar {
    padding: 2px 0;
    margin-bottom: 4px;
    font-size: 0.86rem;
  }
  .sf-cv2-cart-sticky .sf-cv2-totals-sub td {
    font-size: 0.78rem;
    padding-bottom: 2px !important;
  }
  .sf-cv2-cart-sticky .sf-cv2-totals-grand td {
    font-size: 1.04rem;
    padding-top: 5px !important;
  }
  .sf-cv2-cart-sticky .sf-cv2-cart-cta-wrap {
    padding-top: 8px;
  }
  .sf-cv2-cart-sticky .sf-cv2-checkout-btn {
    min-height: 48px;
    padding: 10px 16px;
  }
  .sf-cv2-mobile-guarantee .o_boni_legal_guarantee {
    margin-top: 0 !important;
  }
}

/* ===== PDP secondary actions: Save (heart) + Share ===== */
body[data-sf-cart-v2="1"] #product_option_block .o_add_wishlist_dyn {
  display: none !important;
}
.sf-pdp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
  width: 100%;
}
.sf-pdp-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dce1e7;
  background: #fff;
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.sf-pdp-act-btn:hover {
  background: #f8fafc;
  border-color: #bfc7d1;
  color: #111827;
}
.sf-pdp-act-btn:active {
  transform: scale(0.98);
}
.sf-pdp-act-btn.is-saved {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}
.sf-pdp-act-btn.is-saved .sf-pdp-heart {
  fill: #e11d48;
  stroke: #e11d48;
}

/* ===== Flying product thumbnail to cart icon ===== */
.sf-cv2-fly-img {
  position: fixed;
  z-index: 1300;
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
  object-fit: contain;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Lightweight toast (e.g. "Link kopiert") */
.sf-cv2-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1250;
  padding: 9px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.26);
  pointer-events: none;
}

/* Subtle bounce animation on header cart badge when an item is added */
@keyframes sfCv2BadgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.32); }
  100% { transform: scale(1); }
}
.sf-cv2-badge-pop {
  animation: sfCv2BadgePop 360ms ease-out;
}

/* EU legal guarantee notice inside Cart V2 drawer (directly below items, before FBT carousel) */
.sf-cv2-guarantee {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  background: #f8fafc;
}
.sf-cv2-guarantee .o_boni_legal_guarantee_drawer {
  margin: 0 !important;
  font-size: 0.79rem !important;
  line-height: 1.35 !important;
  color: #334155;
}
.sf-cv2-guarantee .o_boni_legal_guarantee_title {
  color: #111827;
  font-size: 0.82rem;
  margin-bottom: 1px;
}
.sf-cv2-guarantee .o_boni_legal_guarantee_notice {
  max-width: 100% !important;
  height: auto !important;
}
