body {
    background-color: $grey-50!important;
    font-family: $base-font-family;
}

hr {
    border-color: $grey-400;
}

.purchase-flow-wrap {
    padding-top: 0;
    max-width: 932px;
    margin: 0 auto;
    //background-image: url(../img/background-blur.png);
    background-size: contain;
    background-attachment: fixed;

    @include media-breakpoint-up(lg) {
        padding-top: $spacer * 3;
        padding-bottom: $spacer * 10;
    }
}

/**
 * STEP TITLES
 */
.purchase-flow-intro {
    margin-bottom: $spacer * 2;
}

.purchase-flow-intro p {
    font-weight: 400;
    color: $grey-600;

    @include media-breakpoint-up(md) {
        font-size: $h5-font-size;
    }
}

.purchase-flow-intro__title {
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: $h4-font-size;

    @include media-breakpoint-up(md) {
        font-size: $h2-font-size;
    }
}

.accordion-pf .accordion-header, 
.accordion-pf .accordion-item {
    background-color: transparent;
    border: none;
}

.accordion-pf .accordion-collapse {
    padding-top: $spacer * 2;
    margin-top: -86px;
}



.monthly-cost {
    line-height: 1;
    margin-top: calc($spacer/2);
    color: $grey-600;
    white-space: nowrap;
    font-size: $font-size-sm;

    @include media-breakpoint-up(md) {
        font-size: $font-size-base;
    }
}

.block-label--selected .block-label__checkbox {
    background-color: $blue-700;
}


.block-label input[type="radio"] {
    display: none!important;
}

.block-label__body {
    padding: 0 $spacer $spacer calc($spacer * 3);
}

.block-label__body p {
    font-weight: 400;
}

.block-label__body strong {
    color: $blue-700;
}

.block-label__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: $spacer $spacer * 1.5 $spacer $spacer * 3;
}

.subtitle,
.block-label__header span.block-label__subtitle {
    display: block;
    color: $body-color;
    font-size: $font-size-sm;
    font-weight: normal;
    line-height: 1;
    margin-top: calc($spacer/2);
}

.block-label__header h5 span {
    height: 1rem;
    line-height: 1rem;
    color: $blue-700;
    font-weight: 600;
}

.block-label--selected .block-label__header h5 span {
    color: $grey-900;
}

.block-label--selected .block-label__body strong {
    color: $grey-900;
}

.block-rounded.bundle-item-block,
.block-rounded.plan {
    padding-top: $spacer * 1.75;
    padding-bottom: $spacer * 1.75;
}

.bundle-item-block__header {
    display: flex;
    margin-bottom: $spacer * 2;
}

.price-container,
.bundle-item-block__title-container {
    //border: 1px solid #000;
}

.price-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-left: auto;
}

.price-container *:last-child {
    margin-left: auto;
}

.bundle-item-block__description p,
.bundle-item-block__description p span {
    font-weight: 400;
    color: $grey-600;

    @include media-breakpoint-up(md) {
        font-size: $h6-font-size;
    }
}

.bundle-item-block__description p strong {
    color: $grey-900;
}

.bundle-item-block__description.has-image {
    display: flex;
}

.bundle-item-block__description.has-image p {
    flex: 0 1 auto;
    padding-right: $spacer;
}

.bundle-item-block__title {
    font-size: $h5-font-size;
    line-height: 1;
    margin: 0;
    margin-bottom: calc($spacer/1.5);
    font-weight: 700;

    @include media-breakpoint-up(md) {
        font-size: $h4-font-size;
    }
}

.bundle-item-block__title span {
    display: block;
    font-size: .8em;
    margin: 0;
    padding: 0;
    line-height: 1.25;
}

.bundle-item-block__description.has-image .product-image {
    flex: 0 0 175px;
    align-self: center;
}

.bundle-item-block__description.has-image .product-image img {
    height: auto;
}

.bundle-item-block__price {
    //font-size: $h4-font-size;
    line-height: 1;
    text-align: right;
}

