/* Cart */
:root {
	--panelgrey: #707070;
	--cartgrey: #ececec;
	--linegrey: #c3c3c3;
	--cartblack: #242424;
	--yellow: gold;
}

.cart-float {
	padding:10px;
	background-color:rgba(106,146,02,1); /*--green*/
	border-radius:12px;
	color:white;
	font-size:14px;
	position:fixed;
	right:1rem;
	bottom:1rem;
	z-index:9550;
	transition: all 0.5s ease;
	user-select:none;
}
.cart-float.active {
	right:calc(280px + 1rem);
}
.cart-float-display {
	text-align:center;
}
.cart-float-display span {
	font-size:18px;
}
.cart-panel {
	padding: 0 0 0 0;
	background-color: rgba(0,0,0,0.8);
	color:white;
	/*box-shadow: 0 -5px 5px rgba(0,0,0,0.5);*/
	position: fixed;
	top: 78px;
	right: -280px;
	height: calc(100vh - 78px);
	width: 280px;
	z-index: 9500;
	overflow: hidden;
	overflow-y: auto;
	transition: all 0.5s ease;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	justify-content:flex-start;
}
.cart-panel.active {
	right:0;
}
.cart-panel-section {
	padding:1rem 2rem;
	width:100%;
}
.cart-panel-close {
	border-bottom:1px solid var(--panelgrey);
}
.cart-panel-header {
	border-bottom:1px solid var(--panelgrey);
}
.cp-button-close {
	position:relative;
	color:var(--panelgrey);
	cursor:pointer;
}
.cp-button-close:hover {
	color:white;
}
.cp-button-close::before {
	content:"";
	position:absolute;
	left:-23px;
	top:0px;
	width:18px;
	height:18px;
	background:transparent url(/template/shop/close.svg) no-repeat center top;
	background-size:contain;
}
.cart-panel-header img {
	display:block;
	width:55px;
	height:44px;
	object-fit:contain;
}
.cart-panel-header h5 {
	font-weight:300;
	font-family:var(--fontSans);
	font-size:var(--szMediumLarge);
	line-height:1;
	margin:0.75rem 0 0 0;
}
.cart-panel-info {
	font-size:var(--szNormal);
	color:#707070;
}

.cart-panel-content {
	padding:1rem;
}
.cart-panel-entry {
	margin:0.5rem 1rem;
	border-bottom:1px solid var(--panelgrey);
	padding:0 0 0.5rem 0;
	font-size:var(--szSmaller);
}
.cp-entry-artnr {
}
.cp-entry-close img {
	display:inline-block;
	line-height:1;
	width:auto;
	height:1rem;
	object-fit:contain;
}
.cp-entry-controller {
	margin: 0;
	font-size:var(--szSmaller);
	color:var(--panelgrey);
	line-height:1;
	user-select:none;
}
.cp-entry-button {
	font-size:var(--szLarger);
	cursor:pointer;
	display:inline-block;
	padding:2px 5px;
}
.cp-entry-button:hover {
	color:white;
}
.cp-entry-amount {
	display:inline-block;
	padding:2px 10px;
	color:white;
	font-size:var(--szNormal);
}
.cp-entry-price {
	display:flex;
}
.cp-entry-price span {
	color:var(--panelgrey);
}
.cp-entry-price span + span {
	text-align:right;
	color:white;
	margin-left:auto;
}
.span-cols {
	display:flex;
	justify-content:flex-start;
}
.span-cols span { }
.span-cols span + span {
	margin-left:auto;
}
.cart-panel-price {
}
.cart-panel-buttons {
	margin-top:auto;
	position:sticky;
	bottom:0;
	background-color:black;
}
.cart-panel-change,
.cart-panel-submit,
.cart-panel-order {
	display:block;
	margin:1rem auto;
	background-color:var(--panelgrey);
	color:white;
	line-height:1;
	text-align:center;
	border-radius:6px;
	padding:10px 10px 8px 10px;
	text-transform:uppercase;
}
.cart-panel-order.active {
	background-color:var(--green);
}
.cart-button {
	width:36px;
	height:36px;
	position:absolute;
	right:2rem;
	top:1.5rem;
	background:transparent url(/template/shop/cart-icon.svg) no-repeat center center;
	background-size:contain;
	z-index:500;
	cursor:pointer;
}
@media all and (max-width:1210px) {
	.cart-button {
		display:none;
	}
}
@media (min-width:540px) and (max-width:810px) {
	.cart-button {
		display:block;
		right:4rem;
	}
}

/* =========== main cart ============== */


.cart-table {
	width:100%;
	border-collapse:collapse;
	margin-top:1rem;
	font-size:var(--szSmaller);
}
.cart-table th {
	font-weight:normal;
}
.cart-table th.oc-artnr,
.cart-table th.oc-amount {
	font-weight:bold;
}
.cart-table td {
	vertical-align:top;
	padding:6px 4px 0 4px;
	border-bottom:1px solid var(--linegrey);
}
.order-cart-box {
	padding:1rem;
	background-color:var(--cartgrey);
	border-radius:10px;
}
.order-cart-box + .order-cart-box {
	margin-top:1rem;
}
.order-cart-box.box-black {
	background-color:var(--cartblack);
	color:white;
}
.order-cart-box .infoline {
	color:var(--panelgrey);
	margin:0.25rem 0 0 0;
	line-height:1.3;
	font-size:var(--szSmaller);
}
.infoline a {
	color:inherit;
	text-decoration:underline;
}


.order-cart-panes {
	margin-top:2.5rem;
	position:relative;
}
.order-cart-pane {
	display:none;
}
.order-cart-pane.active {
	display:block;
}

