/*------------------------------------*\
    PRODUCT BUNDLES FRONTEND CONTENTS
\*------------------------------------*/
/*
PROJECT GLOBALS
BUNDLE GROUP
BUNDLE GROUP HEADER
*/

/*------------------------------------*\
    PROJECT GLOBALS
\*------------------------------------*/

.product-bundles {
    --fontFamily: 'Open Sans', Arial, sans-serif !important;
    --fontPrimaryColor: #303030;
    --headerBgColor: #f9f9f9;
    --inputBorder: 1px solid #DEE2E6;
    --borderRadiusSm: 2px !important;
    --borderRadiusLg: 4px;
    --bundleSpacing: 2rem 1.25rem;
    --bundleContainerBottomMargin: 20px;
}

.product-bundle > .bundle {
    list-style: none;
    margin-top: 0px;
    padding-left: 0px;
}

.down-caret::after {
    position: relative;
    left: 9px;
    margin-bottom: -2px;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/*------------------------------------*\
    BUNDLE PAGE
\*------------------------------------*/

.prices { width: 100%; }

span.product-price__with-attributes {
    font-size: 0.9rem;
    margin-left: 1rem;
}

#bundle-product-page-button-col {
    padding: 0;
}

#bundle-product-page-button {
    display: flex;
}

#bundle-product-page-button__alert {
    color: tomato;
}

.bundle-product-page-button__alert--hidden {
    display: none;
}

#bundle-product-page-button .plus_minus_buttons {
    margin-left: -6px;
}

@media only screen and (max-width: 599px) {
    #bundle-product-page-button {
        flex-direction: column;
    }

    #bundle-product-page-button .plus_minus_buttons {
        margin-left: 5%;
    }
}

#bundle-product-page-button > button {
    padding: 14px 10px !important;
    height: 49px !important;
    background: rgba(71, 131, 75, 0.5) !important;
    text-transform: uppercase;
    color: #fff !important;
}

.bundle-product-page-button--complete > #addToShoppingCart {
    background: #47834B !important;
}

#bundle-product-page-button > #addToShoppingCart:focus {
    outline: solid #005fcc;
}

/* THEME EUROPE specific */
.bundle-product-page-button__container {
    display: flex;
}

.bundle-product-page-button__container .product_quantity-bundles {
    width: auto;
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.bundle-product-page-button__container .product_quantity-bundles .product_quantity.product_quantity__simple input {
    height: 49px;
    width: 60px;
}

.bundle-product-page-button__container .product_quantity-bundles .product_quantity {
    margin-bottom: 0;
}

.bundle-product-page-button__container #bundle-product-page-button {
    flex-grow: 2;
}

/*------------------------------------*\
    BUNDLE GROUP
\*------------------------------------*/

.bundle-group {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    padding: 8px;
    margin-bottom: 20px;
    max-height: 2000vh;
    transition: max-height 0.4s ease;
}

.bundle-group--collapsed {
    max-height: 164px;
    overflow: hidden;
}

button.bundle-group__button {
    /* Fight the js adding an element style of width 160px */
    width: 100% !important;
    border: none;
    padding: 14px 10px;
    font-family: inherit;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 23px;
    color: #000;
    cursor: pointer;
}

button.bundle-group__button--completed {
    color: rgba(0, 0, 0, 0.4);
}

/*------------------------------------*\
    BUNDLE GROUP COLLAPSED STATE
\*------------------------------------*/

.bundle-group--collapsed .bundle-product__attributes {
    opacity: 0;
}

.bundle-group--collapsed .bundle-product__content {
    /* display: flex;
    justify-content: center;
    align-items: center;
     */
    /* position: relative; */
}

.bundle-group--collapsed {
    max-height: 171px;
    overflow: hidden;
    position: relative;
}

.bundle-group--collapsed .bundle-product__image img {
    /* max-height: 84px; */
    height: 84px;
    object-fit: contain;
    min-width: 70px;
    width: 70px;
}

.bundle-group--collapsed .bundle-product__content h3 {
    transform: translate(1px, 10px);
}

.bundle-group--collapsed .bundle-product__attributes-summary {
    transform: translate(50%, 100%);
}


/*------------------------------------*\
    BUNDLE GROUP HEADER
\*------------------------------------*/

.bundle-group__header {
    display: flex;
    border-bottom: 1px solid #CCCCCC;
    padding-bottom: 8px;
    margin-bottom: 15px;
    justify-content: space-between;
    align-items: center;
}

.bundle_group__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(0deg, #575757, #575757), linear-gradient(0deg, #575757, #575757), #575757;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 5px;

    color: #fff;
}

