/* =======================================================================
   Sticky Bar — Desktop (Animated)
   ======================================================================= */
.oso-sticky-dt {
  position: fixed;
  inset-inline: 24px;
  bottom: 22px;
  z-index: 70;
  
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 18px;
  background: var(--oso-card, #fff);
  border: 1px solid var(--oso-line, #e5e7eb);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);

  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  will-change: opacity, transform;
}
.oso-sticky-dt.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce){
  .oso-sticky-dt { transition: none; }
}

.oso-stk-dt-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.oso-stk-dt-img {
  width: 52px; height: 52px; flex: 0 0 auto; object-fit: cover;
  border: 1px solid var(--oso-line, #e5e7eb); border-radius: 12px; background: #fff;
}
.oso-stk-dt-title {
  max-width: 36vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-weight: 800; color: var(--oso-ink, #1f2937);
}

.oso-stk-dt-center { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; }
.oso-stk-dt-math {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--oso-ink, #1f2937); font-size: 15px;
}
.oso-stk-dt-math .oso-op { opacity: .65; margin-inline: 8px; }
.oso-stk-dt-total { font-size: 17px; font-weight: 800; }

.oso-stk-dt-left { flex: 0 0 auto; }
.oso-stk-dt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 128px; min-height: 46px; line-height: 1;
  padding: .9rem 1.2rem;
  border: 0;
  border-radius: var(--oso-btn-radius, 12px);
  cursor: pointer;
  background: var(--oso-accent, #1e73be) !important;
  color: var(--oso-btn-text, #fff) !important;
  font-weight: 800;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--oso-accent, #1e73be) 28%, transparent);
  transition: background 0.2s ease, filter 0.15s ease;
}
.oso-stk-dt-btn:hover {
  background: var(--oso-accent-hover, var(--oso-accent)) !important;
  color: var(--oso-btn-text, #fff) !important;
  filter: brightness(1);
}

@media (max-width: 991px){
  .oso-sticky-dt { display: none !important; }
}

/* ===== Sticky Bar — Mobile (Image + Button Only) ===== */
#oso-sticky-mb {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 75;
  
  display: flex;
  align-items: center;
  gap: 12px;

  background: var(--oso-card, #fff);
  border-top: 1px solid var(--oso-line, #e5e7eb);
  box-shadow: 0 -8px 18px rgba(0,0,0,.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition: opacity .25s ease, transform .28s ease;
  will-change: opacity, transform;
}
#oso-sticky-mb.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#oso-sticky-mb .oso-stk-mb-img {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--oso-line, #e5e7eb);
  background: #fff;
  flex: 0 0 auto;
}
#oso-sticky-mb .oso-stk-mb-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: .85rem 1rem;
  border: 0;
  border-radius: var(--oso-btn-radius, 12px);
  background: var(--oso-accent, #1e73be) !important;
  color: var(--oso-btn-text, #fff) !important;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--oso-accent, #1e73be) 28%, transparent);
  cursor: pointer;
  transition: background 0.2s ease, filter .15s ease;
}
#oso-sticky-mb .oso-stk-mb-btn:hover {
  background: var(--oso-accent-hover, var(--oso-accent)) !important;
  color: var(--oso-btn-text, #fff) !important;
  filter: brightness(1);
}

@media (min-width: 992px){
  #oso-sticky-mb { display: none !important; }
}