/* Member dashboard: install shortcut / PWA UI. */
.gm-pwa-install[hidden],
.gm-pwa-sheet[hidden],
.gm-pwa-sheet__steps[hidden] {
    display: none !important;
}

.gm-pwa-install {
    display: none;
}

@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
    body.member-home .gm-pwa-install:not([hidden]) {
        min-height: 78px;
        margin: 14px 0 0;
        padding: 10px 10px 10px 12px;
        position: relative;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr) auto;
        align-items: center;
        gap: 11px;
        overflow: hidden;
        color: var(--gm-text, #f5f3ee);
        border: 1px solid var(--gm-line, rgba(205, 170, 93, .45));
        border-radius: 18px;
        background:
            radial-gradient(circle at 10% 30%, rgba(var(--gm-theme-rgb, 200, 166, 95), .20), transparent 35%),
            linear-gradient(115deg, rgba(55, 52, 47, .96), rgba(19, 19, 19, .98));
        box-shadow: 0 12px 28px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .06);
    }

    body.member-home .gm-pwa-install::after {
        content: "";
        width: 90px;
        height: 160%;
        position: absolute;
        top: -30%;
        left: -120px;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
        transform: skewX(-18deg);
        animation: gm-pwa-sheen 5.5s ease-in-out infinite;
    }

    .gm-pwa-install__icon {
        width: 54px;
        height: 54px;
        padding: 4px;
        position: relative;
        z-index: 1;
        border: 1px solid rgba(var(--gm-theme-rgb, 200, 166, 95), .46);
        border-radius: 15px;
        background: rgba(5, 5, 5, .58);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .34), 0 0 18px rgba(var(--gm-theme-rgb, 200, 166, 95), .12);
    }

    .gm-pwa-install__icon img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        border-radius: 11px;
    }

    .gm-pwa-install__copy {
        min-width: 0;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .gm-pwa-install__copy > span {
        color: var(--gm-gold, #c8a65f);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .55px;
        text-transform: uppercase;
    }

    .gm-pwa-install__copy > strong {
        margin-top: 2px;
        overflow: hidden;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gm-pwa-install__copy > small {
        margin-top: 3px;
        overflow: hidden;
        color: var(--gm-muted, #aaa49a);
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gm-pwa-install__button {
        min-width: 58px;
        min-height: 52px;
        padding: 6px 10px;
        position: relative;
        z-index: 1;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        color: var(--gm-theme-ink, #17120a);
        border: 1px solid var(--gm-gold-bright, #ead49b);
        border-radius: 14px;
        background: linear-gradient(145deg, var(--gm-gold-bright, #ead49b), var(--gm-gold, #c8a65f));
        box-shadow: 0 7px 16px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .52);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        appearance: none;
    }

    .gm-pwa-install__button svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .gm-pwa-install__button:active {
        transform: translateY(1px) scale(.98);
    }

    .gm-pwa-install__button:focus-visible {
        outline: 3px solid rgba(var(--gm-theme-rgb, 200, 166, 95), .34);
        outline-offset: 2px;
    }

    body.gm-login-page .gm-login-support.gm-login-support--pwa {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.gm-login-page .gm-login-support.gm-login-support--pwa-three {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.gm-login-page .gm-pwa-login-trigger.gm-pwa-install:not([hidden]) {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 6px 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: var(--gm-theme-ink, #17120a);
        border: 1px solid var(--gm-gold-bright, #ead49b);
        border-radius: 9px;
        background: linear-gradient(145deg, var(--gm-gold-bright, #ead49b), var(--gm-gold, #c8a65f));
        box-shadow: 0 6px 14px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .48);
        font: inherit;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.15;
        cursor: pointer;
        appearance: none;
    }

    body.gm-login-page .gm-pwa-login-trigger svg {
        width: 19px;
        height: 19px;
        flex: 0 0 auto;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.gm-login-page .gm-pwa-login-trigger:focus-visible {
        outline: 3px solid rgba(var(--gm-theme-rgb, 200, 166, 95), .30);
        outline-offset: 2px;
    }
}

.gm-pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gm-pwa-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(5px);
    appearance: none;
}

.gm-pwa-sheet__panel {
    width: min(100%, 520px);
    max-height: min(82dvh, 620px);
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    position: relative;
    overflow-y: auto;
    color: var(--gm-text, #f5f3ee);
    border: 1px solid var(--gm-line, rgba(205, 170, 93, .45));
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(160deg, var(--gm-panel-2, #2f2f2f), var(--gm-bg-0, #080808) 72%);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .54), 0 0 25px rgba(var(--gm-theme-rgb, 200, 166, 95), .12);
    animation: gm-pwa-sheet-in 220ms ease-out both;
}

.gm-pwa-sheet__handle {
    width: 44px;
    height: 4px;
    margin: 0 auto 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
}

.gm-pwa-sheet__head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.gm-pwa-sheet__head > img {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.gm-pwa-sheet__head span {
    color: var(--gm-gold, #c8a65f);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.gm-pwa-sheet__head h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.gm-pwa-sheet__steps {
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
    list-style: none;
}

.gm-pwa-sheet__steps li {
    min-height: 52px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #dedbd4;
    border: 1px solid var(--gm-line-soft, rgba(231, 210, 155, .16));
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    font-size: 14px;
}

.gm-pwa-sheet__steps li > b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--gm-theme-ink, #17120a);
    border-radius: 10px;
    background: var(--gm-gold, #c8a65f);
}

.gm-pwa-sheet__steps strong {
    color: var(--gm-gold-bright, #ead49b);
}

.gm-pwa-sheet__note {
    margin: 13px 2px 0;
    color: var(--gm-muted, #aaa49a);
    font-size: 12px;
    line-height: 1.45;
}

.gm-pwa-sheet__done {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    color: var(--gm-theme-ink, #17120a);
    border: 1px solid var(--gm-gold-bright, #ead49b);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--gm-gold-bright, #ead49b), var(--gm-gold, #c8a65f));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
}

html.gm-pwa-sheet-open,
html.gm-pwa-sheet-open body {
    overflow: hidden !important;
}

@media (max-width: 420px) {
    body.member-home .gm-pwa-install:not([hidden]) {
        grid-template-columns: 48px minmax(0, 1fr) 54px;
        gap: 8px;
        padding-left: 9px;
    }

    .gm-pwa-install__icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .gm-pwa-install__copy > strong {
        font-size: 14px;
    }

    .gm-pwa-install__copy > small {
        font-size: 11px;
    }

    .gm-pwa-install__button {
        min-width: 54px;
        padding-inline: 7px;
    }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
    .gm-pwa-install {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.member-home .gm-pwa-install::after,
    .gm-pwa-sheet__panel {
        animation: none !important;
    }
}

@keyframes gm-pwa-sheen {
    0%, 58% { left: -120px; }
    82%, 100% { left: calc(100% + 30px); }
}

@keyframes gm-pwa-sheet-in {
    from { opacity: .3; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
