
/* ==================================================
   TW-PWA | Install Banner
================================================== */

#tw-pwa-banner {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 999999999999999999999;

    direction: rtl;
    font-family: inherit;

    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-100% - 30px));

    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        opacity .3s ease,
        visibility .3s ease;
}

#tw-pwa-banner.tw-pwa-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tw-pwa-inner {
    position: relative;

    width: 100%;
    max-width: 480px;

    margin: 0 auto;
    padding: 15px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;

    box-shadow: 0 8px 35px rgba(0,0,0,.16);

    box-sizing: border-box;
}

.tw-pwa-icon {
    display: block;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    object-fit: cover;
    border-radius: 13px;
}

.tw-pwa-content {
    flex: 1;
    min-width: 0;
}

.tw-pwa-title {
    margin: 0 0 5px !important;

    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.7 !important;
    font-weight: 800 !important;

    color: #222 !important;
}

.tw-pwa-description {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 11px !important;
    line-height: 1.8 !important;

    color: #777 !important;
}

.tw-pwa-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    outline: 0 !important;

    background: #1769e0 !important;
    color: #fff !important;

    border-radius: 9px !important;

    padding: 10px 13px !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;

    cursor: pointer;
    white-space: nowrap;

    transition: background .2s ease;
}

.tw-pwa-install:hover {
    background: #1055bd !important;
}

.tw-pwa-install:focus-visible,
.tw-pwa-close:focus-visible {
    outline: 2px solid #1769e0 !important;
    outline-offset: 3px;
}

.tw-pwa-close {
    position: absolute;

    top: 4px;
    left: 7px;

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #999 !important;

    font-family: Arial, sans-serif !important;
    font-size: 21px !important;
    line-height: 1 !important;

    cursor: pointer;
}

.tw-pwa-help {
    display: none;

    flex: 0 0 100%;
    width: 100%;

    padding: 12px 4px 0;
    margin-top: 5px;

    border-top: 1px solid #eee;

    color: #555;

    font-size: 12px;
    line-height: 2.1;
}

.tw-pwa-help.tw-pwa-help-visible {
    display: block;
}

.tw-pwa-help strong {
    color: #222;
}

.tw-pwa-arrow {
    display: inline-block;

    margin: 0 3px;

    font-size: 19px;
    vertical-align: middle;
}

.tw-pwa-confirm {
    margin-top: 10px;
}

@media (max-width: 380px) {

    .tw-pwa-inner {
        padding: 12px;
        gap: 9px;
    }

    .tw-pwa-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }

    .tw-pwa-title {
        font-size: 12px !important;
    }

    .tw-pwa-description {
        font-size: 10px !important;
    }

    .tw-pwa-install {
        padding: 9px !important;
        font-size: 11px !important;
    }

}

@media (prefers-reduced-motion: reduce) {

    #tw-pwa-banner {
        transition: none;
    }

}
