/* PWA install buttons and browser guidance */
.tob-pwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: var(--tob-sans, "Poppins", "Open Sans", sans-serif);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.tob-pwa-btn i {
    font-size: 18px;
    line-height: 1;
}

.tob-pwa-btn.is-installing {
    opacity: .65;
    pointer-events: none;
}

.tob-pwa-btn-top {
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    color: #0a1a3f !important;
    background: linear-gradient(135deg, #ffffff 0%, #eaf6ff 100%);
    border: 1px solid rgba(28, 171, 226, .42);
    box-shadow: 0 8px 18px rgba(13, 111, 184, .12);
}

.tob-pwa-btn-top:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #eaf6ff 0%, #ffffff 100%);
    box-shadow: 0 12px 24px rgba(13, 111, 184, .2);
}

.tob-pwa-btn-topbar {
    display: none;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 12.5px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
}

.tob-pwa-btn-topbar:hover {
    background: linear-gradient(135deg, #f7b733 0%, #f78e2b 100%);
    border-color: transparent;
    color: #2a1a00 !important;
}

.footer-pwa-cta {
    margin-top: 22px;
}

.tob-pwa-btn-footer {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    color: #fff;
    text-align: left;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
}

.tob-pwa-btn-footer:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.tob-pwa-btn-footer .tob-pwa-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #2a1a00;
    background: linear-gradient(135deg, #f7b733 0%, #f78e2b 100%);
}

.tob-pwa-btn-footer .tob-pwa-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.tob-pwa-btn-footer .tob-pwa-copy strong {
    font-size: 14px;
}

.tob-pwa-btn-footer .tob-pwa-copy small {
    font-size: 12px;
    font-weight: 500;
    opacity: .72;
}

body.tob-pwa-installed .tob-pwa-btn {
    display: none !important;
}

/* Guidance shown when the browser cannot trigger its native install prompt */
.tob-pwa-guide {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 14, 36, .68);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.tob-pwa-guide.is-open {
    display: flex;
}

.tob-pwa-guide__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 30px 28px 26px;
    border-radius: 20px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
    font-family: var(--tob-sans, "Poppins", "Open Sans", sans-serif);
}

.tob-pwa-guide__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: #f1f5fb;
    color: #5a6b87;
    font-size: 22px;
    line-height: 1;
}

.tob-pwa-guide__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 16px;
    color: #2a1a00;
    background: linear-gradient(135deg, #f7b733 0%, #f78e2b 100%);
    font-size: 25px;
}

.tob-pwa-guide__title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    color: #0a1a3f;
}

.tob-pwa-guide__text {
    margin: 0 0 14px;
    font-size: 14px;
    color: #5a6b87;
    line-height: 1.6;
}

.tob-pwa-guide__steps {
    margin: 0 0 22px;
    padding-left: 20px;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.8;
}

.tob-pwa-guide__ok {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    color: #2a1a00;
    background: linear-gradient(135deg, #f7b733 0%, #f78e2b 100%);
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .tob-pwa-btn-topbar {
        display: inline-flex;
        width: 32px;
        height: 30px;
        padding: 0;
    }

    .tob-pwa-btn-topbar .tob-pwa-btn-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .tob-pwa-btn-topbar {
        width: 30px;
        height: 30px;
    }
}
