/* BESPOKE */
.flex-row-wrap {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    align-items: center;
}

.flex-row-nowrap {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
}

/* Hide all product images */
.uc_shopping_cart table .image,
.uc_shopping_cart_control .mCSB_img_loaded,
.uc_product_details_v2 .productcontent > .image,
.uc_placeholder .image-block {
    display: none !important;
}

@media (max-width: 991px) {
    .uc_product_details_v2 .productcontent > .specs {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .uc_product_details_v2 .productcontent > .specs {
        width: 50%;
    }
}

.account h1,
.order_confirmation h1 {
    display: block !important;
}

a.btn-u-lg span {
    font-size: 18px;
    font-family: inherit !important;
    font-weight: normal;
}

.order_confirmation .buttons {
    margin-top: 30px !important;
}

/* Hide dropdown menu items for assortiment */
.uc_header_v6 .header-v5 .navbar-nav > li.dropdown > a[href*="webshop/product_list.aspx"] {
    padding-right: 20px !important;
}

.uc_menu_flyout .dropdown a[href*="webshop/product_list.aspx"]::after,
.uc_menu_flyout .dropdown a[href*="webshop/product_list.aspx"] + .dropdown-menu,
.uc_menu_flyout .dropdown a[href*="webshop/product_list.aspx"] + .dropdown-button {
    display: none !important;
}

/* Disable reservation in favorites list */
.uc_favorites_overview .toggle-reservation-btn {
    display: none !important;
}

div.uc_categories_overview.advanced.text-bg .category-name {
    line-height: 1.2;
}

@media (min-width: 501px) {
    .uc_categories_overview a.image {
		position: relative;
		padding-bottom: 100%;
		display: inline-block;
		width: 100%;
	}

	.uc_categories_overview a.image img {
		position: absolute;
		top: 0;
		left: 0;
		object-fit: contain;
		width: 100%;
		height: 100%;
	}

	.uc_categories_overview a.image div.category-name {
		top: 100% !important;
		position: absolute !important;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
    div.uc_categories_overview.advanced.text-bg .category-name {
        font-size: 10px !important;
    }
}

@media (min-width: 1200px) {
    div.uc_categories_overview.advanced.text-bg .category-name {
        font-size: 11px !important;
    }
}

/* ============================================================ */
/* Handles VueJs Styles
/* =============================================================*/
.utlz-reset h3 {
    font-size: 20px;
}

.quantity-btn {
    background-color: #dedede !important;
    border: 0 !important;
} 

.button.theme-primary:hover,
.add-to-cart-btn:hover i {
    color: #fff !important;
}

.button.order-lock,
.button.order-lock:hover {
    cursor: not-allowed;
    background-color: #65737f;
    color: #fff;
}

/* Global tables styles */
.orderline-header {
    font-weight: bold;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

[class*="column-"] span,
[class*="column-"] h2.prod-title,
[class*="column-"] .price-list span {
    font-weight: 600;
    font-size: .75rem;
}

[class*="column-"] .price-list {
    margin-bottom: 0;
}
[class*="column-"]  h2.prod-title {
    margin-bottom: 0;
    font-family: 'Open Sans' !important;
}

[class*="column-"] .button.add-to-cart-btn.small {
    font-size: 20px;
    width: 35px;
    line-height: 35px;
    height: 35px;
}

[class*="column-"] .cmp-quantity-btns {
    margin-right: 10px;
}

[class*="column-"] .quantity-fld {
    height: 35px !important;
}

[class*="column-"] .quantity-btn {
    background-color: #fff;
}

[class*="column-"] .button.small.square {
    width: 35px;
    height: 35px;
    line-height: 35px;
}

[class*="column-"] .cmp-favorites-control i {
    line-height: 38px;
    height: 35px;
    width: 35px;
    border-radius: 0 !important;
}

[class*="column-"] .out-of-stock-msg {
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border-radius: 0 !important;
    font-size: .75rem;
    width: auto;
    justify-content: center;
    opacity: 1;
    border-color: #eee;
}

@media (max-width: 991px) {
    [class*="column-"] {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        width: 100% !important;
        border-bottom: 1px solid #eee;
        padding: 5px 0;
    }
}

/* Favorites */
.cmp-favorites-control i:hover {
    transform: scale(1);
    opacity: .75;
}


/* ============================================================ */
/* Handles .cmp-product-reservation
/* =============================================================*/

.cmp-product-reservation {
    width: 100% !important;
    display: flex;
    flex-flow: column;
}

.cmp-product-reservation .actions {
    width: auto;
}

.cmp-product-reservation ::placeholder {
    font-style: italic;
}

.cmp-product-reservation .reference-field {
    margin-right: 15px;
}

.cmp-product-reservation .reserve-btn {
    font-weight: 600;
    font-size: .75rem;
}

.cmp-product-reservation .reservation-panel {
    padding: 30px 15px;
    display: flex;
    align-items: center;
    margin-top: 5px;
    flex-flow: row nowrap;
    justify-content: space-between;
    background-color: #f3f3f3;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.25);
    width: 100%;
}

.cmp-product-reservation .reservation-panel p,
.cmp-product-reservation .reservation-panel i {
    line-height: 1rem;
}

.cmp-product-reservation .reservation-panel i {
    margin-right: 5px;
}

.cmp-product-reservation .reservation-panel p {
    margin-bottom: 0;
    font-weight: 600;
}

.cmp-product-reservation.using-reference .reference-field {
    flex-grow: 1;
}

@media (max-width: 475px) {
    .cmp-product-reservation.using-reference .actions {
        flex-flow: row wrap;
    }

    .cmp-product-reservation.using-reference .reference-field {
        width: 100%;
        margin: 0 0 10px;
    }

    .cmp-product-reservation.using-reference .button {
        flex-grow: 1;
    }
}

@media (max-width: 991px) {
	.cmp-product-reservation .actions {
        width: 100%;
    }

    .cmp-product-reservation .reservation-panel {
        flex-flow: column;
        justify-content: center;
        padding: 15px;
        align-items: center;
    }

    .cmp-product-reservation .title-wrapper {
        margin-bottom: 10px;
    }
}

@media (min-width: 992px) {
    .cmp-product-reservation {
        align-items: flex-end;
    }

    .cmp-product-reservation .reference-field {
        margin-left: 15px;        
        width: 300px;
    }

    .cmp-product-reservation .cta-wrapper {
        padding-right: 95px;
        width: 215px;
        text-align: center;
    }

    .alert-warning .cmp-product-reservation .cta-wrapper {
        padding-right: 45px;
    }
}

/* ============================================================ */
/* Handles .cmp-elastic-order-entry
/* =============================================================*/

/* Header */
.cmp-elastic-order-entry .column-prod-code {
    width: 120px;
}

.cmp-elastic-order-entry .column-prod-stock {
    width: 200px;
    text-align: center;
}

.cmp-elastic-order-entry .column-prod-price {
    width: 100px;
}

.cmp-elastic-order-entry .column-prod-desc {
    flex-grow: 4;
}

.cmp-elastic-order-entry .column-order-product {
    width: 165px;
    text-align: center;
}

.cmp-elastic-order-entry .column-prod-favorites {
    width: 50px;
    padding-left: 10px;
}

.cmp-elastic-order-entry .column-order-reservation {
    width: 100%;
}

.cmp-elastic-order-entry .stock-label {
    display: none;
}

.cmp-elastic-order-entry .cmp-searchbar {
    margin-bottom: 30px;
}

.cmp-elastic-order-entry .cmp-searchbar i {
    position: absolute;
    right: 10px;
    top: 9px;
    font-size: 18px;
    cursor: pointer;
}

.cmp-elastic-order-entry .no-products-found {
    padding: 5px;
}

.cmp-elastic-order-entry .cmp-product-list-item .item-wrapper {
    padding-bottom: 15px;
}

.cmp-elastic-order-entry .cmp-product-list-item {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 15px 0 0;
}

.cmp-elastic-order-entry .list-items-wrapper {
    margin: 0;
}

.cmp-elastic-order-entry .loading-alternatives {
    font-weight: 600;
    padding: 30px;
}

.cmp-elastic-order-entry .loader {
    margin-right: 5px;
}

.cmp-elastic-order-entry .alternatives-warning {
    align-items: center;
    margin: 0;
    position: relative;
}

.cmp-elastic-order-entry .alternatives-warning::before {
    content: '';
    display: inline-block;
    border: 10px solid #faebcc;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
}

.cmp-elastic-order-entry .alternatives-warning h2 {
    align-items: center;
    font-size: 1rem;
}


.cmp-elastic-order-entry .alternatives-warning i {
    margin-right: 5px;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .cmp-elastic-order-entry .column-prod-desc {
        order: 1;
    }

    .cmp-elastic-order-entry .column-prod-code,
    .cmp-elastic-order-entry .column-prod-price,
    .cmp-elastic-order-entry .column-prod-stock {
        order: 2;
    }

    .cmp-elastic-order-entry .column-order-reservation {
        order: 3;
        min-height: 45px;
        width: auto !important;
        flex-grow: 1;
    }

    .cmp-elastic-order-entry .column-order-product {
        order: 4;
        width: auto !important;
    }

    .cmp-elastic-order-entry .column-prod-favorites {
        order: 5;
        width: auto !important;
    }

    .cmp-elastic-order-entry .item-wrapper {
        border-bottom: none !important;
        padding: 0;
    }

    .cmp-elastic-order-entry .prod-title {
        font-size: 1rem !important;
    }

    .cmp-elastic-order-entry .list-items-wrapper.warning {
        padding: 0 7px !important;
    }

    .cmp-elastic-order-entry .orderline-header {
        display: none !important;
        visibility: hidden;
    }
}

@media (min-width: 992px) {
    .cmp-elastic-order-entry .cmp-searchbar {
        width: 50%;
    }

    .cmp-elastic-order-entry .cmp-searchbar input {
        width: 100%;
    }
}


/* Favorites */
.cmp-elastic-order-entry .cmp-favorites-control {
    position: static;
}

.uc_shopping_cart .spinner-wrapper {
    display: none;
}

/* Category menu collapse */
.uc_category_menu .panel-borderset {
    border: 0 !important;
}

.uc_category_menu .panel-body {
    padding: 15px 0 0 !important;
}

div.uc_category_menu .panel.panel-borderset div.panel-heading {
    background-color: transparent !important;
    padding: 6px 10px 10px 0;
}

.uc_category_menu .panel-body li {
    margin-bottom: 3px;
}

.uc_category_menu .panel-body a {
    font-size: 12px;
}
/* Product note */
i.icon-red {
    color: #9a1313 !important;
}

.product-note {
    font-size: 11px;
    display: flex;
    flex-flow: row nowrap;
    align-items: baseline;
}

.product-note i {
    flex-shrink: 0;
    font-size: 14px;
    margin-right: 5px;
}

#pnl_wrapper .bs-example-modal-lg {
    background-color: rgba(0,0,0,.35) !important;
}

#prod-note-modal .bs-example-modal-lg {
    display: flex !important;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
}

.prod-note-modal .modal-close-btn {
    position: absolute;
    right: -15px;
    top: -15px;
    z-index: 1;
    transition: transform .1s;
}

.prod-note-modal .modal-close-btn:hover {    
    text-decoration: none !important;
    transform: scale(1.1);
}

.prod-note-modal .modal-inner {
    display: flex;
    flex-flow: row nowrap;
}

.prod-note-modal .modal-close-btn {
    z-index: 1;
    background: #fff;
    height: 33px;
    width: 34px;
    border-radius: 30px !important;
    display: inline-flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.prod-note-modal .modal-close-btn i {
    font-size: 45px;
    pointer-events: none;
}

.prod-note-modal .icon-box {
    font-size: 30px;
    pointer-events: none;
    background-color: #9A1313 !important;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    width: 60px;
}

.prod-note-modal .icon-box i {
    color: #fff;
}

.prod-note-modal .modal-body {
    max-height: calc(100vh - 60px);
    padding: 0;
}

.prod-note-modal .modal-content {
    overflow-y: auto;
}

.prod-note-modal  {
    border: 0;
}

.prod-note-modal .prod-note-val {
    line-height: 1.2;
    display: inline-block;
}

.prod-note-modal .prod-note-line {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    #prod-note-modal .modal-dialog {
        visibility: hidden;
        display: none;
    }
}

@media (min-width: 768px) {
    .prod-note-modal .modal-text-wrapper {
        padding: 30px 30px 30px 90px;
    }
}

#async-intermediate-notifications {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-flow: column;
}


