@font-face {
    font-family: 'FP App Banner SF Pro';
    src: url('/fonts/fp/sf-pro/SFProDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.fp-app-banner,
.fp-app-banner * {
    box-sizing: border-box;
}

.fp-app-banner {
    position: relative;
    flex: 0 0 auto;
    width: calc(100% - 32px);
    max-width: 1112px;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Proxima Nova', Arial, sans-serif;
}

.fp-app-banner__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fp-app-banner--hero {
    aspect-ratio: 1112 / 541;
    margin-top: 56px;
    overflow: hidden;
    border-radius: 52px;
}

.fp-app-banner__hero-visual {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.fp-app-banner__hero-money-copy {
    position: absolute;
    z-index: 2;
    top: 39.2%;
    left: 8.7%;
    display: flex;
    width: 22.2%;
    height: 9.4%;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, #fbfcf8 0%, #fbfcf8 88%, rgba(251, 252, 248, 0) 100%);
    color: #171917;
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.08px;
}

.fp-app-banner__hero-money-copy strong {
    color: #80bd31;
    font-weight: 700;
}

.fp-app-banner__hero-link {
    position: absolute;
    z-index: 4;
    display: block;
    border-radius: 10px;
    text-decoration: none;
}

.fp-app-banner__hero-link:focus-visible,
.fp-app-banner__footer-qr:focus-visible {
    outline: 3px solid #163300;
    outline-offset: 3px;
}

.fp-app-banner__hero-link--app-store {
    top: 85.7%;
    left: 3.5%;
    width: 12.8%;
    height: 8.3%;
}

.fp-app-banner__hero-link--google-play {
    top: 85.7%;
    left: 17.7%;
    width: 13.4%;
    height: 8.3%;
}

.fp-app-banner__hero-link--qr {
    top: 51.5%;
    left: 39%;
    width: 14.9%;
    height: 29.8%;
    border-radius: 20px;
}

.fp-app-banner__hero-link--qr::before {
    position: absolute;
    inset: 8.5%;
    background: #fff;
    content: '';
}

.fp-app-banner__hero-link--qr img {
    position: absolute;
    z-index: 1;
    top: 10.8%;
    left: 10.8%;
    display: block;
    width: 78.4%;
    height: 78.4%;
    object-fit: fill;
}

.fp-app-banner--footer {
    display: flex;
    height: 137px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 32px;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
}

.fp-main__content--with-app-footer .fp-main__benefits {
    margin-bottom: 0;
}

.fp-app-banner__footer-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 23.5px 0 0 24px;
}

.fp-app-banner__footer-title {
    display: block;
    width: 480px;
    height: 31px;
}

.fp-app-banner__footer-label {
    display: inline-flex;
    width: max-content;
    height: 33.5px;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.7);
    font-family: 'FP App Banner SF Pro', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    letter-spacing: -0.0762px;
}

.fp-app-banner__footer-label span {
    display: block;
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #5bbf23;
}

.fp-app-banner__footer-install {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 19px 0 0;
}

.fp-app-banner__footer-install p {
    width: 325px;
    margin: 0;
    color: rgba(0, 0, 0, 0.55);
    font-size: 17px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.04px;
    text-align: center;
}

.fp-app-banner__footer-qr {
    display: flex;
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    border: 0.5px solid rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    background: #fff;
}

.fp-app-banner__footer-qr img {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 4px;
}

.fp-app-banner--footer + .fp-account__footer {
    padding-top: 0;
}

.fp-app-mobile-banner {
    display: none;
}

@media screen and (max-width: 768px) {
    .fp-app-mobile-banner.is-visible {
        position: relative;
        z-index: 7;
        display: flex;
        width: 100%;
        height: 70px;
        min-height: 70px;
        align-items: center;
        overflow: hidden;
        background: #fff;
        color: #000;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    .fp-app-mobile-banner__close {
        position: relative;
        width: 44px;
        height: 70px;
        flex: 0 0 44px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #000;
        cursor: pointer;
    }

    .fp-app-mobile-banner__close span::before,
    .fp-app-mobile-banner__close span::after {
        position: absolute;
        top: 34px;
        left: 14px;
        width: 16px;
        height: 1.5px;
        border-radius: 1px;
        background: currentColor;
        content: '';
    }

    .fp-app-mobile-banner__close span::before {
        transform: rotate(45deg);
    }

    .fp-app-mobile-banner__close span::after {
        transform: rotate(-45deg);
    }

    .fp-app-mobile-banner__icon {
        display: block;
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
    }

    .fp-app-mobile-banner__copy {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
        flex-direction: column;
        align-self: center;
        margin-left: 12px;
        white-space: nowrap;
    }

    .fp-app-mobile-banner__copy strong {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        line-height: 22px;
        letter-spacing: -0.43px;
    }

    .fp-app-mobile-banner__copy span {
        margin: 0;
        font-size: 13px;
        font-weight: 400;
        line-height: 15px;
        letter-spacing: -0.08px;
    }

    .fp-app-mobile-banner__narrow-break {
        display: none;
    }

    .fp-app-mobile-banner__install {
        display: flex;
        height: 70px;
        flex: 0 0 auto;
        align-items: center;
        margin-left: 12px;
        padding: 0 16px 0 0;
        color: #007aff;
        font-size: 17px;
        font-weight: 400;
        line-height: 15px;
        letter-spacing: -0.08px;
        text-decoration: none;
        white-space: nowrap;
    }
}

@media screen and (max-width: 380px) {
    .fp-app-mobile-banner__copy span {
        font-size: 12px;
        line-height: 12px;
    }

    .fp-app-mobile-banner__narrow-break {
        display: initial;
    }
}

@media screen and (min-width: 769px) {
    .fp-app-banner__hero-visual {
        background-image: url('/images/fp/app/desktop-banner-hero.png');
    }
}

@media screen and (max-width: 1120px) and (min-width: 769px) {
    .fp-app-banner__footer-title {
        width: 420px;
        height: auto;
    }

    .fp-app-banner__footer-install p {
        width: 260px;
        font-size: 15px;
    }
}

@media screen and (max-width: 900px) and (min-width: 769px) {
    .fp-app-banner__footer-title {
        width: 330px;
    }

    .fp-app-banner__footer-install p {
        width: 140px;
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .fp-app-banner {
        display: none !important;
    }
}
