/* 
Theme-Anpassungen fuer Gesamtpreis berechnen by NETZdinge.de (c) 2021
*/

#preisberechnung {display:none; margin-bottom:15px;position:relative;padding:0.75rem 15px 1.5rem; font-size:1.1rem; align-items:flex-start; flex-wrap:wrap; column-gap:8px; row-gap:6px;}
#preisberechnung > div {display:block; flex:0 0 auto; width:auto!important; padding:0 4px;}
#preisberechnung .pfeil.m-auto {margin:0 6px!important;}
#preisberechnung .pfeil > .fas {position:relative; margin:0 5px;}
#preisberechnung .symbol {padding:0 5px; width:auto;}
#preisberechnung .preis {white-space:nowrap; min-width:max-content;}
#preisberechnung .gesamtpreis {font-weight:bold; flex:1 1 auto; min-width:max-content; text-align:right;}
#preisberechnung .gesamtpreis .small {text-align:right!important;}
#preisberechnung .nd-price-spinner {display:inline-block; margin-left:0.5rem; font-size:0.8em;}
#preisberechnung .tax-info {position:absolute; bottom:2px; right:5px; font-size:10px;}

/*** bulk prices ***/
.nd-bulk-prices {margin-top: 15px;}
.nd-bulk-prices table, .bulk-price table {width:100%;}
.nd-bulk-prices table > thead tr th:first-child + th, .bulk-price table > thead tr th:first-child + th {white-space: nowrap;}
.nd-bulk-prices table > tbody tr.set, .bulk-price table > tbody tr.set,
.nd-bulk-prices table > tbody tr.set td, .bulk-price table > tbody tr.set td {background-color:#dbeac0!important;}
.nd-bulk-prices table > tbody tr:not(.set):hover, .bulk-price table > tbody tr:not(.set):hover,
.nd-bulk-prices table > tbody tr:not(.set):hover td, .bulk-price table > tbody tr:not(.set):hover td {background-color:#f8e1b0;}
.nd-bulk-prices table > tbody tr:hover, .bulk-price table > tbody tr:hover {cursor: pointer;}
.nd-bulk-prices table > tbody tr td:first-child + td, .bulk-price table > tbody tr td:first-child + td {width:100%; padding-right: 3px;}
.nd-bulk-prices table > tbody tr td:first-child + td, .bulk-price table > tbody tr td:first-child + td,
.nd-bulk-prices table > tbody tr td.bulk-base-price, .bulk-price table > tbody tr td.bulk-base-price {white-space: nowrap;border-right: none;}
.nd-bulk-prices table > tbody tr td.bulk-price1, .bulk-price table > tbody tr td.bulk-price1 {width: auto;}
.nd-bulk-prices table > tbody tr td.bulk-price1, .bulk-price table > tbody tr td.bulk-price1,
.nd-bulk-prices table > tbody tr td.bulk-base-price1, .bulk-price table > tbody tr td.bulk-base-price1 {white-space: nowrap;vertical-align: middle;border-left: none;}
.bulk-prices table > tbody > tr > td.bulk-base-price1 {padding-left:0;}
.bulk-prices table > thead > tr > th {font-size:calc(1em - 1pt);}


.nd-bulk-prices.table-striped > tbody > tr:nth-of-type(odd), .bulk-price.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}
tr.buyedMost, tr.buyedMost.expl td,
.table-striped>tbody>tr.buyedMost:nth-of-type(odd)
	{background-color:#F8F4C1; color:#333;}
.buyedMost td .text-muted {color:#333;}

.rounded-0, .rounded-0 > * {border-radius: 0!important;}

/*** für Konfigurator ***/
#product-configuration-sidebar .input-group input[type="number"].form-control {width: 120px!important;}
#product-configuration-sidebar #quantity-grp.input-group {display:inline-block;text-align: center;width:100%;}
#product-configuration-sidebar #quantity-grp span.input-group-btn {display:block; margin-top:10px;}
#product-configuration-sidebar #quantity-grp .btn-minus-wrapper {float: left;}
#product-configuration-sidebar #quantity-grp #quantity {float: none;}
#product-configuration-sidebar #quantity-grp .btn-plus-wrapper {float: right;}

@media (max-width: 767px) {
	#preisberechnung .pfeil > span {display: block;}
	#preisberechnung {font-size:inherit; column-gap:4px;}
	#preisberechnung > div {padding:0 3px;}
	#preisberechnung .gesamtpreis {flex:1 1 100%;}

	.nd-bulk-prices table {font-size: 0.75rem;}
	.nd-bulk-prices table > thead tr th:first-child + th {white-space: inherit;}
	.nd-bulk-prices table > tbody tr td {padding: 0.5rem 0.3rem;}
}


/* Konkreter Initialpreis statt ab-Preis; unabhängig von der Containerklasse. */
#buy_form [data-nd-price-block="1"].nd-price-concrete > .price_label.nowonly,
#buy_form [data-nd-price-block="1"].nd-price-concrete > .price_label.pricestarting,
#buy_form [data-nd-price-block="1"].nd-price-concrete [data-nd-price-base="1"] .price_label.nowonly,
#buy_form [data-nd-price-block="1"].nd-price-concrete [data-nd-price-base="1"] .price_label.pricestarting,
#buy_form [data-nd-price-block="1"].nd-price-concrete [data-nd-price-main="1"] .abnahme {display:none!important;}
#preisberechnung.nd-initial-ready {display:flex;}