.bundle-item-block__price.strikethrough {
    position: relative;
    margin-bottom: calc($spacer/3);
}

.bundle-item-block__price.strikethrough:before {
    //content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 35%;
    height: 1px;
    background-color: $grey-500;
    margin: auto;
}

.bundle-item-block__price.strikethrough * {
    color: $grey-500;
}

.bundle-item-block__price.strikethrough .woocommerce-Price-currencySymbol, 
.bundle-item-block__price.strikethrough bdi {
    font-size: $h5-font-size;
    font-weight: 600;
}

.bundle-item-block__price.strikethrough bdi {
    text-decoration: line-through;
}

.bundle-item-block__price.strikethrough .font-size-sm {
    font-size: $h5-font-size;
    top: 0;
    font-weight: 600;
}

.bundle-item-block__price .font-size-sm {
    position: relative;
    top: -.1em;
    font-size: $h5-font-size;
}

.bundle-item-block__price bdi, 
.bundle-item-block__price .woocommerce-Price-currencySymbol {
    font-size: $h4-font-size;
}

.bundle-item-block__price .from {
    display: none;
}

.bundle-item-block__subprice, 
.bundle-item-block__subprice span {
    display: block;
    font-weight: 600;
    font-size: $font-size-sm;
    text-align: right;
    margin-top: calc($spacer/2);
}

/**
 * BUNDLED ITEMS
 */ 
.bundle-item-collapse {
    background-color: transparent;
    border: 0;
    border: 1px solid $grey-200;
    padding: calc($spacer/2) $spacer;
    display: block;
    width: 100%;
    border-radius: $border-radius-lg;
    text-align: left;
    margin-bottom: $spacer;
}

.bundle-item-collapse span {
    color: $blue-600;
    font-weight: 500;
}

.bundle-item-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bundle-item-collapse .chevron {
    transform: rotate(180deg);
    transition: transform .25s ease;
}

.bundle-item-collapse.button-collapsed .chevron {
    transform: rotate(0);
    transition: transform .25s ease;
}

.bundle-item-block__list {
    list-style-type: none;
    line-height: 2;
    margin-bottom: 2rem;
    font-weight: bold;
    border-radius: $border-radius-lg;
    opacity: 1;
    max-height: 500px;
    transition: max-height .25s ease, opacity .4s ease;
    //display: block;
}

.bundle-item-block__list.collapsed {
    //display: none;
    opacity: 0;
    max-height: 0;
    transition: opacity .25s ease, max-height .25s ease;
}

.bundled-item {
    display: flex;
    align-items: center;
    padding: 0 $spacer;
    margin: 0;
    border-bottom: 1px solid #f2f2f7;
    font-weight: normal;
    height: 65px;
}

.bundled-item:nth-last-child(2) {
    border-bottom: none;
}

.bundled-item__quantity {
    flex: 0 1 40px;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    border-radius: calc($spacer/2);
    border: 0;
    height: 40px;
    line-height: 40px;
    //border-radius: $border-radius-lg;
    background-color: $grey-50;
}

.bundled-item__times {
    margin: 0 $spacer;
}

.bundled-item__title {
    margin-right: auto;
    line-height: 1;
}

.bundled-item__title .subtitle {
    line-height: 1;
    color: $grey-600;
}

.bundled-item__thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-right: $spacer;
    padding: 5px;
}

.bundled-item__thumbnail img {
    max-height: 100%;
    image-rendering: -webkit-optimize-contrast;

}

.button-info {
    font-size: 0;
    background-color: transparent;
    border: 0;
    margin-right: calc($spacer/2);
}

/**
 * BUNDLED ITEM MODAL
 */

.modal.modal.modal--minimal.bundled-item-info .modal-dialog {
    max-width: 566px;
}

.bundled-item-info__image {
    height: 140px;
    text-align: center;
    margin-bottom: $spacer;
}

