/* Mobile header cart + post-add prompt (max-width: xl breakpoint) */

.rimon-mobile-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

/* Logged-in welcome — same row as cart/menu, no extra vertical space */
.rimon-mobile-header-welcome {
  margin: 0;
  padding: 0 2px 0 0;
  max-width: min(34vw, 9.5rem);
  text-align: right;
  font-family: var(--jost), system-ui, sans-serif;
  font-size: 0.6875rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rimon-mobile-header-welcome__hi {
  font-weight: 500;
  color: #6b7280;
}

.rimon-mobile-header-welcome__name {
  font-weight: 600;
  color: #111827;
}

.rimon-mobile-header-welcome--light {
  color: rgba(255, 255, 255, 0.82);
}

.rimon-mobile-header-welcome--light .rimon-mobile-header-welcome__hi {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.rimon-mobile-header-welcome--light .rimon-mobile-header-welcome__name {
  color: #ffffff;
  font-weight: 600;
}

.rimon-mobile-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #111111;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rimon-mobile-header-cart:hover,
.rimon-mobile-header-cart:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.rimon-mobile-header-cart--light {
  color: #ffffff;
}

.rimon-mobile-header-cart--light:hover,
.rimon-mobile-header-cart--light:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.rimon-mobile-header-cart__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.rimon-mobile-header-cart--light .rimon-mobile-header-cart__badge {
  background: #ffffff;
  color: #111827;
}

/* Post-add bottom sheet */
.rimon-mobile-cart-prompt {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200100;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  animation: rimon-mobile-cart-prompt-in 0.28s ease;
}

.rimon-mobile-cart-prompt__inner {
  pointer-events: auto;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px 12px;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  box-shadow: 0 -8px 32px rgba(17, 24, 39, 0.18);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-bottom: none;
}

.rimon-mobile-cart-prompt__message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.rimon-mobile-cart-prompt__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  flex-shrink: 0;
}

.rimon-mobile-cart-prompt__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.rimon-mobile-cart-prompt__subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
}

.rimon-mobile-cart-prompt__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rimon-mobile-cart-prompt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.rimon-mobile-cart-prompt__btn--primary {
  background: #111827;
  color: #ffffff;
}

.rimon-mobile-cart-prompt__btn--primary:hover {
  background: #1f2937;
}

.rimon-mobile-cart-prompt__btn--ghost {
  background: #f3f4f6;
  color: #111827;
}

.rimon-mobile-cart-prompt__btn--ghost:hover {
  background: #e5e7eb;
}

.rimon-mobile-cart-prompt__link {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rimon-mobile-cart-prompt__link:hover {
  color: #111827;
}

@keyframes rimon-mobile-cart-prompt-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1200px) {
  .rimon-mobile-header-toolbar,
  .rimon-mobile-cart-prompt {
    display: none !important;
  }
}
