.tt360_pwa_prompt,
.tt360_pwa_prompt * {
    box-sizing: border-box;
}

.tt360_pwa_prompt {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 1300;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: min(42rem, calc(100vw - 4rem));
    padding: 1rem;
    border: 0.1rem solid rgba(15, 23, 42, 0.12);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 1.6rem 4rem rgba(15, 23, 42, 0.18);
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.tt360_pwa_prompt.is_visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

html[data-theme="dark"] .tt360_pwa_prompt {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.96);
    color: #e5e7eb;
    box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.3);
}

.tt360_pwa_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 0.8rem;
    background: rgba(37, 211, 102, 0.14);
    color: #15803d;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

html[data-theme="dark"] .tt360_pwa_icon {
    background: rgba(37, 211, 102, 0.18);
    color: #86efac;
}

.tt360_pwa_copy {
    min-width: 0;
}

.tt360_pwa_title,
.tt360_pwa_text {
    margin: 0;
    overflow-wrap: anywhere;
}

.tt360_pwa_title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
}

.tt360_pwa_text {
    margin-top: 0.2rem;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.35;
}

html[data-theme="dark"] .tt360_pwa_text {
    color: #94a3b8;
}

.tt360_pwa_actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tt360_pwa_install,
.tt360_pwa_close {
    border: none;
    border-radius: 0.8rem;
    font: inherit;
    cursor: pointer;
}

.tt360_pwa_install {
    min-height: 3.6rem;
    padding: 0 1.2rem;
    background: #25d366;
    color: #052e16;
    font-size: 1.2rem;
    font-weight: 800;
}

.tt360_pwa_install:hover,
.tt360_pwa_install:focus-visible {
    outline: none;
    background: #1ebe57;
}

.tt360_pwa_close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
    font-size: 1.6rem;
    font-weight: 800;
}

.tt360_pwa_close:hover,
.tt360_pwa_close:focus-visible {
    outline: none;
    background: rgba(15, 23, 42, 0.14);
}

html[data-theme="dark"] .tt360_pwa_close {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .tt360_pwa_close:hover,
html[data-theme="dark"] .tt360_pwa_close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 48rem) {
    .tt360_pwa_prompt {
        left: 1.2rem;
        right: 1.2rem;
        bottom: 1.2rem;
        width: auto;
    }
}

@media (max-width: 36rem) {
    .tt360_pwa_prompt {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tt360_pwa_actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