.bundled-item-info__image img {
    height: 100%;
    width: auto;
}

.bundled-item-info__text {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    color: $grey-900;
    font-weight: 400;
}

/**
 * BUNDLE IMAGE
 */
.sticky-container {
    position: sticky;
    top: 120px;
    border-radius: $border-radius-lg;
    //background-color: color(light-grey);
    overflow: hidden;
    max-width: 442px;
}

.block-purchase-info {
    margin: $spacer auto $spacer * 1.5 auto;
    padding: $spacer;

    @include media-breakpoint-up(lg) {
        max-width: 440px;
    }
}

.block-purchase-info-secondary {
    margin: 0;
    margin-top: $spacer * 2;
}

.block-purchase-info__item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    @include media-breakpoint-up(lg) {
        margin-bottom: $spacer * 2;
    }
}

.block-purchase-info__item:nth-child(2),
.block-purchase-info__item:nth-child(3) {
    display: none;

    @include media-breakpoint-up(lg) {
        display: flex;
    }
}

.block-purchase-info__text {
}


.block-purchase-info__item:last-child {
    margin-bottom: 0;
}

.block-purchase-info__image {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    height: $spacer * 3;
    width: $spacer * 3;
    border-radius: $border-radius-lg;
    margin-right: $spacer;
    background-color: $grey-50;
}

.block-purchase-info__text p:first-child {
    font-weight: 600;
    font-size: $h5-font-size;
    margin-bottom: calc($spacer/2);
}

.block-purchase-info__text p:nth-child(2) {
    color: $grey-900;
    font-weight: 400;
}

.block-purchase-info__item p {
    //white-space: nowrap;
    line-height: 1.25;
    font-size: $font-size-sm;
}

.current-step-bundle .accordion-item-bundle .purchase-step-title,
.current-step-siren .accordion-item-siren .purchase-step-title,
.current-step-subscription .accordion-item-subscription .purchase-step-title,
.current-step-cellular .accordion-item-cellular .purchase-step-title,
.current-step-desk_stand .accordion-item-deskstand .purchase-step-title,
.current-step-installation .accordion-item-installation .purchase-step-title {
    display: none;
}


/**
 * SWITCHER
 */

.switcher {
    display: flex;
    justify-content: space-around;
    background-color: $grey-100;
    padding: calc($spacer/4);
    border-radius: $border-radius-lg;
    margin-bottom: $spacer;
}

.switcher__button {
    border-radius: $border-radius-lg;
    border: none;
    //height: 50px;
    flex: 0 1 49%;
    padding: calc($spacer/2);
    background-color: rgba(255, 255, 255, 0);
    transition: background-color .25s ease;
}

.switcher__button.selected,
.switcher__button:hover {
    background-color: rgba(255, 255, 255, 1);
    transition: background-color .25s ease;
}

.switcher__button:hover .switcher__title, 
.switcher__button.selected .switcher__title {
    color: $blue-700;
}

.switcher__title {
    display: block;
    font-weight: bold;
}

.switcher__title {
    display: block;
}

.switcher__from {
    color: $grey-600;
}


/**
 * CUSTOM BUNDLE
 */

 .block-custom {
     position: relative;
 }

.custom-block-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: $spacer * 2;
    background-color: $blue-500;
    background-image: linear-gradient(225deg, #17A3FF 0%, #006BD9 100%);
    //padding: $spacer * 3 $spacer * 2;
    border-radius: $border-radius-lg;
    opacity: 1;
}

