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

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

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

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

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

.ger-cart__count {
	font-size: 0.82rem;
	color: var(--ger-co-color-text);
}

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

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

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

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

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

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

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

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

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

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

.ger-cart__item-meta { font-size: 0.8rem; color: var(--ger-co-color-text); }

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

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

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

.ger-cart__item-stock .stock-back {
	font-size: 0.78rem;
	color: var(--ger-co-color-text);
}

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

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

/* Quantity + remove */

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

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

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

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

.ger-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(--ger-co-color-text);
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.12s, background 0.12s;
	flex-shrink: 0;
}

.ger-cart__remove:hover { 
	color: var(--ger-co-color-title);
	background: var(--ger-co-color-border); 
}

.ger-cart__item-subtotal {
	font-size: 1rem;
	font-weight: 500;
	color: var(--ger-co-color-text);
}

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

/* footer */

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

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

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

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

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

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

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

/*
 * Cart totals: Woodmart's "Layout 2" rules (woo-page-cart-el-cart-totals-layout-2.css),
 * so the cart looks the same whichever cart totals layout is set in Theme Settings.
 * Same specificity as Woodmart's .cart-totals-inner.wd-layout-2 selectors; the
 * mod's own adjustments below are one class more specific.
 */
@media (min-width: 769px) {
	.ger-cart__footer .cart-totals-inner table {
		display: block;
	}

	.ger-cart__footer .cart-totals-inner table :is(th, td) {
		padding: 0;
		border: none;
	}

	.ger-cart__footer .cart-totals-inner tbody {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}

	.ger-cart__footer .cart-totals-inner tr {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 10px;
	}

	.ger-cart__footer .cart-totals-inner tr:not(:last-child) {
		padding-bottom: 15px;
		border-bottom: 1px solid var(--brdcolor-gray-300);
	}

	.ger-cart__footer .cart-totals-inner tr.shipping td {
		flex: 1 1 100%;
		text-align: start;
	}

	.ger-cart__footer .cart-totals-inner tr.order-total th {
		display: none;
	}

	.ger-cart__footer .cart-totals-inner tr.order-total td {
		flex: 1 1 100%;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		flex-wrap: wrap;
		gap: 5px;
	}

	.ger-cart__footer .cart-totals-inner tr.order-total td:before {
		content: attr(data-title);
		color: var(--wd-title-color);
		font-weight: var(--wd-title-font-weight);
		font-style: var(--wd-title-font-style);
		font-family: var(--wd-title-font);
		margin-inline-end: auto;
	}

	.ger-cart__footer .cart-totals-inner tr.order-total td > *:not(strong) {
		flex: 1 1 100%;
	}

	.ger-cart__footer .cart-totals-inner .woocommerce-shipping-methods input.shipping_method {
		float: left;
		margin-inline: 0 7px;
	}

	.rtl .ger-cart__footer .cart-totals-inner .woocommerce-shipping-methods input.shipping_method {
		float: right;
	}
}

.ger-checkout-layout .ger-cart__footer .cart-totals-inner tr.order-total td:before {
    margin-inline-end: var(--ger-co-xs);
    font-size: 1.25rem;
    color: var(--ger-co-color-text);
	font-weight:500;
}

/*
 * Align "Samtals" and the amount on their text baseline. They have different
 * line heights (the label inherits 1.8em computed at the td's font size, the
 * amount uses 1.8em of its own 1.25rem), so centring the boxes leaves the text
 * offset, more so with fonts that have uneven ascent/descent.
 */
.ger-checkout-layout .ger-cart__footer .cart-totals-inner tr.order-total td {
	gap:0;
	align-items: baseline;
}

.ger-checkout-layout .ger-cart__footer .cart-totals-inner tr {
	align-items: end;
}

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

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

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

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

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

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

/* Cross-sells ("Þú gætir haft áhuga á…") below the totals at full width. The footer is a flex row on desktop, so
   without wrapping the carousel was squeezed into a narrow column next to the totals (HH, 1.13.1). */
.ger-cart__footer {
	flex-wrap: wrap;
}

.ger-cart__footer .cross-sells {
	order: 2;
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	margin-top: var(--ger-co-lg);
}

@media screen and (max-width: 749px) {
	/* The footer has side padding on phones; let the carousel use the full width. */
	.ger-cart__footer .cross-sells {
		width: calc(100% + 2 * var(--ger-co-xl));
		max-width: none;
		margin-left: calc(-1 * var(--ger-co-xl));
		margin-right: calc(-1 * var(--ger-co-xl));
	}
}

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

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

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

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

/* Utility used by templates/cart/cart.php (moved from the Dorma child theme style.css) */
.ger-checkout-layout .hidden {
	display: none;
}

/* Hide the Woodmart page title (title bar and Page title widget) */
.ger-checkout-layout .wd-page-title {
	display: none;
}

/* Composite Products: component rows under the parent product in the cart */
.component_table_item .ger-cart__item-image {
	width: 60px;
	height: 60px;
}

.ger-cart__item.component_table_item {
	padding: 1.5rem 0 1.5rem 60px;
	border-color: #e0e2e575;
}

.component_table_item .ger-cart__item-name {
	font-weight: 400;
}

.component_table_item .component p {
	margin-bottom: 0;
}

.component_table_item .ger-cart__item-subtotal {
	font-size: 0.825rem;
}

.component_table_item .ger-cart__item-bottom {
	display: none;
}

.ger-cart__item.component_container_table_item {
	border-color: #e0e2e575;
}

@media screen and (max-width: 767px) {
	.component_table_item .ger-cart__item-image {
		width: 45px;
		height: 45px;
	}

	.ger-cart__item.component_table_item {
		padding: 1rem 0 1rem 30px;
	}
}

/* Composite Products: component prices (moved from Betra Bak Theme Settings → Typography) */
span.component_table_item_price bdi,
span.component_table_item_subtotal bdi {
	font-weight: 400;
	font-size: 0.8rem;
	color: rgb(118, 118, 118);
}
