html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    margin-bottom: 65px;
    margin-top: -10px;
    box-sizing: border-box;
}

html.sdk-active,
html.sdk-active body {
  overflow: hidden;
  /* normally this would just be height: 100% doesn't cover the
     full viewport in standalone/PWA mode. So using --vh var set
     with JS to get the real height */
  height: calc(var(--vh, 1vh) * 100);
  touch-action: none;
  overscroll-behavior: none;
}

.shell-img {
    display: block;
    width: 100vw;
    height: auto;
    object-fit: cover;
}

.banner-img {
    margin: 0 10px;
    width: calc(100vw - 20px);
}

.nav-bar-img {
    position: fixed;
    bottom: 0;
}

.sdk-modal {
    width: 100vw;
    height: calc(100vh - 100px);
    position: fixed;
    margin: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    border-top-right-radius: 13px;
    border-top-left-radius: 13px;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(100%);
    z-index: 2;
}

.sdk-active .sdk-modal {
    transform: translateY(0);
    box-shadow: 0 -40px 48px -38px rgba(0, 0, 0, .12), 
                0 -32px 64px -30px rgba(0, 0, 0, .12), 
                0 -24px 56px -24px rgba(0, 0, 0, .12), 
                0 0 300px 0 rgba(0, 0, 0, 0.12), 
                0 -16px 56px rgba(0, 0, 0, .03);
}

.sdk-modal-topbar {
    display: flex;
    justify-content: space-between;
    padding: 10px 10px 9px;
    position: relative;
    background: #fff;
    border-bottom: 1px solid rgb(230, 230, 230);
    z-index: 100000000000;
}

.sdk-modal-topbar img {
    height: 40px;
    width: auto;
}

.sdk-modal-content {
    height: 100%;
    background-color: rgb(242, 242, 242);
    z-index: 1;
}

.sdk-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    min-height: 100%;
}

.backdrop {
    display: none;
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    background-color: #000;
    animation: modalBackdropFadeIn 0.2s ease-out 0.6s forwards;
}

body:not(.offer-accepted) .backdrop {
    /* Make backdrop not clickable (closable) for the modal */
    pointer-events: none;
    touch-action: none;
}

.sdk-active .backdrop {
    display: block;
}

.pay-upsell-active .backdrop,
.pay-popup-active .backdrop {
    display: block;
    animation: payPopupBackdropFadeIn 0.4s ease-out 0s forwards;
}

.pay-popup, .pay-upsell {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(100%);
    z-index: 2;
}

.pay-upsell img,
.pay-popup img {
    width: 100vw;
    height: auto;
    object-fit: cover;
}

.pay-upsell-active .pay-upsell {
    transform: translateY(10%);
}

.pay-popup-active .pay-popup {
    transform: translateY(0%);
}

@keyframes modalBackdropFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 0.15;
    }
}

@keyframes payPopupBackdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.66;
    }
}