.custom-block-mask.fade-out {
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.custom-block-mask .bundle-item-block__title, 
.custom-block-mask .bundle-item-block__description p {
    color: #fff;
}

// Todo: refactor here

.site-head__wrap {
    height: 4.5rem!important;
}

.bundle-item-block__price del {
    display: none;
}

.bundle-item-block__price ins, 
.bundle-item-block__price bdi {
    text-decoration: none;
}

.bundle-image__quantity {
}

/** 
 * PLANS
 */
.plan .price {
    color: #006bd9;
    font-weight: bold;
}

.plan-lite .bundle-item-block__title {
    color: #E36500;
}

.plan-smart .bundle-item-block__title {
    color: $blue-700;
}

.plan-pro .bundle-item-block__title {
    color: $blue-1000;
}

.plan .btn {
    border: none;
} 

.plan-smart {
    border: 4px solid $blue-400;
}

.plan-pro {
    border: 4px solid $blue-1000;
}


.plan-lite .btn {
    background-color: #E36500;
}

.plan-smart .btn {
    background-color: $blue-700;
}

.plan-pro .btn {
    background-color: $blue-1000;
}

/**
 * QUOTE DETAILS
 */

.quote-details {
    //margin-bottom: $spacer * 2;
    
    @include media-breakpoint-up(lg) {
        margin-bottom: 0;
    }
}

.toggle-quote-drawer-button {
    background: none;
    border: none;
}

.toggle-quote-drawer-button .chevron {
    transform: rotate(0deg);
    transition: transform .25s ease;
    width: 16px;
}

.toggle-quote-drawer-button.drawer-open .chevron {
    transform: rotate(180deg);
    transition: transform .25s ease;
}

.quote-details__drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    //padding: $spacer 0;
}

.quote-details__drawer p {
    padding: calc($spacer/2) 0;
    background-color: $grey-50;
    text-align: center;
    color: $grey-600;
    margin-top: $spacer;
}

.quote-details__drawer .payment-icons {
    margin-top: $spacer * 1.5;
}

.payment-icon-klarna {
    position: relative;
    top: -2px;
}

.quote-details__drawer--open {
    max-height: 500px;
    transition: max-height .25s ease;
}

.header-mobile {
    position: sticky;
    top: 72px;
    left: 0;
    right: 0;
    padding-top: $spacer;
    background-color: #fff;
    margin-bottom: calc($spacer * 2);
    z-index: 999;
}

.quote-section-mobile {
    display: block;
    box-shadow: 0px 1.6px 2px -0.8px rgba(115, 115, 115, 0.15), 0px 0.5px 0.7px rgba(115, 115, 115, 0.15);
    padding-bottom: 1px;
    margin-bottom: $spacer;

}

