﻿#checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    background-color: #FFF;
    z-index: 1500;
}

#checkout.checkout__tz-me {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

#checkout button {
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

#checkout h1 {
    font-size: 26px;
    font-weight: normal;
    line-height: 34px;
    margin: 0;
}
#checkout h2 {
    font-size: 24px;
    font-weight: normal;
    line-height: 31px;
    margin: 0;
}
#checkout h3 {
    font-size: 22px;
    font-weight: normal;
    line-height: 28px;
    margin: 0;
}
#checkout h4 {
    font-size: 20px;
    font-weight: normal;
    line-height: 25px;
    margin: 0;
}
#checkout h5 {
    font-size: 18px;
    font-weight: normal;
    line-height: 22px;
    margin: 0;
}
#checkout h6 {
    font-size: 16px;
    font-weight: normal;
    line-height: 20px;
    margin: 0;
}

#checkout label, #checkout p {
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
    margin: 0;
}

#checkout input,
#checkout textarea,
#checkout__input-card-empty,
#checkout__input-card-populated {
    width: 100%;
    height: 34px;
    padding: 8px;
    font-size: 14px;
    color: #31325F;
    border-radius: 4px;
    border: 1px solid #C2C7CC;
}

#checkout textarea {
    height: 80px;
}

#checkout__input-card-empty {
    padding: 0 0 0 8px;
}

.checkout__wrapper {
    position: relative;
    margin: 16px;
}

/* Override the light loader with a dark version for white backgrounds. */
#checkout .loader.loader--dark {
    border-top: 1.1em solid rgba(0, 0, 0, 0.2);
    border-right: 1.1em solid rgba(0, 0, 0, 0.2);
    border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
    border-left: 1.1em solid rgba(0, 0, 0, 0.7);
}

#checkout__loader-page {
    height: calc(100vh - 32px); /* Viewport minus padding. */
    margin-top: calc(-50vh + 310px);
}
.checkout__checkout-link #checkout__loader-page {
    margin-top: calc(-50vh + 310px);
}

#checkout__btn-close {
    top: 0;
    right: 0;
    position: absolute;
    height: 20px;
    width: 20px;
    background-size: 100%;
    opacity: 0.5 !important;
    cursor: pointer;
    z-index: 1;
}

#checkout__btn-close img {
    width: 20px;
}

.checkout__content {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 32px); /* Viewport minus padding. */
    max-width: 350px;
}

#checkout__product-overview {
    text-align: center;
}
.checkout__checkout-link #checkout__product-overview {
    max-height: 500px;
}

.checkout__vertical-line {
    display: none;
    border-left: 1px solid #C2C7CC;
    margin: 0 32px;
}

.checkout__column {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
}

#checkout__label-setup {
    position: absolute;
}

#checkout__product-name {
    margin: 0 0 20px 0 !important;
}

#checkout__product-image {
    width: 120px;
    height: 120px;
    background-color: #EEE;
    background-image: url(/Content/images/null-img/Screen_noPlan.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 75px;
}

/* Rendered select menu button for select-session */
#checkout__select-session-button,
#checkout__select-session-button.ui-state-focus {
    color: #333;
    font-weight: 300;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #FFF;
    border: 1px solid #DDD;
}

/* Override select menu arrow color */
#checkout__select-session-button.ui-state-default .ui-icon {
    background-image: url(/Content/jquery-ui-1.11.4/images/ui-icons_222222_256x240.png);
}

#checkout__select-session-menu.ui-widget-content {
    background: #FFF;
}

#checkout__select-session-menu .ui-menu-item,
#checkout__select-session-menu .ui-menu-item.ui-state-focus {
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin: 0;
}

#checkout__select-session-menu .ui-menu-item.ui-state-focus {
    border: none;
    background: #EEE;
}

#checkout__wrapper-nested-session-detail {
    text-align: left;
}

#checkout__list-sessions-included {
    padding-left: 25px;
}

.checkout__details-header {
    display: none;
}

#checkout__product-description {
    overflow-y: auto;
}

#checkout__btn-buy-desktop {
    width: 150px;
    display: none;
}

#checkout__img-card-brand {
    width: 25px;
    height: 18px;
}

.checkout__wrapper-discount-code {
    height: 90px;
}

#checkout__wrapper-discount-code-view {
    padding-left: 30px;
    background-image: url(/Content/images/coupon-added.png);
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 20px;
}

#checkout__arrow {
    display: inline-block;
    border-bottom: 4px solid transparent;
    border-top: 4px solid transparent;
    border-left: 7px solid #CDCDCD;
    vertical-align: middle;
    margin: 0 0 2px 8px;
    transition: transform 0.1s linear;
    -webkit-transition: transform 0.1s linear;
}

#checkout__arrow.down {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
}

#checkout__btn-apply-discount-code {
    width: 90px;
    height: 34px;
}

.checkout__loader {
    position: absolute;
    right: 10px;
    top: 0;
}

.checkout__loader .loader {
    font-size: 8px;
}

#checkout__wrapper-existing-account, #checkout__wait-list-existing-account {
    margin-top: 8px;
}

#checkout__wrapper-error {
    margin-top: 8px;
}

.checkout__wrapper-img-success,
.checkout__wrapper-img-error {
    margin: 30px auto 0 auto;
}

.checkout__img-success {
    height: 53px;
    width: 53px;
}

.checkout__img-error {
    height: 68px;
    width: 63px;
}

.checkout__loader-authentication {
    width: 100%;
    height: 100px;
}

