/* ==========================================================================
   Next-step tips (assets/js/app/next-steps.js)
   The soft card: after an action, what to do next. It does not block the page
   (no backdrop), sits above the phone's bottom menu or in the bottom-right
   corner on a computer, and slides away by itself. Its close button is a
   card's, not a pop-up's, so it is not red (close-red.css is for pop-ups).
   The new shop's first steps (.ns-steps) sit in the shared pop-up.
   Primary text #000, secondary no lighter than #475569.
   ========================================================================== */

.ns-card {
    --ns-c: #0b8a55;
    position: fixed; z-index: 9000;
    left: 12px; right: 12px; bottom: calc(var(--ns-bottom, 16px) + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 16px;
    background: #fff; color: #000; border: 1px solid #dfe7ef; border-radius: 22px;
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .45);
    font-family: inherit;
    transform: translateY(24px); opacity: 0; transition: transform .26s ease, opacity .26s ease;
}
.ns-card.in { transform: none; opacity: 1; }
@media (min-width: 760px) {
    .ns-card { left: auto; right: 24px; bottom: 24px; width: 380px; }
}
@media (prefers-reduced-motion: reduce) { .ns-card { transition: opacity .2s ease; transform: none; } }

.ns-card .ns-top { display: flex; align-items: flex-start; gap: 12px; }
.ns-card .ns-ic {
    width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem;
    color: var(--ns-c); background: color-mix(in srgb, var(--ns-c) 13%, #fff);
}
.ns-card .ns-t { flex: 1; min-width: 0; }
.ns-card .ns-t b { display: block; font-size: 1rem; font-weight: 900; color: #000; line-height: 1.25; }
.ns-card .ns-t span { display: block; margin-top: 2px; font-size: .82rem; font-weight: 600; color: #334155; line-height: 1.4; }
.ns-card .ns-x {
    width: 32px; height: 32px; flex: none; border: 0; border-radius: 10px; background: #f1f4f8; color: #334155;
    display: grid; place-items: center; cursor: pointer; font-size: .8rem;
}
.ns-card .ns-x:hover { background: #e4e9f0; color: #000; }
.ns-card .ns-next { background: #f6f8fb; border-radius: 14px; padding: 10px 12px; }
.ns-card .ns-next small { display: block; font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #065f46; }
.ns-card .ns-next p { margin: 2px 0 0; font-size: .88rem; font-weight: 700; color: #000; line-height: 1.4; }
.ns-card .ns-acts { display: flex; gap: 8px; }
.ns-card .ns-acts button {
    flex: 1; min-height: 44px; border-radius: 12px; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer;
}
.ns-card .ns-go { border: 0; background: #0b8a55; color: #fff; }
.ns-card .ns-go:hover { background: #087447; }
.ns-card .ns-alt { border: 1px solid #d5dde7; background: #fff; color: #000; }
.ns-card .ns-alt:hover { background: #f6f8fb; }
.ns-card .ns-off {
    align-self: center; margin: -4px 0 -6px; padding: 4px 8px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: .74rem; font-weight: 700; color: #475569; text-decoration: underline; text-underline-offset: 2px;
}
.ns-card .ns-off:hover { color: #000; }
.ns-card button:focus-visible { outline: 3px solid rgba(11, 138, 85, .35); outline-offset: 2px; }

/* The new shop's first steps, in the shared pop-up. */
.ns-steps-lead { margin: 0 0 6px; font-size: .88rem; font-weight: 600; color: #334155; }
.ns-steps { margin-bottom: 14px; }
.ns-step { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.ns-step:last-child { border-bottom: 0; }
.ns-step .ns-dot {
    width: 28px; height: 28px; flex: none; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center;
    border: 2px solid #cbd5e1; font-size: .8rem; font-weight: 900; color: #475569;
}
.ns-step > div { flex: 1; min-width: 0; }
.ns-step b { display: block; font-size: .9rem; font-weight: 800; color: #000; }
.ns-step > div span { display: block; font-size: .76rem; font-weight: 600; color: #475569; }
.ns-step em { font-style: normal; font-size: .76rem; font-weight: 800; color: #065f46; }
.ns-step.is-done .ns-dot { border-color: #0b8a55; background: #0b8a55; color: #fff; }
.ns-step.is-done b { color: #475569; text-decoration: line-through; }
.ns-step-go {
    min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid #0b8a55; background: #fff;
    font: inherit; font-size: .8rem; font-weight: 800; color: #065f46; cursor: pointer;
}
.ns-step-go:hover { background: #ecfdf5; }
.ns-steps-foot { margin: 10px 0 0; text-align: center; font-size: .74rem; font-weight: 600; color: #475569; }

/* Settings, Notifications: the switch. */
.st-tips-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .82rem; font-weight: 800; color: #000; flex: none; }
.st-tips-sw input { width: 20px; height: 20px; accent-color: #0b8a55; cursor: pointer; }
