/* =====================================================================
   SHIM-ME Hub — Sticky Calculator button
   Fixed-position floating button. No scoping needed — there's only
   ever one instance per page.
   ===================================================================== */

.shim-sticky {
  position: fixed;
  z-index: 9900;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--shim-red);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.25s ease,
    background 0.15s ease;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

/* ---- Visible state ---- */
.shim-sticky.is-on {
  transform: translateY(0);
  opacity: 1;
}

.shim-sticky:hover {
  background: #c0181a;
}

/* ---- Position variants ---- */
.shim-sticky.pos-bottom-right  { right: 24px; bottom: 24px; }
.shim-sticky.pos-bottom-left   { left:  24px; bottom: 24px; }
.shim-sticky.pos-bottom-center {
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(140%);
}
.shim-sticky.pos-bottom-center.is-on {
  transform: translateX(-50%) translateY(0);
}

/* ---- Icon square ---- */
.shim-sticky__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  flex-shrink: 0;
}

/* ---- Text column ---- */
.shim-sticky__txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.shim-sticky__lbl {
  font-family: var(--shim-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.85;
  text-transform: uppercase;
}
.shim-sticky__val {
  font-family: var(--shim-display);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.shim-sticky__val b {
  font-weight: 800;
}

/* ---- Arrow ---- */
.shim-sticky__arrow {
  font-family: var(--shim-mono);
  font-size: 18px;
  padding-left: 4px;
  flex-shrink: 0;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .shim-sticky {
    padding: 10px 14px;
    gap: 10px;
    /* Move to bottom-center on mobile regardless of param */
    left: 50% !important;
    right: auto !important;
    bottom: 16px !important;
    transform: translateX(-50%) translateY(140%);
  }
  .shim-sticky.is-on {
    transform: translateX(-50%) translateY(0);
  }
  .shim-sticky__val { font-size: 15px; }
  .shim-sticky__lbl { display: none; }
  .shim-sticky__icon { width: 26px; height: 26px; font-size: 12px; }
}
