#tipnety-pwa-install, #tipnety-pwa-ios-guide, #home-screen-modal, #home-screen-modal-android {
    box-sizing: border-box;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: 1rem !important;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: #fff;
    overflow-wrap: anywhere;
    text-align: right;
    direction: rtl;
}
.pwa-message-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    width: 100%;
    direction: rtl;
}
.pwa-message-title {
    color: var(--pwa-title) !important;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    margin: 0 !important;
    min-width: 0;
}
.pwa-message-description {
    color: var(--pwa-description) !important;
    font-size: .875rem;
    line-height: 1.75;
    margin: 8px 0 0;
}
.pwa-message-body { display: flex; align-items: center; gap: 8px; width: 100%; }
.pwa-message-body > div { min-width: 0; }
.pwa-message-install {
    background: var(--pwa-button-bg) !important;
    color: var(--pwa-button-text) !important;
    cursor: pointer;
    margin-top: 12px !important;
}
.pwa-message-close {
    position: static !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0;
    background: transparent !important;
    color: #363636 !important;
    cursor: pointer !important;
}
.pwa-message-close > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e1e0e3;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}
.pwa-message-close:hover > span { background: #afafb4; }
.pwa-message-close:active > span { background: #868686; color: #fff; }
.pwa-message-close:focus-visible { outline: none; }
.pwa-message-close:focus-visible > span, .pwa-message-install:focus-visible {
    outline: 3px solid #0068e1;
    outline-offset: 3px;
}

#home-screen-modal, #home-screen-modal-android { left: 1rem; bottom: 1rem; border-radius: 1rem; }
#home-screen-modal img, #home-screen-modal-android img { flex-shrink: 0; }
#home-screen-modal, #home-screen-modal-android {
    border: 1px solid #e1e0e3;
    box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
}
