@import "../../definitions";

.Warenkorb {
	&__divider {
		border-bottom: 1px solid $color-lines;
		margin-bottom: 1rem;
		padding-bottom: 1rem;
	}
	&__table {
		width:100%;
		font-weight: $font-weight-medium;
		&--header {
			display:none;
			@include responsive-md {
				display:block;
			}
		}
		&--totals {
			margin-bottom: $gutter*2;
		}
		> .row {
			> div {
				&:first-child {
					flex: 0 0 calc(50px + #{$gutter});
					max-width: calc(50px + #{$gutter});
					@include responsive-sm {
						flex: 0 0 calc(80px + #{$gutter});
						max-width: calc(80px + #{$gutter});
					}
				}
			}
		}
		.right {
			text-align:right;
		}
	}
	&__articleimage {
		min-width:36px;
		max-width:50px;
		@include responsive-sm {
			max-width:80px;
		}
	}
	&__articletext {
		margin-bottom: $gutter;
	}
	&__articletitle {
	    word-wrap: break-word;
		word-break: break-word;
	}
	&__singleprice {
		display:none;
		@include responsive-md {
			display:block;
		}
	}
	&__totalprice {
		color: $color-primary;
	}
	&__deleteButton {
		background-image:url(/assets/icons/icon_delete.svg);
		background-size:contain;
		background-repeat:no-repeat;
		background-position:center;
		height:1.6rem;
		width:1rem;
		display:inline-block;
		opacity:0.8;
		@include smooth();
		&:hover {
			opacity:1;
		}
	}
	&__actions .button {
		vertical-align:top;
		float:right;
		&#voucherButton {
			float:left;
			@include responsive-sm {
				float:right;
				margin-right:2em;
			}
		}
		&:first-child {
			float:left;
			margin:0;
			display:none;
			@include responsive-sm {
				display:block;
			}
		}
	}
	
	// Allgemein
	&.loading {
		pointer-events:none;
	}
}