.tppt-pwa-nudge {
    position: fixed;
    right: 18px;
    left: auto;
    --tppt-pwa-bottom-base: 16px;
    --tppt-pwa-bottom-offset: 0px;
    bottom: calc(env(safe-area-inset-bottom) + var(--tppt-pwa-bottom-base) + var(--tppt-pwa-bottom-offset));
    z-index: 99990;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
    animation: tpptPwaNudgeIn 240ms ease-out;
}

.tppt-pwa-nudge__surface {
    position: relative;
    pointer-events: auto;
    border-radius: 8px;
    padding: 12px;
    color: #141414;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 20, 20, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
    font-family: inherit;
    max-height: calc(100vh - 32px - env(safe-area-inset-bottom) - var(--tppt-pwa-bottom-offset));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.tppt-pwa-nudge__surface::before {
    content: none;
}

.tppt-pwa-nudge__dismiss {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 20, 20, 0.12);
    border-radius: 999px;
    background: transparent;
    color: rgba(20, 20, 20, 0.62);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.tppt-pwa-nudge__dismiss:hover {
    background: rgba(20, 20, 20, 0.05);
    color: #141414;
}

.tppt-pwa-nudge__kicker,
.tppt-pwa-nudge__challenge {
    margin: 0 36px 8px 0;
    color: rgba(20, 20, 20, 0.58);
    font-size: 11px;
    line-height: 1.35;
}

.tppt-pwa-nudge__kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.tppt-pwa-nudge__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 36px 8px 0;
}

.tppt-pwa-nudge__brand-badge {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    overflow: hidden;
    background: #f3f3f1;
    border: 1px solid rgba(20, 20, 20, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #141414;
    font-size: 10px;
    font-weight: 700;
}

.tppt-pwa-nudge__brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tppt-pwa-nudge__brand-name {
    margin: 0;
    color: rgba(20, 20, 20, 0.62);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.tppt-pwa-nudge__title {
    margin: 0 36px 5px 0;
    color: #141414;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.18;
}

.tppt-pwa-nudge__body {
    margin: 0 0 9px;
    color: rgba(20, 20, 20, 0.72);
    font-size: 13px;
    line-height: 1.42;
}

.tppt-pwa-nudge__hint {
    margin: 0 0 10px;
    padding: 8px 9px;
    color: rgba(20, 20, 20, 0.66);
    font-size: 12px;
    line-height: 1.35;
    border-radius: 8px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    background: rgba(20, 20, 20, 0.035);
}

.tppt-pwa-nudge__hint::before {
    content: none;
}

.tppt-pwa-nudge__tabs {
    display: inline-flex;
    gap: 3px;
    margin: 0 0 10px;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(20, 20, 20, 0.1);
    background: rgba(20, 20, 20, 0.04);
}

.tppt-pwa-nudge__tab {
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(20, 20, 20, 0.58);
    font-weight: 650;
    font-size: 12px;
    padding: 7px 10px;
    cursor: pointer;
    line-height: 1;
    min-width: 64px;
    text-align: center;
}

.tppt-pwa-nudge__tab:hover {
    background: rgba(20, 20, 20, 0.05);
}

.tppt-pwa-nudge__tab:active {
    transform: translateY(1px);
}

.tppt-pwa-nudge__tab.is-active {
    background: #141414;
    color: #ffffff;
}

.tppt-pwa-nudge__panel {
    margin: 0 0 10px;
}

.tppt-pwa-nudge__panel .tppt-pwa-nudge__proof {
    margin-bottom: 0;
}

.tppt-pwa-nudge__panel .tppt-pwa-nudge__ios-steps {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tppt-pwa-nudge__perks {
    list-style: none;
    margin: 0 0 9px;
    padding: 0;
    display: grid;
    gap: 5px;
}

.tppt-pwa-nudge__perk {
    margin: 0;
    color: rgba(20, 20, 20, 0.7);
    font-size: 12px;
    line-height: 1.35;
}

.tppt-pwa-nudge__perk::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 7px 2px 0;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.36);
}

.tppt-pwa-nudge__proof {
    margin: 0 0 10px;
    color: rgba(20, 20, 20, 0.58);
    font-size: 12px;
    line-height: 1.35;
}

.tppt-pwa-nudge__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tppt-pwa-nudge__primary,
.tppt-pwa-nudge__later {
    border-radius: 8px;
    min-height: 38px;
    padding: 9px 11px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.1;
    transition: transform 120ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.tppt-pwa-nudge__primary {
    border: 1px solid #141414;
    background: #141414;
    color: #ffffff;
    flex: 1 1 auto;
}

.tppt-pwa-nudge__primary[data-mode="share"],
.tppt-pwa-nudge__primary[data-mode="help"],
.tppt-pwa-nudge__primary[data-mode="done"] {
    background: #141414;
    color: #ffffff;
    box-shadow: none;
}

.tppt-pwa-nudge__primary:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
}

.tppt-pwa-nudge__later {
    border: 1px solid rgba(20, 20, 20, 0.12);
    background: transparent;
    color: rgba(20, 20, 20, 0.66);
    flex: 0 0 auto;
}

.tppt-pwa-nudge__later:hover {
    background: rgba(20, 20, 20, 0.05);
    color: #141414;
}

.tppt-pwa-nudge__primary:active,
.tppt-pwa-nudge__later:active {
    transform: translateY(1px);
}

.tppt-pwa-nudge__primary[disabled] {
    opacity: 0.7;
    cursor: default;
}

.tppt-pwa-nudge__primary:focus-visible,
.tppt-pwa-nudge__later:focus-visible,
.tppt-pwa-nudge__dismiss:focus-visible,
.tppt-pwa-nudge__tab:focus-visible {
    outline: 2px solid #141414;
    outline-offset: 2px;
}

.tppt-pwa-nudge__ios-steps {
    margin-top: 10px;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
    padding-top: 9px;
    color: rgba(20, 20, 20, 0.74);
}

.tppt-pwa-nudge__ios-intro {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
}

.tppt-pwa-nudge__ios-list {
    margin: 0;
    padding-left: 18px;
}

.tppt-pwa-nudge__ios-item {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.35;
}

@keyframes tpptPwaNudgeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tppt-pwa-nudge {
        animation: none;
    }

    .tppt-pwa-nudge__primary,
    .tppt-pwa-nudge__later {
        transition: none;
    }
}

@media (max-width: 640px) {
    .tppt-pwa-nudge {
        right: 10px;
        left: 10px;
        width: auto;
        --tppt-pwa-bottom-base: 10px;
    }

    .tppt-pwa-nudge__surface {
        padding: 11px;
        max-height: calc(100vh - 20px - env(safe-area-inset-bottom) - var(--tppt-pwa-bottom-offset));
    }

    .tppt-pwa-nudge__title {
        font-size: 15px;
    }

    .tppt-pwa-nudge__actions {
        align-items: stretch;
    }

    .tppt-pwa-nudge__primary,
    .tppt-pwa-nudge__later {
        min-height: 40px;
    }
}