#async-intermediate-notifications #intermediate_message {
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 2px -2px gray !important;
}

#async-intermediate-notifications #intermediate_message {
    z-index: 2;
    padding-right: 40px;
    position: relative !important;
}

@media (max-width: 767px) {
    #async-intermediate-notifications #intermediate_message {
        line-height: 1;
    }
}
#intermediate_message {
    z-index: 999;
    display: none;
    position: fixed;
    min-height: 50px;
    background-color: #dff0d8 !important;
    text-align: center;
    top: 0;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    color: #3c763d;
    border-bottom: 1px solid #d6e9c6;
    box-shadow: 0 2px 10px rgba(0,0,0,.8);
    padding: 10px 15px;
    line-height: 25px;
}


div#intermediate_message::before {
    content: "\f058";
    font-family: FontAwesome;
    margin-right: 10px;
    font-size: 20px;
    position: relative;
    top: 2px;
}
#intermediate_message {
    background-color: #f2dede !important;
    color: #a94442;
    border-bottom: 1px solid #ebccd1;
}
div#intermediate_message::before {
    content: '';
}

div#intermediate_message .fa.fa-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a94442;
    font-size: 15px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background-color: #a94442;
    color: #ebccd1;
    border-radius: 20px !important;
    cursor: pointer;
}