/**
 * BUNDLE BREAKDOWN
 */

 .bundle-breakdown {
    //  display: flex;
    //  flex-wrap: wrap;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: $spacer;
    row-gap: $spacer;
    margin-bottom: $spacer;
    //max-width: 408px;
 }

 .bundle-breakdown-1 {
 }

 .bundle-breakdown-2 {
     grid-template-columns: 1fr 1fr;
}

 .bundle-breakdown-3 {
 }

 .bundle-breakdown-4 {
     grid-template-columns: 1fr 1fr 1fr 1fr;
 }

 .bundle-breakdown-5 {
     grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
 }

 .bundle-breakdown-6 {
 }

 .bundle-breakdown__item {
     position: relative;
     display: flex;
     justify-content: center;
     align-items: center;
     //flex-basis: 30%;
     //height: 100px;
     margin: 0;
     padding: calc($spacer/2);
     margin-bottom: 6%;
    border-radius: $border-radius-lg;
     background-color: $grey-50;
     height: 130px;

     @include media-breakpoint-up(lg) {
        max-width: 130px;
     }
 }

 // 2 bundled items
 .bundle-breakdown-2 .bundle-breakdown__item {
     @include media-breakpoint-up(lg) {
        max-width: 100%;
     }
 }

 // 3 bundled items
 .bundle-breakdown-3 .bundle-breakdown__item {
     @include media-breakpoint-up(lg) {
        max-width: 100%;
     }
 }

 .bundle-breakdown-3 .bundle-breakdown__item:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 1;
 }

 .bundle-breakdown-3 .bundle-breakdown__item:nth-child(2) {
    grid-column-start: 2;
    grid-column-end: 2;
 }

 .bundle-breakdown-3 .bundle-breakdown__item:nth-child(3) {
    grid-column-start: 3;
    grid-column-end: 3;
 }

 // 4 bundled items
 .bundle-breakdown-4 .bundle-breakdown__item {
     @include media-breakpoint-up(lg) {
        max-width: 100%;
     }
 }
 .bundle-breakdown-4 .bundle-breakdown__item:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 3;
 }

 .bundle-breakdown-4 .bundle-breakdown__item:nth-child(2) {
    grid-column-start: 3;
    grid-column-end: 5;
 }

 .bundle-breakdown-4 .bundle-breakdown__item:nth-child(3) {
    grid-column-start: 1;
    grid-column-end: 3;
 }

 .bundle-breakdown-4 .bundle-breakdown__item:nth-child(4) {
    grid-column-start: 3;
    grid-column-end: 5;
 }

 // 5 bundled items
 .bundle-breakdown-5 .bundle-breakdown__item {
     @include media-breakpoint-up(lg) {
        max-width: 100%;
     }
 }

 .bundle-breakdown-5 .bundle-breakdown__item:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 4;
 }

 .bundle-breakdown-5 .bundle-breakdown__item:nth-child(2) {
    grid-column-start: 4;
    grid-column-end: 7;
 }
 
 .bundle-breakdown-5 .bundle-breakdown__item:nth-child(3) {
    grid-column-start: 1;
    grid-column-end: 3;
 }
 
 .bundle-breakdown-5 .bundle-breakdown__item:nth-child(4) {
    grid-column-start: 3;
    grid-column-end: 5;
 }
 
 .bundle-breakdown-5 .bundle-breakdown__item:nth-child(5) {
    grid-column-start: 5;
    grid-column-end: 7;
 }

 .bundle-breakdown__item img {
     max-width: 67px;
     width: 100%;
 }

 .bundle-breakdown__item--central-alarm-hub img {}

 .bundle-breakdown__item--pir-motion-sensor img {
     max-width: 46px;
 }

 .bundle-breakdown__item--door-window-contact-sensor img {
     max-width: 30px;
 }

 .bundle-breakdown__item--outdoor-alarm-siren img {
 }

 .bundle-breakdown__item--desk-stand img {
 }

 .bundle-breakdown__item:nth-child(4),
 .bundle-breakdown__item:nth-child(5),
 .bundle-breakdown__item:nth-child(6) {
     margin-bottom: 0;
 }

 .bundle-breakdown__item img {
     object-fit: contain;
     width: 100%;
 }

 .bundle-breakdown__item .bundled-item__quantity {
     flex: 0 1 30px;
     min-width: 30px;
     line-height: 30px;
     height: 30px;
     position: absolute;
     bottom: calc($spacer/2);
     right: calc($spacer/2);
     background-color: $grey-100;
 }
 
/**
 * BUNDLE IAMGE
 */

.bundle-image {
    position: relative;
    height: 232px;
    // border: 1px solid red;
    max-width: 440px;
    margin: 0 auto;
}

.bundle-image__item {
    position: absolute;
    top: calc($spacer * 1.5);
    left: calc($spacer * 1.5);
    // border: 1px dashed #000;
}

.bundle-image__siren {
    opacity: 0;
    transition: .25s ease opacity;
}

    .show-siren .bundle-image__siren {
        opacity: 1;
        transition: .25s ease opacity;
    }

.bundle-image__hub {
    left: auto;
    right: $spacer * 1.5;
    transform: translateX(-70%);
    transition: .25s ease transform;
}

    .show-siren .bundle-image__hub {
        //right: auto;
        transform: translateX(0%);
        transition: .25s ease transform;
    }

.bundle-image__fob {
    top: auto;
    bottom: $spacer;
    right: auto;
    left: calc(16px + 180px);
    transform: translateX(-270%);
    transition: .25s ease transform;
}

    .show-siren .bundle-image__fob {
        transform: translateX(0%);
        transition: .25s ease transform;
    }

