/**
 * Dih Bulkorder Module
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 *
 * @author DiH.pl -  Tkachenko Viktor <tkachenko.viktor@dih.pl>
 * @copyright Copyright 2025 © DiH.pl
 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */
#dihbulkorder-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar
}

.dihbulkorder-filter-select {
    margin-right: 10px;
    margin-left: 0;
    margin-bottom: 15px;
    border: 1px solid #cdcdcd;
}

h4.dihbulkorder-filter {
    margin-bottom: 10px;
    margin-top: 10px;
}

/* table */
.dihbulkorder-table {
    border-width: 1px;
    margin-bottom: 1rem;
}

.dihbulkorder-table td, .dihbulkorder-table th {
    text-align: center;
    vertical-align: middle !important;
    padding: 8px !important;
}

.dihbulkorder-table tr th {
    text-align: center !important;
}

.dihbulkorder-table thead tr th {
    /*width: 33%;*/
    padding: .625rem 1.25rem;
    background: #fff;
    border: .3125rem solid #ebebeb;
    text-align: center;
}

.dihbulkorder-table tbody tr.normalt, .dihbulkorder-table tbody tr.normalb {
    background: #f6f6f6;
}

dihbulkorder-table tbody tr.normalw {
    background: #fff;
}

.dihbulkorder-table .min-qty-label {
    font-size: 10px;
    font-weight: bold;
    text-align: left;
    padding-bottom: 1px;
}

.dihbulkorder-table .total {
    font-size: 20px;
    font-weight: bold;
    text-align: right;
}

.dihbulkorder-table .total .note {
    font-size: initial;
    font-weight: initial;
    font-style: italic;
    margin-top: 5px;
}

.dihbulkorder-table th.tablecombz-discount {
    border-bottom: 1px solid #fff466;
    padding: 0;
}

.dihbulkorder-table th.tablecombz-discount, .dihbulkorder-table td.tablecombz-discount {
    white-space: nowrap;
}

.dihbulkorder-table th .discount-amount {
    background-color: #fff466;
    color: #000;
    padding: 1px 4px;
    font-style: italic;
    font-size: smaller;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    -ms-border-radius: 3px;
}

.dihbulkorder-table td.tablecombz-discount {
    white-space: nowrap;
    width: 1px;
}