/* Handles intermediate */
.uc_order_intermediate {
    left: 0;
    top: 0;
    position: fixed;
    z-index: 1000;
    background: rgba(0,0,0, 0.7);
    width: 100%;
    height: 100%;
    display: none;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.uc_order_intermediate p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.uc_order_intermediate h3 {
    margin: 5px 0 10px;
}

.uc_order_intermediate.vuejs-intermediate {
    display: flex !important;
}

.uc_order_intermediate .input-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
}

.uc_order_intermediate .buttons-wrapper {
    text-align: center;
}

.uc_order_intermediate .quantity-buttons {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
    justify-content: center;
}

.uc_order_intermediate .order-wrapper,
.uc_order_intermediate .backorder-wrapper {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.uc_order_intermediate .inner-element {
    position: relative;
    background: white;
}

.uc_order_intermediate .updatebutton {
    padding: 0 45px !important;
    line-height: 40px;
    height: 40px !important;
    width: auto;
}

.uc_order_intermediate .inner-element {
    width: calc(100% - 60px);
    padding: 30px;
    max-width: 600px;
    height: auto;
    margin: 30px;
}

.uc_order_intermediate .quantity-field {
    width: 85px !important;
    height: 45px !important;
    margin: 0 -1px;
    font-size: 20px;
}

.uc_order_intermediate .quantity-field[disabled="disabled"] {
    opacity: .5;
    cursor: not-allowed;
}

.uc_order_intermediate .quantity-btn,
.uc_order_intermediate .quantity-button {
    height: 45px !important;
    width: 45px !important;
    background-color: #dedede !important;
    line-height: 45px !important;
    color: #2b2b2b !important;
}

.uc_order_intermediate .stock {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
    font-weight: bold;
    font-size: 13px;
}

.uc_order_intermediate .rec_id {
    display: none;
    visibility: hidden;
}

.uc_order_intermediate .title {
    text-align: center;
    margin: 0 0 25px;
}

.cancelbutton {
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #2b2b2b !important;
    border-radius: 25px!important;
    position: absolute;
    top: -20px;
    right: -20px;
    cursor: pointer;
    text-decoration: none !important;
}

.cancelbutton:hover {
    background-color: #555 !important;
}

.cancelbutton i.fa {
    color: #fff !important;
    font-size: 24px;
}

/* END BESPOKE */