/* Barwtech cart presentation. Business logic remains in WooCommerce. */

body.woocommerce-cart {
	--bt-cart-navy: #0b2f55;
	--bt-cart-blue: #155fa0;
	--bt-cart-yellow: #ffb515;
	--bt-cart-ink: #233a52;
	--bt-cart-muted: #6e8093;
	--bt-cart-line: #d8e4ee;
	--bt-cart-soft: #f2f7fb;
	--bt-cart-white: #fff;
}

body.woocommerce-cart .site-main,
body.woocommerce-cart .content-area {
	overflow: visible;
}

.bt-cart-summary {
	background: linear-gradient(135deg, #0a2b4d 0%, #174f7a 100%);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 20px;
	box-shadow: 0 20px 48px rgba(8, 42, 75, .16);
	color: #fff;
	margin: 0 0 28px;
	overflow: hidden;
	padding: 30px;
}

.bt-cart-summary__main {
	align-items: flex-start;
	display: flex;
	gap: 30px;
	justify-content: space-between;
}

.bt-cart-summary__eyebrow {
	color: #ffd56e;
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.4px;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.bt-cart-summary h2 {
	color: #fff;
	font-size: clamp(27px, 3vw, 38px);
	font-weight: 800;
	letter-spacing: -.6px;
	line-height: 1.12;
	margin: 0;
}

.bt-cart-summary p {
	color: rgba(255,255,255,.78);
	font-size: 15px;
	line-height: 1.55;
	margin: 9px 0 0;
}

.bt-cart-summary__total {
	background: linear-gradient(135deg, #ffd66d 0%, #ffb515 100%);
	border: 2px solid rgba(255,255,255,.72);
	border-radius: 14px;
	box-shadow: 0 13px 30px rgba(2, 24, 47, .25), 0 0 0 4px rgba(255,181,21,.14);
	flex: 0 0 auto;
	min-width: 230px;
	padding: 16px 20px;
	text-align: right;
}

.bt-cart-summary__total span,
.bt-cart-summary__fact span {
	color: rgba(255,255,255,.7);
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .65px;
	text-transform: uppercase;
}

.bt-cart-summary__total span {
	color: #27445d;
	font-size: 12px;
	letter-spacing: .85px;
}

.bt-cart-summary__total strong {
	color: #082d51;
	display: block;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: -.45px;
	line-height: 1.2;
	margin-top: 5px;
}

.bt-cart-summary__total .amount,
.bt-cart-summary__total .amount bdi,
.bt-cart-summary__total .woocommerce-Price-currencySymbol {
	color: #082d51 !important;
	font-size: 32px !important;
	font-weight: 900 !important;
	line-height: 1.1 !important;
}

.bt-cart-summary__facts {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr 1.7fr;
	margin-top: 22px;
}

.bt-cart-summary__fact {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 12px;
	padding: 13px 15px;
}

.bt-cart-summary__fact strong {
	color: #fff;
	display: block;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	margin-top: 4px;
}

body.woocommerce-cart .woocommerce-cart-form {
	margin: 0;
}

body.woocommerce-cart table.shop_table.cart {
	background: transparent;
	border: 0;
	border-collapse: separate;
	border-spacing: 0 12px;
	margin: -12px 0 18px;
}

body.woocommerce-cart table.shop_table.cart thead th {
	background: transparent;
	border: 0;
	color: var(--bt-cart-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .8px;
	padding: 0 14px 7px;
	text-transform: uppercase;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item td {
	background: var(--bt-cart-white);
	border-bottom: 1px solid var(--bt-cart-line);
	border-top: 1px solid var(--bt-cart-line);
	padding: 18px 14px;
	vertical-align: middle;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item td:first-child {
	border-left: 1px solid var(--bt-cart-line);
	border-radius: 15px 0 0 15px;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item td:last-child {
	border-radius: 0 15px 15px 0;
	border-right: 1px solid var(--bt-cart-line);
}

body.woocommerce-cart table.shop_table.cart .product-remove {
	padding-left: 14px;
	padding-right: 4px;
	width: 42px;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove {
	align-items: center;
	background: #fff2f2;
	border: 1px solid #f1cccc;
	border-radius: 50%;
	color: #a64040 !important;
	display: inline-flex;
	font-size: 20px;
	font-weight: 500;
	height: 32px;
	justify-content: center;
	line-height: 1;
	transition: .18s ease;
	width: 32px;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
	background: #a64040;
	border-color: #a64040;
	color: #fff !important;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail {
	width: 98px;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
	background: #fff;
	border: 1px solid #e0e8ef;
	border-radius: 11px;
	height: 82px;
	object-fit: contain;
	padding: 5px;
	width: 82px;
}

body.woocommerce-cart table.shop_table.cart .product-name {
	min-width: 250px;
}

body.woocommerce-cart table.shop_table.cart .product-name > a {
	color: var(--bt-cart-navy);
	display: inline-block;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
}

body.woocommerce-cart table.shop_table.cart .product-name > a:hover {
	color: var(--bt-cart-blue);
}

body.woocommerce-cart table.shop_table.cart dl.variation {
	display: grid;
	font-size: 13px;
	gap: 4px 12px;
	grid-template-columns: max-content minmax(0, 1fr);
	line-height: 1.4;
	margin: 11px 0 0;
}

body.woocommerce-cart table.shop_table.cart dl.variation dt,
body.woocommerce-cart table.shop_table.cart dl.variation dd {
	float: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-cart table.shop_table.cart dl.variation dt {
	color: var(--bt-cart-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .5px;
	text-transform: uppercase;
}

body.woocommerce-cart table.shop_table.cart dl.variation dd,
body.woocommerce-cart table.shop_table.cart dl.variation dd p {
	color: var(--bt-cart-ink);
	font-weight: 700;
	margin: 0;
}

body.woocommerce-cart table.shop_table.cart .product-price,
body.woocommerce-cart table.shop_table.cart .product-subtotal {
	color: var(--bt-cart-navy);
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
}

body.woocommerce-cart table.shop_table.cart .product-subtotal {
	font-size: 18px;
	text-align: right;
}

body.woocommerce-cart table.shop_table.cart .product-subtotal .amount {
	align-items: center;
	background: linear-gradient(135deg, #fff6dc 0%, #ffe6a1 100%);
	border: 1px solid #ffc331;
	border-radius: 9px;
	box-shadow: 0 6px 15px rgba(255,181,21,.18);
	color: #092f55 !important;
	display: inline-flex;
	font-size: 18px;
	font-weight: 900;
	justify-content: center;
	line-height: 1.1;
	min-height: 42px;
	padding: 8px 11px;
}

body.woocommerce-cart table.shop_table.cart .product-quantity .quantity {
	align-items: stretch;
	background: var(--bt-cart-soft);
	border: 1px solid #cadbe8;
	border-radius: 10px;
	display: inline-flex;
	height: 46px;
	overflow: hidden;
	padding: 0;
}

body.woocommerce-cart table.shop_table.cart .product-quantity .quantity input.qty {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--bt-cart-navy);
	font-size: 15px;
	font-weight: 800;
	height: 44px;
	margin: 0;
	max-width: 64px;
	min-height: 44px;
	padding: 0 8px;
	text-align: center;
}

body.woocommerce-cart table.shop_table.cart .product-quantity .quantity .minus,
body.woocommerce-cart table.shop_table.cart .product-quantity .quantity .plus {
	align-items: center !important;
	box-sizing: border-box;
	display: inline-flex !important;
	height: 44px !important;
	justify-content: center !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
}

body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td.actions {
	background: var(--bt-cart-soft);
	border: 1px solid var(--bt-cart-line);
	border-radius: 14px;
	padding: 14px;
}

body.woocommerce-cart table.shop_table.cart .actions .coupon {
	display: flex;
	gap: 8px;
}

body.woocommerce-cart table.shop_table.cart .actions .coupon label {
	display: none !important;
}

body.woocommerce-cart table.shop_table.cart .actions .coupon input.input-text {
	background: #fff;
	border: 1px solid #cbdbe7;
	border-radius: 9px;
	font-size: 14px;
	min-height: 46px;
	padding: 10px 13px;
	width: 180px;
}

body.woocommerce-cart table.shop_table.cart .actions button.button {
	align-items: center !important;
	background: var(--bt-cart-navy);
	border: 0;
	border-radius: 9px;
	box-sizing: border-box;
	color: #fff;
	display: inline-flex !important;
	font-size: 13px;
	font-weight: 800;
	height: 46px;
	justify-content: center !important;
	letter-spacing: .2px;
	line-height: 1.15 !important;
	min-height: 46px;
	padding: 11px 19px;
	text-align: center !important;
	white-space: nowrap;
}

body.woocommerce-cart table.shop_table.cart .actions .coupon button.button {
	min-width: 188px;
}

body.woocommerce-cart table.shop_table.cart .actions button.button[name="update_cart"] {
	float: right;
	min-width: 190px;
}

body.woocommerce-cart table.shop_table.cart .actions button.button:hover {
	background: var(--bt-cart-blue);
	color: #fff;
}

body.woocommerce-cart table.shop_table.cart .actions button.button[name="update_cart"],
body.woocommerce-cart table.shop_table.cart .actions button.button[name="update_cart"]:disabled {
	background: var(--bt-cart-navy) !important;
	color: #fff !important;
	opacity: .48;
	text-decoration: none !important;
}

body.woocommerce-cart .cart-collaterals {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
	background: #fff;
	border: 1px solid var(--bt-cart-line);
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(9, 44, 77, .1);
	float: none;
	overflow: hidden;
	padding: 24px;
	width: min(100%, 540px);
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
	color: var(--bt-cart-navy);
	font-size: 25px;
	font-weight: 800;
	margin: 0 0 15px;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
	border: 0;
	border-collapse: collapse;
	margin: 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
	background: transparent;
	border: 0;
	border-bottom: 1px solid #e1e9ef;
	color: var(--bt-cart-ink);
	padding: 13px 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
	font-size: 14px;
	font-weight: 700;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
	font-weight: 700;
	text-align: right;
}

body.woocommerce-cart .cart-collaterals .cart_totals tr.order-total th,
body.woocommerce-cart .cart-collaterals .cart_totals tr.order-total td {
	border-bottom: 0;
	color: var(--bt-cart-navy);
	font-size: 20px;
	font-weight: 800;
	padding-bottom: 8px;
	padding-top: 18px;
}

body.woocommerce-cart .cart-collaterals .cart_totals tr.order-total .amount {
	font-size: 25px;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	padding: 16px 0 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	align-items: center;
	background: var(--bt-cart-yellow);
	border: 0;
	border-radius: 11px;
	box-sizing: border-box;
	box-shadow: 0 10px 24px rgba(255,181,21,.26);
	color: #092c4d;
	display: flex;
	font-size: 16px;
	font-weight: 800;
	justify-content: center;
	letter-spacing: .2px;
	line-height: 1.2;
	margin: 0;
	min-height: 54px;
	padding: 16px 20px;
	text-align: center;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background: #ffc541;
	color: #092c4d;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.bt-cart-summary {
		border-radius: 16px;
		padding: 24px;
	}

	.bt-cart-summary__main {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
	}

	.bt-cart-summary__total {
		min-width: 0;
		text-align: left;
	}

	body.woocommerce-cart table.shop_table.cart .product-name {
		min-width: 190px;
	}
}

@media (max-width: 768px) {
	.bt-cart-summary {
		margin-bottom: 22px;
		padding: 22px 18px;
	}

	.bt-cart-summary h2 {
		font-size: 28px;
	}

	.bt-cart-summary__facts {
		grid-template-columns: 1fr 1fr;
	}

	.bt-cart-summary__fact--wide {
		grid-column: 1 / -1;
	}

	body.woocommerce-cart table.shop_table.cart {
		display: block;
		margin-top: 0;
	}

	body.woocommerce-cart table.shop_table.cart thead {
		display: none;
	}

	body.woocommerce-cart table.shop_table.cart tbody {
		display: block;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item {
		background: #fff;
		border: 1px solid var(--bt-cart-line);
		border-radius: 15px;
		display: grid;
		grid-template-columns: 76px minmax(50px, 1fr) 112px minmax(60px, 1fr);
		margin: 0 0 14px;
		overflow: hidden;
		padding: 16px 14px 0;
		position: relative;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item td {
		background: transparent;
		border: 0;
		border-radius: 0;
		display: block;
		padding: 0;
		text-align: left !important;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item td::before {
		float: none;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-remove {
		position: absolute;
		right: 12px;
		top: 12px;
		width: auto;
		z-index: 2;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-thumbnail {
		display: block;
		grid-column: 1;
		grid-row: 1;
		width: 64px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-thumbnail::before {
		display: none;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-thumbnail img {
		height: 62px;
		padding: 3px;
		width: 62px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-name {
		grid-column: 2 / 5;
		grid-row: 1;
		min-width: 0;
		padding: 2px 38px 17px 10px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-name::before {
		display: none;
	}

	body.woocommerce-cart table.shop_table.cart .product-name > a {
		font-size: 15px;
	}

	body.woocommerce-cart table.shop_table.cart dl.variation {
		font-size: 12px;
		gap: 3px 8px;
		grid-template-columns: auto minmax(0, 1fr);
		margin-top: 9px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-price,
	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-quantity,
	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-subtotal {
		background: var(--bt-cart-soft);
		border-top: 1px solid var(--bt-cart-line);
		min-height: 76px;
		padding: 12px 7px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-price {
		grid-column: 1 / 3;
		margin-left: -14px;
		padding-left: 14px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-quantity {
		grid-column: 3;
		text-align: center !important;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-subtotal {
		grid-column: 4;
		margin-right: -14px;
		padding-right: 14px;
		text-align: right !important;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-price::before,
	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-quantity::before,
	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-subtotal::before {
		color: var(--bt-cart-muted);
		display: block;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: .45px;
		margin-bottom: 5px;
		text-transform: uppercase;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-quantity::before {
		text-align: center;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-subtotal::before {
		text-align: right;
	}

	body.woocommerce-cart table.shop_table.cart .product-price,
	body.woocommerce-cart table.shop_table.cart .product-subtotal {
		font-size: 13px;
	}

	body.woocommerce-cart table.shop_table.cart .product-subtotal .amount {
		font-size: 14px;
		min-height: 36px;
		padding: 6px 7px;
	}

	body.woocommerce-cart table.shop_table.cart .product-quantity .quantity {
		display: grid;
		grid-template-columns: 30px 46px 30px;
		height: 38px;
		max-width: 106px;
		width: 106px;
	}

	body.woocommerce-cart table.shop_table.cart .product-quantity .quantity .minus,
	body.woocommerce-cart table.shop_table.cart .product-quantity .quantity .plus {
		font-size: 14px;
		height: 36px !important;
		min-width: 0;
		padding: 0;
		width: 30px;
	}

	body.woocommerce-cart table.shop_table.cart .product-quantity .quantity input.qty {
		font-size: 13px;
		height: 36px;
		min-height: 36px;
		padding: 0 3px;
		width: 44px;
	}

	body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) {
		display: block;
	}

	body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td.actions {
		display: flex;
		flex-direction: column;
		gap: 9px;
		padding: 12px;
	}

	body.woocommerce-cart table.shop_table.cart .actions .coupon {
		display: grid;
		float: none !important;
		gap: 8px;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}

	body.woocommerce-cart table.shop_table.cart .actions .coupon input,
	body.woocommerce-cart table.shop_table.cart .actions .coupon button {
		float: none !important;
		margin: 0 !important;
	}

	body.woocommerce-cart table.shop_table.cart .actions .coupon input.input-text {
		width: 100%;
	}

	body.woocommerce-cart table.shop_table.cart .actions .coupon button.button {
		min-width: 0;
		width: 100%;
	}

	body.woocommerce-cart table.shop_table.cart .actions > button.button {
		float: none;
		min-width: 0;
		width: 100%;
	}

	body.woocommerce-cart .cart-collaterals {
		margin-top: 18px;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals {
		border-radius: 15px;
		padding: 19px 17px;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals h2 {
		font-size: 22px;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr {
		display: table-row;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
	body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
		display: table-cell;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td::before {
		display: none;
	}
}

@media (max-width: 420px) {
	.bt-cart-summary__facts {
		grid-template-columns: 1fr;
	}

	.bt-cart-summary__fact--wide {
		grid-column: auto;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 68px minmax(50px, 1fr) 112px minmax(60px, 1fr);
		padding-left: 11px;
		padding-right: 11px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-name {
		padding-left: 7px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-price {
		margin-left: -11px;
		padding-left: 11px;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item .product-subtotal {
		margin-right: -11px;
		padding-right: 11px;
	}
}
