/* N3 (Kevin 9 Nov): the floating WhatsApp support button (partials/support_button.blade.php). */
.sp { position: fixed; right: 18px; bottom: 18px; z-index: 1070; font-family: inherit; }
.sp-btn { display: flex; align-items: center; gap: 10px; max-width: 320px; padding: 6px 6px 6px 6px; border-radius: 999px; background: #fff; color: #183615; text-decoration: none; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); }
.sp-btn:hover, .sp-btn:focus { color: #183615; text-decoration: none; box-shadow: 0 8px 26px rgba(0, 0, 0, .24); }
.sp-btn:focus-visible { outline: 3px solid #25D366; outline-offset: 2px; }
.sp-face { position: relative; flex: none; width: 44px; height: 44px; }
.sp-face img, .sp-initial { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e8efe4; }
.sp-face .sp-logo { object-fit: contain; padding: 6px; background: #fdf6ea; }
.sp-initial { line-height: 44px; text-align: center; font-weight: 800; font-size: 18px; color: #fff; background: #c8743b; }
.sp-dot { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #9ca3af; }
.sp--on .sp-dot { background: #22c55e; }
.sp-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sp-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-line { font-size: 12px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-wa { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #25D366; color: #fff; }

/* The away message card (first tap when nobody is on duty). */
.sp-card { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); padding: 16px 16px 14px; border-radius: 14px; background: #fff; color: #1f2933; box-shadow: 0 16px 40px rgba(0, 0, 0, .2); }
.sp-card[hidden] { display: none !important; }
.sp-card-text { margin: 0 22px 12px 0; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.sp-card-close { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none; color: #6b7280; font-size: 22px; line-height: 1; cursor: pointer; }
.sp-card-go { display: block; padding: 10px 14px; border-radius: 10px; background: #25D366; color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.sp-card-go:hover, .sp-card-go:focus { color: #fff; text-decoration: none; background: #1fb457; }

/* Phones: the photo and the hours show too, in a smaller pill. */
@media (max-width: 767px) {
    .sp { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .sp--shop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } /* above the bottom bar */
    /* With the free-delivery pill (bottom left, N2) on the page: one above the other, never on top. */
    .sp--stacked { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
    .sp--landing.sp--stacked { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .sp-btn { max-width: calc(100vw - 24px); gap: 8px; padding: 4px 4px 4px 4px; } /* N9: wide enough that the hours are never cut */
    .sp-face, .sp-face img, .sp-initial { width: 36px; height: 36px; }
    .sp-initial { line-height: 36px; font-size: 15px; }
    .sp-title { font-size: 12.5px; }
    .sp-line { font-size: 11px; }
    .sp-wa { width: 36px; height: 36px; }
    .sp-wa svg { width: 18px; height: 18px; }
}
/* Cart, checkout and payment pages: just the face, never over their buttons. */
.sp--compact .sp-text, .sp--compact .sp-wa { display: none; }
.sp--compact .sp-btn { padding: 4px; }
@media print { .sp { display: none; } }
/* N9 (Kevin 9 Nov): very small phones (under 360 px): just the photo and the
   hours; the name line goes, the hours always stay. Still 44 px tall to tap. */
@media (max-width: 359px) {
    .sp-title { display: none; }
    .sp-wa { display: none; }
    .sp-btn { min-height: 44px; padding-right: 12px; }
    .sp-line { font-size: 11px; color: #183615; font-weight: 600; }
}
