/* Messaging FAB */
.msg-fab {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.msg-fab__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.msg-fab__btn:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.msg-fab__btn--wa {
  background: #25d366;
}

.msg-fab__btn--viber {
  background: #7360f2;
}

.msg-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.msg-fab__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.msg-fab__label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .msg-fab__label {
    display: none;
  }

  .msg-fab__btn {
    padding: 12px;
    border-radius: 50%;
  }
}

/* Today availability badge on product cards */
.px-product__avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #f3f4f6;
  color: #4b5563;
}

.px-product__avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

.px-product__avail.is-free {
  background: #ecfdf5;
  color: #047857;
}

.px-product__avail.is-free .px-product__avail-dot {
  background: #10b981;
}

.px-product__avail.is-limited {
  background: #fffbeb;
  color: #b45309;
}

.px-product__avail.is-limited .px-product__avail-dot {
  background: #f59e0b;
}

.px-product__avail.is-busy {
  background: #fef2f2;
  color: #b91c1c;
}

.px-product__avail.is-busy .px-product__avail-dot {
  background: #ef4444;
}

/* Exit intent modal */
.exit-intent[hidden] {
  display: none !important;
}

.exit-intent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.exit-intent__panel {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.exit-intent__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.exit-intent__kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
}

.exit-intent__panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.exit-intent__panel p {
  margin: 0 0 18px;
  color: #4b5563;
}

.exit-intent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile nudge bar */
.mobile-nudge[hidden] {
  display: none !important;
}

.mobile-nudge {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 44px 10px 12px;
  background: #fffbeb;
  border-bottom: 1px solid #fcd34d;
  font-size: 13px;
}

.mobile-nudge p {
  margin: 0;
  flex: 1;
  color: #78350f;
}

.mobile-nudge__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #92400e;
  cursor: pointer;
}

@media (min-width: 769px) {
  .mobile-nudge {
    display: none !important;
  }
}

.btn-viber {
  border-color: #7360f2;
  color: #7360f2;
}

.btn-viber:hover {
  background: #7360f2;
  color: #fff;
}