.checkout__full-page {
    width: calc(100vw - 32px); /* Viewport minus padding. */
    max-width: 600px;
}

#checkout__btn-setup-account {
    width: 100%;
}

#checkout__wrapper-powered-by {
    margin-top: 64px;
}

#checkout__label-powered-by {
    line-height: 14px;
}

#checkout__power-by-logo {
    width: 120px;
    height: 33px;
    background-image: url('https://file.trainerize.com/assets/tzme/images/abc-trainerize-logo--gray.svg');
    background-repeat: no-repeat;
}

/* Animation Start */

.checkout__animate-show {
    -webkit-animation: checkout-show--webkit .5s;
    animation: checkout-show .5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.checkout__animate-show--delay {
    -webkit-animation: checkout-show--webkit .5s;
    animation: checkout-show .5s;
    -webkit-animation-delay: .2s;
    animation-delay: .2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.checkout__animate-hide {
    -webkit-animation: checkout-hide--webkit .2s;
    animation: checkout-hide .2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.checkout__animate-move-down {
    -webkit-animation: checkout-move-down--webkit .5s;
    animation: checkout-move-down .5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.checkout__animate-move-down--immediate {
    -webkit-animation: checkout-move-down--webkit .1s;
    animation: checkout-move-down .1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

/* TOS dialog */

#checkout__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-hover);
    opacity: 0.8;
    z-index: 999;
  }
  
  #checkout__tos {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - (32px));
    max-height: calc(100vh - 32px);
    padding: 32px;
    overflow-y: auto;
    background-color: var(--color-white);
    z-index: 1000;
  }
  
  #checkout__tos-content-wrapper {
    height: 221px;
    border-radius: 4px;
    border: 1px solid var(--color-light-gray);
    padding: 0 12px;
    scroll-behavior: smooth;
    overflow-y: auto;
    word-wrap: break-word;
  }
  
  #checkout__tos-content-header {
    position: sticky;
    top:0;
    background-color: var(--color-white);
    padding: 12px 0;
  }

  #checkout__tos-content {
    max-width: 100%;
  }
  
  #checkout__tos input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    padding: 6px;
    margin-right: 8px;
    margin-top: 2px;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  #checkout__tos input[type="checkbox"]:checked {
    background-color: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
  }
  
  #checkout__tos input[type="checkbox"]:focus {
    outline: none;
  }
  
  #checkout__tos input[type="checkbox"]:checked::after {
    content: "";
    background-image: url(/Content/images/chekbox.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(100%);
    width: 12px;
    height: 12px;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  #checkout .caption {
    font-size: 10px;
  }
  
  #checkout__tos button {
    width: 95%;
    height: 30px;
  }

  #checkout__tos-content h1 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 400;
  }

  #checkout__tos-content h2,
  #checkout__tos-content h3,
  #checkout__tos-content h4,
  #checkout__tos-content h5,
  #checkout__tos-content h6 {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
  }

  #checkout__tos-content p,
  #checkout__tos-content ol,
  #checkout__tos-content ul {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
  }

  #checkout__tos-content a {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-primary-blue);
  }

  #checkout__tos-content a:hover {
    text-decoration: none;
  }

  #checkout__tos-content h1,
  #checkout__tos-content h2,
  #checkout__tos-content h3,
  #checkout__tos-content h4,
  #checkout__tos-content h5,
  #checkout__tos-content h6 {
    margin-top: 16px;
    margin-bottom: 8px;
  }

  #checkout__tos-content p,
  #checkout__tos-content ol,
  #checkout__tos-content ul {
    margin-top: 8px;
  }

  #checkout__tos-content ol,
  #checkout__tos-content ul {
    padding-left: 18px;
  }
/* END TOS dialog */

@-webkit-keyframes checkout-show--webkit {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes checkout-show {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes checkout-hide--webkit {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes checkout-hide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes checkout-move-down--webkit {
    0% {
        -webkit-transform: translateY(0px);
    }

    100% {
        -webkit-transform: translateY(20px);
    }
}

@keyframes checkout-move-down {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(20px);
    }
}

/* Animation End */

@media only screen and (min-width: 768px) {
    #checkout {
        justify-content: center;
    }
    #checkout.checkout__checkout-link {
        margin-top: calc(50vh - 310px);
    }

    .checkout__content:not(.checkout__no-description) {
        max-width: 750px;
        flex-direction: row;
        justify-content: center;
    }

    .checkout__vertical-line:not(.checkout__no-description) {
        display: block;
    }

    .checkout__column:not(.checkout__no-description) {
        align-items: flex-start;
        width: 350px;
        min-height: 500px;
    }

    .checkout__checkout-link #checkout__product-overview {
        position: sticky;
        top: calc(50vh - 290px);
    }

    #checkout__product-overview.checkout__no-description {
        min-height: 500px;
    }
    #checkout__product-overview:not(.checkout__no-description) {
        text-align: left;
    }

    #checkout__wrapper-btn-buy.checkout__no-description {
        display: flex;
        justify-content: center;
    }

    #checkout__product-image {
        width: 195px;
        height: 195px;
    }

    .checkout__details-header {
        display: block;
    }

    #checkout__btn-buy-desktop {
        display: block;
    }

    #checkout__btn-buy-mobile {
        display: none;
    }

    #checkout__btn-setup-account {
        width: 300px;
    }

    #checkout__tos {
        width: 704px;
        height: 596px;
        padding: 48px;
    }
}