.bundle-group--completed .bundle_group__number {
    background: linear-gradient(0deg, #47834B, #47834B), linear-gradient(0deg, #575757, #575757), #575757;
}

.bundle_group__name {
    font-style: normal;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin-left: 15px;
}

.bundle_group__collapse {
    font-family: inherit;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 12px;
    color: #303030;
    margin-left: auto;
    /* To compensate for the position of the caret in ::after */
    padding-right: 9px;
    cursor: pointer;
}

.bundle_group__collapse.down-caret::after {
    transform: rotate(180deg);
}

.bundle_group__collapse--collapsed.bundle_group__collapse.down-caret::after {
    transform: rotate(0deg);
}

/*------------------------------------*\
    BUNDLE PRODUCT
\*------------------------------------*/
.bundle-product {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.bundle-product__content-container {
    display: flex;
    width: 100%
}

.bundle-product__image {
    flex-grow: 1;
    flex-shrink: 3;
    width: 25%;
    max-width: 25%;
    min-width: 25%;
}

.bundle-product__content {
    flex-grow: 3;
    padding-left: 20px;
    margin-left: auto;
}

.bundle-product__content h3 {
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.bundle-product__attributes {
    transition: all 0.3s ease;
}

.bundle-product__attributes-summary {
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.attribute_element--not-selected {
    box-shadow: 0 1px 0 0 tomato; /* Border bottom */
    box-shadow: 0 -1px 0 0 tomato; /* Border top */
    box-shadow: -1px 0 0 0 tomato; /* Border left */
    box-shadow: 1px 0 0 0 tomato; /* Border right */
    box-shadow: 0 0 0 1px tomato; /* All the borders by using the spread properties */
}

.attribute_element--not-selected::before {
    display: block;
    position: absolute;
    color: tomato;
    font-size: 0.9rem;
    z-index: 100;
    top: 0;
    right: 6px;
}
.bundle-product-select-parent--hidden.attribute_element--not-selected::before {
    content: "Velg";
}

/* Targets the attribute_element_X */
.attribute_container > div {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.attribute_element .fs-dropdown {
    width: 100%;
}

.attribute_container > div {
    margin-bottom: 10px;
    padding: 1px;
}

.attribute_container > div > p:first-of-type {
    width: 100%;
}

/* Takes the hidden select container out of the normal content flow */
.bundle-product-select-parent--hidden > div:first-of-type {
    position: absolute;
}

.bundle-product__attributes .bundle-product__attribute-variant > img {
    min-width: 50px;
    aspect-ratio: 2/3;
    object-fit: contain;
}

.bundle-product__attributes .attribute_container .bundle-product-select-parent--hidden {
    position: relative;
}

.bundle-product__attribute-variant {
    margin-right: 5px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 4px;
    border-radius: 3px;
    width: unset !important;
    background: none !important;
    border: none !important;
    max-width: 32%;
}

.bundle-product__attribute-variant--small {
    margin-right: 5px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding-left: 12px;
    border-radius: 3px;
    width: unset !important;
    background: none !important;
    border: none !important;
    min-width: 100%;
    justify-content: space-between;
    border: 1px solid #CCCCCC !important;
    margin-top: 5px;
}

.bundle-product__attribute-variant--small > img {
    min-width: 40px !important  ;
    aspect-ratio: 2/3;
    object-fit: contain;
    margin-right: 4px;
}

.bundle-product__attribute-variant--small > .attr_name{
    margin-right: auto;
}
.bundle-product__attribute-variant > .attr_name{
    display: block;
    white-space: break-spaces;
    font-size: 12px;
}

.bundle-product__attribute-variant.bundle-product__attribute-variant--small.bundle-product__attribute-variant--active {
    border: 1px solid #CCCCCC !important;
    background: lightgray !important;
}

.bundle-product__attribute-variant.bundle-product__attribute-variant--active {
    border: 1px solid #CCCCCC !important;
}

.bundle-product-select--hidden {
    opacity: 0 !important;
    display: none !important;
}
.bundle-product-select--hidden + .fs-dropdown-selected {
    opacity: 0 !important;
    position: relative;
    width: 0;
    height: 0;
}

.bundle-product:not(:first-of-type) {
    margin-top: 30px;
}

.bundle-product__info {
    width: 100%;
}

.bundle-product__show_product_description {
    display: block;
}



.bundle_product_description {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.bundle-product__info {
    margin-top: 11px;
}

.bundle-product__info summary {
    display: block;
    position: relative;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #000000;
}

.bundle-product__info details {
    background: white;
    height: auto;
    max-height: 1.5rem; /* set to line height */
    transition: all 0.1s ease;
}

.bundle-product__info details summary::-webkit-details-marker {
    display:none;
}

.bundle-product__info details[open] > summary::after {
    transform: rotate(-90deg);
}

.bundle-product__info details[open] {
    max-height: 2000vh;
    transition: all 1s ease;
}

.bundle-product__info details[open] .bundle_product_description {
    opacity: 1;
    transform: translateX(0px);
}

.bundle-product__info summary::after {
    position: relative;
    left: 9px;
    margin-bottom: -2px;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transform: rotate(0);
    transform-origin: .2rem 50%;
    transition: .25s transform ease;
}


.cart_content .bundle-products_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart_content .bundle-products_info h5 {
    margin-bottom: unset;
}

.cart_content .bundle-products_info > * {
    text-align: unset !important;
}

.cart_content .bundle-products_info {
    display: flex;
    color: #747272 !important;
}

.cart_content .bundle-products_info div {
    display: flex;
}
