:root {
	--modal-gap: 5%;
}

.product-modal {
}

/* # backdrop */
.product-modal::backdrop {
	background-color: #233235;
	opacity: 0.6;
}

/* # positioning */
.product-modal.open {
	display: grid;
	grid-template-rows: 1fr;
	gap: var(--modal-gap);
}

/* ## modal info */
.product-modal .modal-info {
	display: flex;
	gap: 5px;
	flex-direction: column;
	justify-content: flex-start;
	user-select: none;
}

/* # text */
.product-modal__text {
	margin: 0;
	font-family: 'DM Sans';
}

.product-modal__text.--title {
	color: #233235;
	font-size: 1.5rem;
	font-weight: 600;
}

.product-modal__text.--price {
	color: #233235;
	font-weight: 600;
	text-transform: uppercase;
}

.product-modal__text.--variations {
	color: #686868;
	font-weight: 400;
}

.select-stem-length > p,
.modal-quantity > p {
	margin: 0;
	color: #233235;
	font-weight: 700;
	text-transform: uppercase;
}

/* # images */
.product-modal .modal-images {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.product-modal .modal-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* SHOWS/HIDES IMAGE CAROUSEL */
.product-modal .modal-images > div {
	display: none;
}

.product-modal .modal-images > div:nth-of-type(2) {
	display: block;
}

/* # buttons */
.modal-close-btn {
	background-color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	border-radius: 50%;
	padding: 0;
	position: absolute;
	top: 30px;
	right: 30px;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
	background-color: #fff;
}

.stem-length-radio-btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.add-pao-product-to-cart-btn {
	display: flex;
	justify-content: center;
	width: 100%;
	background-color: #007d7a;
	border-color: #007d7a;
	color: #fff;
	font-family: 'DM Sans';
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	flex: 1;
}

.add-pao-product-to-cart-btn:hover,
.add-pao-product-to-cart-btn:focus {
	background-color: #005e5c;
	border-color: #005e5c;
}

.modal-stem-length-btn input[type='radio'] {
	appearance: none;
}

.modal-stem-length-btn input[type='radio']:focus-visible {
	outline: none;
}

.modal-stem-length-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 141px;
	height: 50px;
	background-color: #efe9e8;
	cursor: pointer;
	border: 2px solid #efe9e8;
	box-sizing: border-box;
	color: #000;
	font-family: DM Sans;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
}

.selected {
	background-color: #b8d1d1;
	border: 2px solid #005e5c;
}

.add-pao-product-to-cart-btn.disabled {
	background-color: #b3cece;
	border-color: #b3cece;
	cursor: not-allowed;
}

.add-pao-product-to-cart-btn.disabled:hover {
	background-color: #b3cece;
}

.modal-quantity {
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
	width: 100%;
}

@media (min-width: 768px) {
	.product-modal.open {
		grid-template-rows: 60% 1fr;
	}
}

@media (min-width: 1024px) {
	.product-modal.open {
		grid-template-columns: calc(50% - (var(--modal-gap) / 2)) calc(50% - (var(--modal-gap) / 2));
		grid-template-rows: 100%;
		gap: 50px;
		padding: 75px;
		width: 80%;
		height: 85%;
		overflow-y: auto; /* Allow vertical scrolling */
		overflow-x: hidden; /* Prevent horizontal scrolling */
	}

	.modal-quantity {
		width: 165px;
	}

	.product-modal__text.--title {
		font-size: 34px;
	}

	.product-modal__text.--price {
		font-size: 22px;
	}

	.product-modal__text.--variations {
		font-size: 18px;
	}

	.select-stem-length > p,
	.modal-quantity > p {
		font-size: 16px;
	}

	.add-pao-product-to-cart-btn {
		flex: 0 1 auto;
	}

	.modal-stem-length-btn:has(input[type='radio']:focus-visible) {
		outline: 1px solid #2ea2cc;
	}

	/* SHOWS/HIDES IMAGE CAROUSEL */
	.product-modal .modal-images > div {
		display: flex;
		justify-content: center;
	}

	.product-modal .modal-images > div:nth-of-type(2) {
		display: none;
	}
}
