/* Fixed actions — bottom right (WhatsApp below, back-to-top above) */
:root {
  --mpl-float-right: 1.25rem;
  --mpl-float-bottom: 1.25rem;
  --mpl-float-gap: 0.75rem;
  --mpl-float-whatsapp-h: 3.25rem;
}

@media (min-width: 576px) {
  :root {
    --mpl-float-whatsapp-h: 3rem;
  }
}

.mpl-whatsapp-float {
  position: fixed;
  right: var(--mpl-float-right);
  bottom: var(--mpl-float-bottom);
  left: auto;
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  background: #25d366;
  color: #fff !important;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mpl-whatsapp-float:hover {
  color: #fff !important;
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.mpl-whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.mpl-whatsapp-float .ti {
  font-size: 1.5rem;
  line-height: 1;
}

.mpl-whatsapp-float-label {
  display: none;
}

@media (min-width: 576px) {
  .mpl-whatsapp-float-label {
    display: inline;
  }
}

@media (max-width: 575.98px) {
  .mpl-whatsapp-float {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .mpl-whatsapp-float .ti {
    font-size: 1.75rem;
  }
}

/* Catalog floating actions — separate icon circles (back + top) above WhatsApp */
.mpl-catalog-float-actions {
  position: fixed;
  right: var(--mpl-float-right);
  bottom: calc(var(--mpl-float-bottom) + var(--mpl-float-whatsapp-h) + var(--mpl-float-gap));
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.mpl-catalog-float-actions.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mpl-catalog-float-actions.is-detail-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mpl-catalog-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mpl-catalog-float-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpl-catalog-float-back {
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mpl-catalog-float-back:hover {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  transform: translateX(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.mpl-catalog-float-top {
  background: var(--mpl-catalog-primary, var(--mpl-blue, #0064cd));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 100, 205, 0.35);
}

.mpl-catalog-float-top:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 100, 205, 0.4);
}

.mpl-catalog-float-btn:focus-visible {
  outline: 2px solid var(--mpl-catalog-primary, var(--mpl-blue, #0064cd));
  outline-offset: 2px;
}

.mpl-back-top {
  position: fixed;
  right: var(--mpl-float-right);
  bottom: calc(var(--mpl-float-bottom) + var(--mpl-float-whatsapp-h) + var(--mpl-float-gap));
  z-index: 1090;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--mpl-blue, #0064cd);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 100, 205, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.mpl-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mpl-back-top:hover {
  background: var(--mpl-blue-dark, #0050ab);
  box-shadow: 0 8px 24px rgba(0, 100, 205, 0.45);
}

.mpl-back-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.mpl-back-top .ti {
  font-size: 1.35rem;
  line-height: 1;
}

.mpl-back-top svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 576px) {
  .mpl-catalog-float-btn {
    width: 3rem;
    height: 3rem;
  }

  .mpl-catalog-float-btn svg {
    width: 1.35rem;
    height: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .mpl-back-top {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* When WhatsApp float is not on the page, sit at default bottom */
body:not(:has(.mpl-whatsapp-float)) .mpl-back-top,
body:not(:has(.mpl-whatsapp-float)) .mpl-catalog-float-actions {
  bottom: var(--mpl-float-bottom);
}