.dihbulkorder-table-quantity-discounts {
    display: table;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.dihbulkorder-table-quantity-discounts .header {
    text-align: center;
    border-bottom: 1px solid #d6d4d4 !important;
}

.dihbulkorder-table-quantity-discounts .row {
    display: table-row;
    margin: 0 !important;
    padding: 0 !important;
}

.dihbulkorder-table-quantity-discounts .cell {
    display: table-cell;
    font-weight: normal;
    font-size: 13px;
    margin: 0 !important;
    padding: 0 !important;
}

.dihbulkorder-table-quantity-discounts .row:before, .dihbulkorder-table-quantity-discounts .row:after, .dihbulkorder-table-quantity-discounts .cell:before, .dihbulkorder-table-quantity-discounts .cell:after {
    margin: 0 !important;
    padding: 0 !important;
    content: none !important;
    display: none !important;
}

td.tablecombz-img img {
    cursor: pointer;
}

td.tablecombz-price {
    white-space: nowrap;
}

td.dihbulkorder-price .price-lowered {
    color: #DA0F00;
}

td.dihbulkorder-price .price {
    font-size: 14px;
    font-weight: bold;
}

td.dihbulkorder-weight {
    white-space: nowrap;
}

td.dihbulkorder-attr-color a {
    margin: auto;
}

a.attr-color-picker {
    display: block;
    border: 1px solid #666;
    cursor: pointer;
    background-repeat: round;
    background-size: contain;
}

/* image modal */
.dihbulkorder-image-modal .modal-content {
    background: transparent;
    border: none;
    padding: 0
}

.dihbulkorder-image-modal .modal-content .modal-body {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    display: -moz-flex;
    display: -ms-flexbox;
    -js-display: flex;
    display: flex;
    margin-left: -30%
}

.dihbulkorder-image-modal .modal-content .modal-body .product-cover-modal {
    background: #fff
}

.dihbulkorder-image-modal .modal-content .modal-body .image-caption {
    background: #fff;
    width: 800px;
    padding: .625rem 1.25rem;
    border-top: 1px solid #ebebeb
}

.dihbulkorder-image-modal .modal-content .modal-body .image-caption p {
    margin-bottom: 0
}

.dihbulkorder-image-modal .modal-content .modal-body .thumbnails {
    position: relative
}

.dihbulkorder-image-modal .modal-content .modal-body .mask {
    position: relative;
    overflow: hidden;
    max-height: 49.375rem;
    margin-top: 2.1875rem;
    z-index: 1
}

.dihbulkorder-image-modal .modal-content .modal-body .mask.nomargin {
    margin-top: 0
}

.dihbulkorder-image-modal .modal-content .modal-body .product-images {
    margin-left: 2.5rem
}

.dihbulkorder-image-modal .modal-content .modal-body .product-images img {
    width: 9.25rem;
    cursor: pointer;
    background: #fff
}

.dihbulkorder-image-modal .modal-content .modal-body .product-images img:hover {
    border: 3px solid #2fb5d2
}

.dihbulkorder-image-modal .modal-content .modal-body .arrows {
    height: 100%;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    color: #fff;
    right: 1.875rem;
    z-index: 0;
    cursor: pointer
}

.dihbulkorder-image-modal .modal-content .modal-body .arrows .arrow-up {
    position: absolute;
    top: -2rem;
    opacity: .2
}

.dihbulkorder-image-modal .modal-content .modal-body .arrows .arrow-down {
    position: absolute;
    bottom: -2rem
}

.dihbulkorder-image-modal .modal-content .modal-body .arrows i {
    font-size: 6.25rem;
    display: inline
}

@media (max-width: 991px) {
    .product-cover img {
        width: 100%
    }

    .dihbulkorder-image-modal .modal-content .modal-body {
        -webkit-box-orient: vertical;
        box-orient: vertical;
        -webkit-box-direction: normal;
        box-direction: normal;
        -moz-flex-direction: column;
        flex-direction: column;
        -ms-flex-direction: column;
        margin-left: 0
    }

    .dihbulkorder-image-modal .modal-content .modal-body img.product-cover-modal {
        width: 100%
    }

    .dihbulkorder-image-modal .modal-content .modal-body .arrows {
        display: none
    }

    .dihbulkorder-image-modal .modal-content .modal-body .image-caption {
        width: 100%
    }
}

/* quantity */
.dihbulkorder-quantity-wanted .qty {
    vertical-align: top;
    flex-wrap: wrap;
    justify-content: center;
}

.dihbulkorder-quantity-wanted .qty .sum-label {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    display: block;
    float: left;
    display: none;
}

.dihbulkorder-quantity-wanted .qty .sum-label.visible {
    display: block;
}

.dihbulkorder-quantity-wanted .quantity-input-buttons {
    float: left;
}

.dihbulkorder-quantity-wanted .product-quantity .add {
    padding: 0;
    margin: 2px 2px 2px 2px;
    display: block;
    float: left;
}

.dihbulkorder-quantity-wanted .product-quantity .add .add-to-cart {
    margin: 0;
    padding: 9px;
    height: 46px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
}

.dihbulkorder-quantity-wanted .product-quantity .add .add-to-cart i {
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
}

.dihbulkorder-quantity-wanted .product-quantity {
    width: inherit;
    padding: 0;
    margin: 0;
}

.dihbulkorder-quantity-wanted .product-quantity .qty {
    width: 100px;
    height: 90px;
    padding: 0;
    margin: 0;
    display: block;
    float: left;
}

.dihbulkorder-quantity-wanted .product-quantity .qty .quantity-input-group {
    border-collapse: separate;
    box-shadow: none;
    box-sizing: border-box;
    color: rgb(65, 65, 65);
    display: table;
    float: left;
    font-family: Noto Sans, sans-serif;
    font-size: 16px;
    line-height: 20px;
    position: relative;
    text-align: center;
    width: 100px;
}

.dihbulkorder-quantity-wanted .qty .quantity-input-group {
    margin: auto;
}

.dihbulkorder-quantity-wanted .qty .bootstrap-touchspin .input-group-btn {
    height: 44px;
}

.dihbulkorder-quantity-wanted .quantity-input-buttons {
    border-collapse: separate;
    box-sizing: border-box;
    color: rgb(65, 65, 65);
    display: block;
    float: left;
    font-size: 16px;
    line-height: 20px;
    position: relative;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    width: 24px;
    height: 46px;
}

.dihbulkorder-quantity-wanted .quantity-input-buttons > .btn {
    color: #000;
    width: 25px;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dihbulkorder-quantity-wanted .input-quantity-wanted {
    border: none !important;
    text-align: center;
    height: 44px !important;
}

.dihbulkorder-quantity-wanted .fa-qty-up-icon, .dihbulkorder-quantity-wanted .fa-qty-down-icon {
    font-size: 16px;
    top: .15rem;
    left: .45rem;
    position: absolute;
    font-weight: 400;
}

.dihbulkorder-quantity-wanted .material-qty-up-icon, .dihbulkorder-quantity-wanted .material-qty-down-icon {
    font-size: 1rem;
    top: .125rem;
    left: .1875rem;
    position: absolute;
    font-weight: 400;
}

.dihbulkorder-quantity-wanted .material-qty-up-icon:after, .dihbulkorder-quantity-wanted .material-qty-down-icon:after {
    font-size: 1rem;
    font-weight: 400;
}

.dihbulkorder-quantity-wanted .material-qty-down-icon:after {
    content: "\E5CF";
}

.dihbulkorder-quantity-wanted .material-qty-up-icon:after {
    content: "\E5CE";
}


/* modal */
.dihbulkorder-open {
    display: block !important;
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    padding-top: 100px;
}

#dihbulkorder-filter .hidethis {
    display: none !important;
}

/* razne */
.dihbulkorder-ui-tooltip {
    border: solid #AAAAAA 1px !important;
    background: #FFFFCC !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 16px !important;
    max-width: 180px !important;
    padding: 8px !important;
    position: absolute;
}

.dihbulkorder-notice-block {
    margin: 0.5em 0;
    text-align: right;
}

.dihbulkorder-attention-msg {
    display: inherit;
    color: #DA0F00;
    font-weight: bold;
}

.batch_buy {
    display: block;
}

.batch_buy button {
    float: right;
}

div.avail_descr {
    padding-top: 10px;
}