.dorma-cart {
	padding: var(--xl) 0 var(--2xl);
}

.dorma-cart__layout {
	display: flex;
    flex-direction:column;
	gap: var(--md);
	align-items: start;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 var(--md);
}

.dorma-cart__layout>div {
	max-width:1000px;
    width:100%;
}

/* Header */
.dorma-cart__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 1.25rem;
	border-bottom: 1.5px solid var(--dor-global-color-border);
}

.dorma-cart__title {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--dor-global-color-title);
	margin: 0;
}

.dorma-cart__count {
	font-size: 0.82rem;
	color: var(--dor-global-color-text);
}

/* Item row */
.dorma-cart__item {
	display: flex;
	gap: 1.25rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--dor-global-color-border);
}

.dorma-cart__item-image {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	background: #fff;
	overflow: hidden;
    border-radius:var(--dor-brd-radius);
    border:1px solid var(--dor-global-color-border);
}

.dorma-cart__item-image a { 
    display: block; 
    width: 100%; 
    height: 100%; 
}

.dorma-cart__item-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.dorma-cart__item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
}

.dorma-cart__item-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap:var(--md);
}

.dorma-cart__item-info { flex: 1; min-width: 0; }

.dorma-cart__item-name {
	font-size: 0.925rem;
	font-weight: 600;
	color: var(--dor-global-color-title);
	line-height: 1.3;
	margin-bottom: 0.18rem;
}

.dorma-cart__item-name a { color: inherit; text-decoration: none; }
.dorma-cart__item-name a:hover { text-decoration: underline; }

.dorma-cart__item-category {
	font-size: 0.8rem;
	color: var(--dor-global-color-text);
	margin-bottom: 0.3rem;
}

.dorma-cart__item-meta { font-size: 0.8rem; color: var(--dor-global-color-text); }

.dorma-cart__item-stock { margin-top: 0.3rem; }

.dorma-cart__item-stock .stock-in {
	display: inline-flex;
	align-items: center;
	font-size: 0.78rem;
	color: var(--dor-global-color-text);
}

.dorma-cart__item-stock .stock-in::before {
	content: "\f107";
	font-family: "woodmart-font";
	font-weight: 600;
	display: inline-block;
	width: 20px;
	height: 20px;
	color: var(--dor-global-color-success);
	flex-shrink: 0;
}

.dorma-cart__item-stock .stock-back {
	font-size: 0.78rem;
	color: var(--dor-global-color-text);
}

.dorma-cart__item-price {
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.dorma-cart__item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap:var(--md);
	margin-top: auto;
}

/* Quantity + remove */

.dorma-cart__layout div.quantity {
    --wd-form-height: 24px;
}

.dorma-cart__layout div.quantity input[type=button] {
   font-size: 1rem;
   min-width: 1.5rem;
}

.dorma-cart__layout div.quantity input[type=number] {
   font-size:1rem
}

.dorma-cart__qty-with-remove {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.dorma-cart__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: 0.25rem;
	border: none;
	background: transparent;
	color: var(--dor-global-color-text);
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.12s, background 0.12s;
	flex-shrink: 0;
}

.dorma-cart__remove:hover { 
	color: var(--dor-global-color-title);
	background: var(--dor-global-color-border); 
}

.dorma-cart__item-subtotal {
	font-size: 1rem;
	font-weight: 500;
	color: var(--dor-global-color-text);
}

/* Actions */
.dorma-cart__actions-row {
	display: none;
	/* flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.5rem; */
}

/* footer */

.dorma-cart__footer {
	padding:var(--lg) var(--xl);
}

@media screen and (min-width: 750px)  {
	.dorma-cart__footer {
		padding-left:0;
		padding-right:0;
	}
}

.dorma-cart__footer .order-total {
	margin-bottom:var(--md);
}

.dorma-cart__footer .order-total>* {
    display: block;
    line-height: 1.8em;
}

.dorma-cart__footer tr.order-total strong .amount {
    font-size: 1.25rem;
	line-height: 1.8em;
}

.dorma-cart__item-subtotal del, .dorma-cart__item-subtotal del>* {
    color: var(--color-gray-300);
}

.dorma-cart__item-subtotal:has(del) {
    display: flex;
    flex-direction: column;
}

.dorma-cart__footer .cart-totals-inner.wd-layout-2 tr.order-total td:before {
    margin-inline-end: var(--xs);
    font-size: 1.25rem;
    color: var(--dor-global-color-text);
	font-weight:500;
}

.dorma-cart__foter .cart-totals-inner.wd-layout-2 tr.order-total td {
	gap:0;
}

.dorma-cart__footer .cart-totals-inner.wd-layout-2 tr {
	align-items: end;
}

.dorma-cart__footer .cart-totals-inner>h2 {
    display: none;
}

.dorma-cart__footer .cart-totals-inner .cart-subtotal{
    display:none
}

.dorma-cart__footer .wc-proceed-to-checkout>*:last-child {
    width: 100%;
}

@media screen and (min-width: 990px) {
	
	.dorma-cart__footer {
		display: flex;
		justify-content: flex-end;
	}

    .dorma-cart__footer .cart_totals {
        width: 50%;
    }
}

.dorma-cart .cart-collaterals { 
	width: 100%; 
}
.dorma-cart .cart-collaterals .cart_totals {
	float: none; width: 100%; 
}
.dorma-cart .cart-collaterals .cross-sells { 
	width: 100%; max-width: none; 
}

.dorma-cart__footer .cart-totals-inner .woocommerce-shipping-totals {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
	.dorma-cart__footer .order-total>* {
		display:none;
	}
	
	.dorma-cart {
		padding:var(--md) 0 var(--lg);
	}
	
	.dorma-cart__layout { 
		max-width:100%;
	}
	.dorma-cart__item-top {
		flex-direction:column;
		align-items:flex-end;
	}
	.dorma-cart__footer { 
		position: static; 
	}
	
	.dorma-cart__item-name {
	min-width: 0;
}

.dorma-cart__item-name a {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}
	.dorma-cart__footer .cart-totals-inner.wd-layout-2 tr {
		align-items:center;
	}
}

@media (max-width: 600px) {
	.dorma-cart__item-image { 
		width: 72px; height: 72px;
	}
	.dorma-cart__item-bottom { 
		flex-direction: column; 
		align-items: flex-end;
	}
}
