/* General Modal Styles */
/*body {*/
/*	font-family: 'Poppins', sans-serif;*/
/*	color: #333;*/
/*	background-color: #f0f0f0; !* Added a background for contrast *!*/
/*	display: flex;*/
/*	justify-content: center;*/
/*	align-items: center;*/
/*	min-height: 100vh;*/
/*}*/

div#cart-modal-container {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgb(0 0 0 / 60%);
	backdrop-filter: blur(2px);
	.cart-modal {
		background: #fff;
		border-radius: 10px;
		width: 100%;
		max-width: 1140px;
		box-shadow: 0 4px 30px rgba(0,0,0,0.1);
		overflow: hidden;
		position: fixed;
		bottom: 50%;
		right: 50%;
		translate: 50% 50%;
	}
}

.cart-modal {
	.cart-modal__header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 15px 25px;
		border-bottom: 2px solid #ededed;
	}

	.notification {
		display: flex;
		align-items: center;
		gap: 10px;
	}
	.notification__icon {
		width: 21px;
		height: 16px;
	}
	.notification__text {
		color: #388d50;
		font-weight: 500;
		font-size: 14px;
	}

	.cart-modal__close-btn {
		background: none;
		border: none;
		cursor: pointer;
		padding: 5px;
	}

	/* Modal Body */
	.cart-modal__body {
		display: flex;
		padding: 40px;
		gap: 40px;
		align-items: flex-start;
	}

	.cart-modal__product-details {
		flex: 1.2;
	}

	.cart-modal__summary {
		flex: 1;
		border-left: 2px solid #ededed;
		padding-left: 40px;
	}

	/* Product Info */
	.product-info {
		display: flex;
		gap: 30px;
		align-items: flex-start;
		flex-direction: row;
		padding-top: 0;
	}
	.product-info__image {
		width: 240px;
		height: 240px;
		object-fit: cover;
		border-radius: 10px;
		flex-shrink: 0;
	}
	.product-info__text {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.product-info__title {
		font-family: "ChakraPetch-Bold", sans-serif;
		font-size: 14px;
		line-height: 1.4;
	}
	.product-info__price {
		font-family: "ChakraPetch-Bold", sans-serif;
		font-size: 14px;
		color: #999598;
	}
	.product-info__specs {
		font-size: 12px;
		line-height: 2;
	}
	.product-info__specs p {
		display: flex;
		justify-content: space-between;
	}
	.product-info__specs strong {
		font-weight: 500;
		margin-right: 15px;
	}
	.color-swatch {
		display: inline-block;
		width: 22px;
		height: 22px;
		background: #fecc00;
		border-radius: 50%;
		border: 1.5px solid #d6d5d6;
		vertical-align: middle;
	}

	/* Summary */
	.summary__title {
		font-family: "ChakraPetch-Bold", sans-serif;
		font-size: 14px;
		margin-bottom: 20px;
		padding-bottom: 20px;
		border-bottom: 2px solid #ededed;
	}
	.summary__totals {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-bottom: 20px;
		font-size: 14px;
	}
	.summary-row {
		display: flex;
		justify-content: space-between;
	}
	.summary-row span:first-child {
		font-weight: 500;
	}
	.summary-row span:last-child {
		color: #999598;
	}
	.summary-row--total strong {
		font-weight: 500;
	}
	.summary-row--total strong:last-child {
		color: #111;
	}

	.summary__actions {
		display: flex;
		gap: 10px;
		margin-top: 30px;
	}
	.button-primary, .button-secondary {
		flex: 1;
		height: 45px;
		border-radius: 10px;
		font-size: 14px;
		font-weight: 500;
		cursor: pointer;
		border: none;
	}
	.button-primary {
		background: #fecc00;
		color: #3c291e;
		box-shadow: 0 4px 15px rgba(254, 204, 0, 0.2);
		display: flex	;
		justify-content: center;
		align-items: center;
	}
	.button-secondary {
		background: #d6d5d6;
		color: #3c291e;
	}

	/* Kontener-nakładka, który jest domyślnie ukryty */
	.modal-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(60, 41, 30, 0.7); /* Półprzezroczyste tło */
		display: none; /* Zmieniane na 'flex' przez JS, aby pokazać modal */
		justify-content: center;
		align-items: center;
		z-index: 1000; /* Upewnij się, że jest na wierzchu */
		padding: 20px;
		box-sizing: border-box;
	}

	/* Dodajemy klasę, aby uniemożliwić przewijanie strony, gdy modal jest otwarty */
	body.modal-open {
		overflow: hidden;
	}
	@media screen and (max-width: 66rem) {
		.cart-modal__body {
			padding: 30px;
			gap: 20px;
		}
		.cart-modal__product-details {
			max-width: 35%;
			.product-info {
				zoom: .8;
				flex-direction: column;
			}
		}

	}
	@media screen and (max-width: 44rem) {
		.cart-modal__body {
			padding: 30px;
			gap: 20px;
		}
		.cart-modal__product-details {
			max-width: 45%;
			.product-info {
				zoom: .8;
				flex-direction: column;
			}
		}
		.cart-modal__summary {
			padding-left: 30px;
			max-width: 65%;
			zoom: .8;
		}
		.summary__actions {
			flex-direction: column;
		}
		.button-primary {
			width: 100%;
			padding: 9px;
		}

	}
	@media screen and (max-width: 33rem) {
		.cart-modal__body {
			flex-direction: column;
		}
		.cart-modal__product-details,
		.cart-modal__summary {
			max-width: 100%;
			width: 100%;
			border: 0;
			padding: 0;
		}
		#d & .product-info {
			zoom: .85;
			flex-direction: row;
			gap: 8px;
		}
		.product-info__image {
			width: 150px;
			height: auto;
			margin-top: -30px;
		}
		.cart-modal__summary {
			zoom: 0.9;
		}
		.notification__text {
			font-size: 14px;
			line-height: 1.2;
		}
		.button-primary, .button-secondary {
			padding: 14px;
		}
	}
}