.switchboard {
	margin-top:0.5rem;
}
.switch {
	display:block;
	line-height:1.5;
	color:var(--panelgrey);
}
.form-field {
	margin:0.5rem 0;
}

.order-cart-select {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.order-cart-option {
	height: 100%;
	display: none;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: center;
	cursor:default;
}
.order-cart-select.open .order-cart-option:hover {
	background-color:rgba(255,255,255,0.6);
}
.order-cart-option.active {
	display:flex;
}

.order-cart-select.open {
	flex-wrap:wrap;
}
.order-cart-select.open .order-cart-option {
	display:block;
}
.order-cart-select.open .order-cart-option.active {
	background-color:white;
}
.oc-option-tag {
	position:absolute;
	right:3px;
	bottom:3px;
	font-size:var(--szSmall);
	color:white;
	background-color:rgba(0,0,0,0.5);
	padding:2px;
	border-radius:2px;
	line-height:1;
	display:none;
}
.order-cart-select.open .order-cart-option:hover .oc-option-tag {
	display:block;
}











.oc-buttons {
	display:flex;
	justify-content:space-between;
	flex-wrap:nowrap;
	align-items:center;
	gap:1rem;
}
.order-cart-box input[type="checkbox"],
.order-cart-box button {
	border:none;
}

.oc-button {
	display:inline-block;
	width:25px;
	height:25px;
	background:transparent url(button-right.svg) no-repeat center center;
}
.oc-button.button-left {
	background-image:url(button-left.svg);
}
.oc-button:hover {
	background-color:rgba(255,255,255,0.5);	
}


.form-field label {
	color:var(--panelgrey);
	display:block;
	font-weight:300;
	font-size:var(--szSmaller);
	line-height:1.3;
}
.form-field label.required::after {
	content:"*";
	text-transform:superscript;
	color:var(--red);
}
.form-field input[type="text"] {
	border:none;
	font-family:inherit;
	font-size:inherit;
	width:100%;
	border-radius:5px;
	padding:2px 8px;
	
}
.form-field select {
	width:100%;
	color:inherit;
	background-color:white;
	border:none;
	padding:4px 8px;
	border-radius:5px;
}
.form-fields {
	display:flex;
	flex-wrap:nowrap;
	gap:0.5rem;
}
.form-fields .form-field {
	flex:1 1 auto;
}
.form-fields .form-field.short {
	flex:0 0 80px;
}

.oc-address {
	margin:1rem 0;
	line-height:1.5;
}
.oc-company {
	font-weight:bold;
}



.oc-entry-controller {
	display:flex;
	width:100;
	justify-content:center;
	align-items:center;
	line-height:1;
}
.oc-artnr {
	font-weight:bold;
	text-align:left;
}
.oc-entry-amount {
	margin:0 10px;
	padding:2px 0 3px 0;
}
.oc-price {
	text-align:right;
}
.oc-sum {
	text-align:right;
}
.oc-rmv {
	text-align:center;
}
.oc-entry-button img {
	display:inline-block;
	width:22px;
	height:22px;
	cursor:pointer;
	object-fit:contain;
}
.oc-entry-button.button-remove img {
	width:16px;
	height:16px;
}

.order-cart-summary {
}
.order-cart-summary h3 {
	margin-bottom:2rem;
}
.oc-line {
	line-height:1.3;
	margin:0.5rem 0;
}
.oc-line.oc-cb {
	font-size:var(--szSmaller);
}
.oc-line textarea {
	background:transparent;
	border:none;
	padding:5px 0;
	width:100%;
	height:5em;
	border-top:1px solid var(--linegrey);
	border-bottom:1px solid var(--linegrey);
	color:white;
	font-family:inherit;
	font-size:var(--szSmaller);
	line-height:1.4;
}
.oc-line textarea::placeholder {
	font-family:inherit;
	font-size:var(--szSmaller);
	color:var(--linegrey);
}
.oc-line textarea:focus-visible {
	outline:none;
}
.discount-text {
	color:var(--green);
}
.cart-table .discount-row td {
	vertical-align:middle;
	padding:8px 4px;
}
.cart-table .notice-row td {
	vertical-align:middle;
	padding:12px 4px 0px 4px;
	border:none;
}
.cart-table .notice-text {
	font-weight:normal;
	color:var(--textgrey);
}

.order-cart-submit {
	text-align:center;
	line-height:1;
	padding:7px 10px;
	width:100%;
	display:inline-block;
	color:white;
	background-color:var(--green);
	border:none;
	border-radius:5px;
}
.order-cart-submit[disabled] {
	opacity:0.4;
}
.order-error {
	padding:1rem;
	background-color:var(--red);
	color:white;
	text-align:center;
}

.row-cart {
	display:inline-flex;
	flex-direction:row;
	flex-wrap:nowrap;
	font-size:20px;
	line-height:1;
	align-items:center;
	justify-content:flex-end;
}
.row-cart-button {
	display:inline-block;
	width:22px;
	height:22px;
	text-align:center;
	cursor:pointer;
	user-select:none;
	color:var(--green);
	line-height:1;
}
.row-cart-button.button-minus {
	background:transparent url(cart-minus-green.svg) no-repeat center;
	background-size:16px;
}
.row-cart-button.button-plus {
	background:transparent url(cart-plus-green.svg) no-repeat center;
	background-size:16px;
}

.row-cart-amount {
	padding:3px 7px;
	text-align:center;
}
.row-cart .button-cart {
	display:inline-block;
	width:22px;
	height:22px;
	background:transparent url(cart-icon.svg) no-repeat center;
}


