.ekwb-bundle {
    margin: 25px 0;
}

.ekwb-bundle-header {
    margin-bottom: 24px;
    padding: 0 10px;
}

.ekwb-bundle-title {
    color: #2d2d2d;
    font-size: 22px;
    font-weight: bold;
    text-transform: none;
}

.ekwb-bundle-content {
    background-color: #f2f2f2;
    border-bottom: 1px solid #e1e1e1;
    border-top: 1px solid #e1e1e1;
    padding: 24px 24px 0 24px;
    text-align: center;
    position: relative;
}

.ekwb-bundle-products {
    position: relative;
}

.ekwb-bundle-products .flex-grid-item {
    margin-bottom: 24px;
}

.ekwb-bundle-product {
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 5px;
    position: relative;
}

.ekwb-bundle-flag {
    background-color: #ab4b3c;
    color: #ffffff;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 10px;
}

.ekwb-bundle-product .product-quantity {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
}

.ekwb-bundle-product .product-image {
    border: none;
    margin-bottom: 20px;
    position: relative;
}

.ekwb-bundle-product .product-image:hover {
    border: none !important;
}

.ekwb-bundle-product .product-thumbnail {
    border: 1px solid #ebebeb;
    position: relative;
}

.ekwb-bundle-product .product-thumbnail img {
    display: block;
    height: auto;
    width: 100%;
}
.ekwb-bundle-product .product-thumbnail img.placeholderchildimage {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1;
}
.ekwb-bundle-product .product-title {
    color: #000000;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    text-transform: none;
}

.ekwb-bundle-configurable-options {
    margin-top: 16px;
}

.ekwb-bundle-configurable-option:not(:last-child) {
    margin-bottom: 8px;
}

.ekwb-bundle-dropdown {
    padding: 0;
    position: relative;
}

.ekwb-bundle-dropdown.validation-error:after {
    border-color: #ff0037 transparent transparent transparent;
}

.ekwb-bundle-dropdown:after {
    border-color: #f78c22 transparent transparent transparent;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    content: '';
    height: 0;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 14px;
    width: 0;
}

.ekwb-bundle-dropdown select {
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 0;
    color: #9c9c9c;
    font-size: 12px;
    margin: 0;
    outline: none;
    padding: 6px 30px 6px 6px;
    width: 100%;
    -webkit-appearance: none;
}

.ekwb-bundle-dropdown select.validation-failed {
    border-color: #ff0037;
    color: #ff0037;
}

.ekwb-bundle-dropdown .validation-advice {
    display: none;
}

.ekwb-bundle-discount-percent,
.ekwb-bundle-price {
    margin-bottom: 20px;
}
.ekwb-bundle-price.bundle-no-discount {
    margin-top: 50px;
}

@media (max-width: 767px) {
    .ekwb-bundle-price.bundle-no-discount {
        margin-top: 0px;
    }
}


.ekwb-bundle-price-label,
.ekwb-bundle-price-old {
    font-size: 12px;
    line-height: 16px;
}

.ekwb-bundle-price-label,
.ekwb-bundle-price-value {
    color: #000000;
}

.ekwb-bundle-price-value {
    font-size: 22px;
    font-weight: bold;
    line-height: 26px;
    margin-bottom: 5px;
}

.ekwb-bundle-price-old {
    color: #a3a3a3;
}

.ekwb-bundle-message:not(:empty) {
    border-top: 1px solid #dcdcdc;
    font-size: 12px;
    font-weight: bold;
    padding: 14px 0;
}

.ekwb-bundle-message.is-error {
    color: #ff0037;
}

.ekwb-bundle-message.is-success {
    color: #11b400;
}

.ekwb-bundle-add-to-cart {
    margin-bottom: 24px;
    text-align: center;
}
.ekwb-bundle-add-to-cart.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f2f2f2;
    margin: 0 15px;
    padding-top: 15px;
}
.ekwb-bundle-add-to-cart.sticky .ekwb-bundle-discount-percent {display: none;}

.ekwb-bundle-add-to-cart-button {
    background: #f78d22;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    outline: none;
    padding: 15px;
    position: relative;
    text-align: center;
    transition: background .3s ease-in-out;
    width: 100%;
}

.ekwb-bundle-add-to-cart-button:hover {
    background: #333333;
}

