/* First-shop guide (Phase 2, 2026-11-09): the floating "Get started" module
   (packages/ui components/first-shop-guide.blade.php), the store page hint and
   the out page first-trip title. Loaded from layouts/head.blade.php after
   custom.css; the asset version comes from the file's mtime like custom.css. */

.zfs {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1020;              /* under the site header (1030), above page content */
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #1b1b1b;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(2, 73, 89, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: Karla, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.zfs[hidden] { display: none; }
.zfs__head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 18px; }
.zfs__toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #024959;
  text-align: left;
  cursor: pointer;
}
.zfs__title { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.zfs__progress {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef5e4;
  color: #477900;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.zfs__chevron { flex: 0 0 auto; transition: transform 0.2s ease; }
.zfs.is-collapsed .zfs__chevron { transform: rotate(180deg); }
.zfs__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #6b6b6b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.zfs__close:hover, .zfs__close:focus-visible { background: #f5f5f5; color: #1b1b1b; }
.zfs__body { padding: 0 18px 14px; }
.zfs__lead { margin: 0 0 12px; color: #444; text-wrap: balance; } /* balance: no single word left on the last line */
.zfs__list { list-style: none; margin: 0; padding: 0; }
.zfs__item { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid #f0f0f0; }
.zfs__item:first-child { border-top: 0; }
.zfs__mark {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b6b6b;
  background: #f0f0f0;
}
.zfs__item.is-done .zfs__mark { background: #477900; color: #fff; }
.zfs__item.is-next .zfs__mark { background: #024959; color: #fff; }
.zfs__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zfs__label { font-weight: 600; color: #1b1b1b; }
.zfs__item.is-done .zfs__label { color: #6b6b6b; text-decoration: line-through; text-decoration-color: #bbb; font-weight: 500; }
.zfs__hint { color: #555; font-size: 14px; }
.zfs__item:not(.is-next) .zfs__hint { display: none; }
.zfs__action {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #477900;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.zfs__action:hover, .zfs__action:focus-visible { background: #3b6600; color: #fff; }
.zfs__dismiss {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #6b6b6b;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.zfs__dismiss:hover { color: #1b1b1b; }

@media (max-width: 575.98px) {
  .zfs { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zfs__chevron { transition: none; }
}

/* Store page: one line above Shop Now for a member who has never clicked through. */
.zen-first-trip-hint {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef5e4;
  color: #2f5200;
  font-size: 15px;
  line-height: 1.4;
}

/* Out page: the first-trip title replaces the usual tips title; same block, stronger weight. */
.out-tracking-tips-title.is-first-trip { font-weight: 600; color: #024959; }

/* Ask Zen on the shopping pages (2026-11-10): the line inside the Get started
   module and the small launcher that takes the same corner once the module is
   gone (partials/ask-zen-launcher). Quiet on purpose: no badge, no animation. */
.zfs__ask { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #f0f0f0; color: #444; font-size: 14px; }
.zfs__ask[hidden] { display: none; }
.zfs__ask-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #477900;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.zfs__ask-btn:hover, .zfs__ask-btn:focus-visible { color: #3b6600; }

.zal {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1020;              /* same layer as the Get started module; under the header and the cookie banner */
  display: inline-flex;
  align-items: center;
  font-family: Karla, Arial, Helvetica, sans-serif;
}
.zal[hidden] { display: none; }
.zal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e3e8e0;
  border-radius: 999px;
  background: #fff;
  color: #024959;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(2, 73, 89, 0.14);
  cursor: pointer;
}
.zal__btn:hover { background: #f7faf4; }
.zal__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(71, 121, 0, 0.45); }
.zal.is-loading .zal__btn { opacity: 0.7; cursor: progress; }
.zal__x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #e3e8e0;
  border-radius: 50%;
  background: #fff;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
}
.zal:hover .zal__x, .zal__x:focus-visible { opacity: 1; }
.zal__x:hover { color: #1b1b1b; }

@media (max-width: 575.98px) {
  /* Phones: icon only, tucked into the corner; hide it from the panel menu instead of an x. */
  .zal { right: 12px; bottom: 12px; }
  .zal__btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .zal__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .zal__x { display: none; }
}
