.app-install-prompt[hidden] {
    display: none !important;
}

.app-install-prompt {
    position: fixed;
    z-index: 999;
    right: 14px;
    bottom: calc(102px + env(safe-area-inset-bottom, 0px) + var(--mobile-browser-bottom-offset, 0px));
    left: 14px;
    display: none;
    width: min(370px, calc(100% - 28px));
    margin: 0 auto;
    padding: 17px;
    border: 1px solid rgba(198, 114, 31, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 100%, rgba(223, 110, 13, 0.13), transparent 34%),
        #fffaf4;
    box-shadow: 0 18px 46px rgba(13, 29, 57, 0.2);
    color: #162952;
}

.app-install-prompt.is-visible {
    display: block;
    animation: app-install-prompt-enter 260ms ease-out both;
}

.app-install-prompt__close {
    position: absolute;
    top: 9px;
    right: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #62708a;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.app-install-prompt__close:hover,
.app-install-prompt__close:focus-visible {
    background: rgba(22, 41, 82, 0.07);
    color: #162952;
}

.app-install-prompt__intro {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding-right: 32px;
}

.app-install-prompt__icon {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(198, 114, 31, 0.22);
}

.app-install-prompt__copy {
    min-width: 0;
}

.app-install-prompt__title,
.app-install-prompt__description {
    display: block;
}

.app-install-prompt__title {
    margin-bottom: 3px;
    color: #162952;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.app-install-prompt__description {
    color: #5b6982;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}

.app-install-prompt__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 10px 18px;
    border: 0;
    border-radius: 15px;
    background: #162952;
    box-shadow: 0 10px 24px rgba(22, 41, 82, 0.18);
    color: #fff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.app-install-prompt__action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-install-prompt__action:hover,
.app-install-prompt__action:focus-visible {
    background: #253b68;
    box-shadow: 0 12px 28px rgba(22, 41, 82, 0.24);
    transform: translateY(-1px);
}

.app-install-prompt__action:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.app-install-prompt__close:focus-visible,
.app-install-prompt__action:focus-visible {
    outline: 3px solid rgba(35, 136, 237, 0.35);
    outline-offset: 2px;
}

html.app-install-prompt-open .woot-widget-bubble,
html.app-install-prompt-open .td-cookie-settings {
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes app-install-prompt-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 768px) {
    .app-install-prompt {
        display: none !important;
    }
}

@media (max-width: 390px) {
    .app-install-prompt {
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 15px;
        border-radius: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-install-prompt.is-visible {
        animation: none;
    }

    .app-install-prompt__action {
        transition: none;
    }
}