.bundle-image__motion-sensor {
    top: auto;
    bottom: $spacer;
    right: $spacer * 5;
    left: auto;
    transform: translateX(-170%);
    transition: .25s ease transform;
}

    .show-siren .bundle-image__motion-sensor {
        transform: translateX(0%);
        transition: .25s ease transform;
    }

.bundle-image__contact-sensor {
    top: auto;
    bottom: $spacer;
    right: calc($spacer * 1.5);
    left: auto;
}


.fade-out {
    opacity: 0;
    transition: .25s ease opacity;
}

.plan.fade-in,
.fade-in {
    opacity: 1;
    transition: .25s ease opacity;
}

/**
 * DESK STAND IMAGE
 */ 
 .desk-stand-image {
    background-color: $grey-50;
     text-align: center;
     margin-bottom: $spacer;
     border-radius: $border-radius-lg;
 }



 dt {
     font-weight: 700;
     font-size: $font-size-sm;
     color: $grey-900;

     @include media-breakpoint-up(md) {
        font-size: $h6-font-size;
     }
 }

 .dt-title {
     font-size: $h5-font-size;
     margin-bottom: $spacer * 1.5;

     @include media-breakpoint-up(md) {
        font-size: $h4-font-size;
     }
 }

 dt.minus, 
 dt.plus {
    background-repeat: no-repeat;
    background-size: 15px;
    background-image: url(../../images/icons/plus-green.svg);
    padding-top: calc($spacer * 1.5);

     @include media-breakpoint-up(md) {
        background-size: 20px;
        background-position: 0 50%;
        padding-top: 0;
        padding-left: calc($spacer * 2.25);
     }
 }

 dt.minus {
    background-image: url(../../images/icons/minus-red.svg);
 }

 dt.plus + dd, 
 dt.minus + dd {
     padding-left: 0;
         
     @include media-breakpoint-up(md) {
        padding-left: calc($spacer * 2.25);
     }
 }

 dd {
     color: $grey-600;
     font-weight: 400;
     margin-bottom: $spacer;
    font-size: $font-size-sm;

     @include media-breakpoint-up(md) {
         font-size: $font-size-base;
     }
 }

 /**
  * MODAL
  */
.modal.modal--minimal {
    z-index: 999999;
}

.modal.modal--minimal .modal-content {
    border: none;
    box-shadow: none;
    text-align: left;
    margin: auto;
    padding: calc($spacer * 3) 0  calc($spacer * 4) 0 !important;

    @include media-breakpoint-up(md) {
        padding: calc($spacer * 6) $spacer  calc($spacer * 4) $spacer !important;
    }

    @media screen and (min-width: 1080px) {
        padding: calc($spacer * 6) calc($spacer * 4) calc($spacer * 4) calc($spacer * 4)!important;
    }
}

.modal.modal--minimal .modal-dialog {

    @include media-breakpoint-up(md) {
        max-width: 90vw;
    }

    @media screen and (min-width: 1080px) {
        max-width: 1080px;
    }
}

.modal-close {
    position: absolute;
    font-size: 0;
    background: none;
    border: 0;
    padding: 0;
    left: $spacer;
    top: $spacer;
    width: $spacer ;
    height: $spacer ;

    @include media-breakpoint-up(md) {
        left: calc($spacer * 2);
        top: calc($spacer * 2);
        width: calc($spacer * 1.5);
        height: calc($spacer * 1.5);
    }

}

.modal-backdrop {
    background-color: #eee;
}

.site-head, 
.site-foot, 
.purchase-flow-wrap {
    filter: blur(0);
    transition: filter .1s ease;
} 

.modal-open .site-head, 
.modal-open .site-foot, 
.modal-open .purchase-flow-wrap {
    filter: blur(5px);
    transition: filter .25s ease;
} 

.flex-equal {
    flex: 1 1 0;
}