/* Layer scale: Dock 900, existing Header 1000, Drawer/backdrop 1090/1100.
 * Future product purchase bars: bottom: var(--s1688-dock-offset, 0px).
 * Set --s1688-purchase-bar-height when adding one; this release adds no purchase bar.
 */
:root { --s1688-dock-offset: 0px; --s1688-dock-height: 62px; }
.s1688-dock { display: none; }
@media (max-width: 767px) {
    body.s1688-has-mobile-dock {
        --s1688-dock-offset: calc(var(--s1688-dock-height) + env(safe-area-inset-bottom, 0px));
        padding-bottom: calc(var(--s1688-page-bottom-padding, 0px) + var(--s1688-dock-offset) + var(--s1688-purchase-bar-height, 0px)) !important;
    }
    .s1688-dock {
        display: block; position: fixed; inset: auto 0 0; z-index: 900;
        width: auto; max-width: 100%; min-width: 0; transform: none;
        box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(16, 17, 16, .97); color: #d6d5cf;
        border-top: 1px solid rgba(209, 184, 131, .16);
        box-shadow: 0 -5px 18px rgba(0, 0, 0, .17);
        font-family: inherit; isolation: isolate;
    }
    .s1688-dock__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--s1688-dock-height); width: 100%; max-width: 767px; min-width: 0; margin-inline: auto; }
    html:has(body.s1688-has-mobile-dock) { scroll-padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    .s1688-dock .s1688-dock__item {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
        min-width: 0; min-height: 48px; gap: 4px; padding: 7px 2px; box-sizing: border-box;
        color: #d6d5cf; text-decoration: none; border: 0; background: transparent;
        -webkit-tap-highlight-color: transparent; transition: color 160ms ease;
    }
    .s1688-dock__icon { position: relative; width: 23px; height: 23px; display: block; }
    .s1688-dock__icon svg { display: block; width: 23px; height: 23px; stroke-width: 1.7; }
    .s1688-dock__label { font-size: 11px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
    .s1688-dock .s1688-dock__item.is-active { color: #d7bb7d; }
    .s1688-dock__item.is-active::before { content: ''; position: absolute; top: 0; width: 18px; height: 2px; border-radius: 0 0 2px 2px; background: #d7bb7d; }
    .s1688-dock__item[data-dock-item="line"] .s1688-dock__icon { color: #06c755; }
    .s1688-dock__item[data-dock-item="line"] svg { fill: currentColor; stroke: none; }
    .s1688-dock .s1688-dock__item:focus-visible { outline: 2px solid #d7bb7d; outline-offset: -4px; border-radius: 6px; }
    .s1688-dock__count { position: absolute; top: -4px; right: -7px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box; border-radius: 10px; background: #d7bb7d; color: #151613; font-size: 10px; font-weight: 800; line-height: 1; }
    .s1688-dock__count[hidden] { display: none; }
    @supports (backdrop-filter: blur(4px)) { .s1688-dock { background: rgba(16,17,16,.94); backdrop-filter: blur(4px); } }
}
@media (prefers-reduced-transparency: reduce) { .s1688-dock { background: #101110; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .s1688-dock__item { transition: none; } }

/* On phones the shared LINE invitation replaces the redundant Chaty launcher. */
@media (max-width: 767px) {
    body.s1688-has-mobile-dock #chaty-widget-0,
    body.s1688-has-mobile-dock .chaty-widget,
    body.s1688-has-mobile-dock .chaty-widget-container { display: none !important; }
}

.s1688-line-invite { position: fixed; width: min(420px, calc(100% - 28px)); max-height: min(90dvh, 720px); margin: auto; padding: 24px; box-sizing: border-box; overflow-y: auto; border: 1px solid #c8a55c66; border-radius: 16px; background: #181b19; color: #f3f1eb; box-shadow: 0 20px 60px #0009; text-align: center; }
.s1688-line-invite[open] { display: block; }
.s1688-line-invite::backdrop { background: #000b; }
.s1688-line-invite__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: #f3f1eb; font-size: 28px; cursor: pointer; }
.s1688-line-invite__brand { margin: 0 40px 6px; color: #d7bb7d; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.s1688-line-invite h2 { margin: 0 0 10px; color: #f3f1eb; font-size: 22px; line-height: 1.3; }
.s1688-line-invite #s1688-line-invite-desc { margin: 0 0 16px; color: #d6d5cf; font-size: 14px; line-height: 1.6; }
.s1688-line-invite__qr { display: grid; place-items: center; width: min(260px, 100%); margin: 0 auto; padding: 8px; box-sizing: border-box; background: #fff; border-radius: 8px; }
.s1688-line-invite__qr img { display: block; width: 100%; height: auto; max-height: 270px; object-fit: contain; }
.s1688-line-invite__hint { margin: 12px 0; color: #d6d5cf; font-size: 13px; }
.s1688-line-invite__join { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 20px; border-radius: 8px; background: #06c755; color: #101710 !important; font-size: 16px; font-weight: 800; text-decoration: none !important; }
.s1688-line-invite :is(button,a):focus-visible { outline: 2px solid #d7bb7d; outline-offset: 3px; }
@media (max-width: 767px) {
    .s1688-line-invite { inset: auto 0 0; width: 100%; max-height: 88dvh; margin: 0; padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; }
}
