/**
 * GRZ cart 1.4.31 — compact mobile item cards with product/variation hierarchy.
 * Desktop grouping remains owned by cart-v1430; this layer only refines phones.
 */

body.grz-cart-page .grz-cart__mobile-product-name {
	display: none;
}

@media (max-width: 620px) {
	/* The phone layout uses one surface per purchasable line. The desktop
	 * product-table heading is repeated inside each line and therefore hidden. */
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__items {
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
	}

	body.grz-cart-page .woocommerce-cart-form__contents {
		display: grid;
		gap: 10px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__gcard {
		display: grid;
		gap: 10px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__gcard + .grz-cart__gcard {
		margin: 0;
		padding: 0;
		border: 0;
	}

	body.grz-cart-page .grz-cart__ghead {
		display: none;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__ln {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"a c x"
			"a p q";
		align-items: center;
		gap: 11px 14px;
		min-height: 150px;
		margin: 0;
		padding: 16px;
		border: 1px solid rgba(181, 198, 221, .55);
		border-radius: 10px;
		background: rgba(255, 255, 255, .94);
		box-shadow: 0 9px 24px rgba(11, 28, 53, .09);
		backdrop-filter: blur(12px) saturate(1.04);
		overflow: hidden;
		transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__ln:last-of-type {
		border-bottom: 1px solid rgba(181, 198, 221, .55);
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__ln:hover {
		border-color: rgba(8, 104, 242, .25);
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 12px 28px rgba(11, 28, 53, .12);
		transform: translateY(-1px);
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__art {
		align-self: center;
		width: 72px;
		height: 92px;
		border-radius: 9px;
		box-shadow: 0 8px 18px rgba(11, 28, 53, .14);
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__art img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__c {
		grid-column: 2 / 4;
		grid-row: 1;
		align-self: center;
		min-width: 0;
		padding: 0 64px 0 0;
	}

	body.grz-cart-page .grz-cart__mobile-product-name {
		display: block;
		margin: 0;
		color: #13213a;
		font-family: "Manrope", "Inter", Arial, sans-serif !important;
		font-size: 14px;
		font-weight: 800;
		line-height: 1.28;
		letter-spacing: -.015em;
		overflow-wrap: anywhere;
	}

	body.grz-cart-page .grz-cart__mobile-product-name a {
		color: inherit;
		text-decoration: none;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__name {
		display: block;
		margin-top: 5px;
		color: #65748c;
		font-size: 12.5px;
		font-weight: 650;
		line-height: 1.3;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__name a {
		color: inherit;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__name--simple {
		display: none;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__meta,
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__attrs {
		margin-top: 5px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__price {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		align-self: center;
		min-width: 0;
		padding: 0;
		text-align: start;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__price b {
		font-size: 17px;
		font-weight: 800;
		line-height: 1.1;
		color: #0868f2;
	}

	body.grz-cart-page .grz-cart__was {
		justify-content: flex-start;
		margin-top: 5px;
	}

	body.grz-cart-page .grz-cart__was s {
		font-size: 10.5px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty {
		grid-column: 3;
		grid-row: 2;
		justify-self: end;
		align-self: end;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty .quantity {
		border-radius: 7px !important;
		box-shadow: 0 2px 5px rgba(11, 28, 53, .04);
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty .grz-quantity-control__button,
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty input.qty {
		height: 40px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty .grz-quantity-control__button {
		width: 40px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty input.qty {
		width: 42px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__x {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		gap: 3px;
		margin: -2px -4px 0 0;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__x .grz-cart__i {
		width: 30px !important;
		height: 30px !important;
		min-width: 30px !important;
		min-height: 30px !important;
	}

	/* Keep the summary in the same visual reading order as the approved
	 * mobile model: totals, promo code, primary checkout, then reassurance. */
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__sum-in {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__sum-l,
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__sum-r {
		display: contents;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__tt { order: 1; }
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__promo {
		order: 2;
		width: 100%;
		max-width: none;
	}
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__go { order: 3; }
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__trust { order: 4; }
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__note { order: 5; }
}

@media (max-width: 380px) {
	body.grz-cart-page.grz-cart-atmosphere .grz-cart__ln {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		gap: 10px 11px;
		min-height: 140px;
		padding: 14px 12px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__art {
		width: 64px;
		height: 84px;
	}

	body.grz-cart-page .grz-cart__mobile-product-name {
		font-size: 13px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__name {
		font-size: 12px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__price b {
		font-size: 16px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty .grz-quantity-control__button {
		width: 35px;
	}

	body.grz-cart-page.grz-cart-atmosphere .grz-cart__qty input.qty {
		width: 37px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.grz-cart-page .grz-cart__ln {
		transition: none !important;
	}
}