.ekwb-bundle-add-to-cart-button.is-loading {
    background: #a3a3a3;
    color: transparent;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.ekwb-bundle-add-to-cart-button.is-loading:before {
    border: 2px solid #fff;
    border-radius: 100%;
    content: '';
    height: 14px;
    left: 50%;
    margin: -7px 0 0 -7px;
    position: absolute;
    top: 50%;
    width: 14px;
}

.ekwb-bundle-add-to-cart-button.is-loading:after {
    animation: spin .5s infinite linear;
    border-color: #a3a3a3 transparent transparent;
    border-radius: 100%;
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 0 0 1px transparent;
    content: '';
    height: 14px;
    left: 50%;
    margin: -7px 0 0 -7px;
    position: absolute;
    top: 50%;
    width: 14px;
}

.ekwb-bundle-sign {
    color: #f78d22;
    font-size: 28px;
    font-weight: bold;
    margin: 24px 0;
}

.ekwb-bundle-sign-equals {
    color: #f78d22;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 24px;
    text-align: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media all and (min-width: 568px) {
    .ekwb-bundle-content {
        text-align: left;
    }

    .ekwb-bundle-products {
        margin-left: -38px;
        padding-right: 38px;
    }

    .ekwb-bundle-products .flex-grid {
        display: flex;
        flex-wrap: wrap;
        margin-left: 40px;
    }

    .ekwb-bundle-products .flex-grid-item {
        display: flex;
    }

    .ekwb-bundle-products .flex-grid-item:nth-child(2n+3) .ekwb-bundle-sign > span {
        display: none;
    }

    .ekwb-bundle-layout-horizontal .flex-grid-item {
        flex: 1 0 50%;
    }

    .ekwb-bundle-layout-vertical .flex-grid-item {
        flex: 0 0 50%;
    }

    .ekwb-bundle-sign-equals {
        transform: translateX(38px);
    }

    .ekwb-bundle-sign {
        margin: 0 12px;
        position: relative;
        width: 15px;
    }

    .ekwb-bundle-sign > span {
        left: 50%;
        position: absolute;
        top: 40%;
        transform: translateX(-50%) translateY(-40%);
    }
}

@media all and (min-width: 768px) {
    .flex-grid {
        display: flex;
    }

    .ekwb-bundle-content {
        display: flex;
    }

    .ekwb-bundle-content form {
        width: 100%;
    }

    .ekwb-bundle-products {
        flex: 2;
    }

    .ekwb-bundle-products .flex-grid {
        margin-left: 0;
    }

    .ekwb-bundle-add-to-cart {
        align-self: center;
        border-top: none;
        flex: 1;
        padding-top: 0;
        text-align: left;
    }

    .ekwb-bundle-sign-equals {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateX(0) translateY(-50%);
    }
}

@media all and (min-width: 992px) {
    .ekwb-bundle-products {
        flex: 4;
    }

    .ekwb-bundle-products .flex-grid-item:nth-child(2n+3) .ekwb-bundle-sign > span {
        display: block;
    }

    .ekwb-bundle-products.is-columns-3 .flex-grid-item:nth-child(4n) .ekwb-bundle-sign > span {
        display: none;
    }

    .ekwb-bundle-products.is-columns-4 .flex-grid-item:nth-child(5n) .ekwb-bundle-sign > span {
        display: none;
    }

    .ekwb-bundle-layout-horizontal .flex-grid-item {
        flex: 1 0 50%;
    }

    .ekwb-bundle-layout-horizontal .ekwb-bundle-product {
        display: flex;
        width: 100%;
    }

    .ekwb-bundle-layout-horizontal .product-image {
        margin-bottom: 0;
        max-width: 185px;
    }

    .ekwb-bundle-layout-horizontal .product-details {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: center;
        padding: 0 12px 0 24px;
    }

    .ekwb-bundle-layout-vertical .flex-grid-item {
        flex: 1 0 25%;
    }

    .is-centered .is-columns-4 .flex-grid-item:nth-child(4),
    .is-centered .is-columns-3 .flex-grid-item:nth-child(3) {
        margin-bottom: 12px;
        transform: translateY(50%);
    }

    .ekwb-bundle-layout-vertical.is-columns-4 .flex-grid-item {
        flex: 0 0 25%;
    }

    .ekwb-bundle-layout-vertical.is-columns-3 .flex-grid-item {
        flex: 0 0 33.3333%;
    }

    .ekwb-bundle-add-to-cart {
        margin-top: 0;
    }
}
