/* ========== Buy product CTA (front-end) ========== */
.mytrt-buy {
	display: flex;
	align-items: stretch;
	gap: 20px;
	background-color: #fff;
	border: 1px solid #DEE4EA;
	border-radius: 24px;
	padding: 15px;
	margin: 20px 0;
	color: #0a0a0a;
}

.mytrt-buy-content {
	flex: 1 1 45%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-left: 15px;
}

.mytrt-buy-title {
	font-size: 28px !important;
	font-weight: 700;
	line-height: 1.2;
	color: #0a0a0a;
	margin: 0 0 16px !important;
}

.mytrt-buy-price {
	font-size: 18px;
	color: #353941;
	margin-bottom: 15px;
}

.mytrt-buy-price .woocommerce-Price-amount {
	font-weight: 700;
	color: #0a0a0a;
}

.mytrt-buy-extra {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 20px;
}

.mytrt-buy-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 360px;
}

/* Add to cart button */
.mytrt-buy-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 28px;
	background-color: #3b5bff;
	color: #fff !important;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s;
	cursor: pointer;
}
.mytrt-buy-cart:hover,
.mytrt-buy-cart:focus {
	background-color: #2d49d6;
	color: #fff !important;
}

.mytrt-buy-express:empty {
	display: none;
}

/* Media / image side */
.mytrt-buy-media {
	flex: 1 1 55%;
	min-width: 0;
	position: relative;
	aspect-ratio: 1.3;
}
.mytrt-buy-media p {
	margin-bottom: 0 !important;
}

.mytrt-buy-image {
	height: 100%;
	border-radius: 16px;
	overflow: hidden;
}

.mytrt-buy-image .mytrt-buy-img,
.mytrt-buy-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

/* Overlay note pulled over the bottom of the image */
.mytrt-buy-media .mytrt-buy-note {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	margin: 0;
	background: #fff;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #353941;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.mytrt-buy-media .mytrt-buy-note a {
	text-decoration: underline !important;
}

@media (max-width: 767px) {
	.mytrt-buy {
		flex-direction: column-reverse;
		gap: 24px;
		padding: 24px;
	}
	.mytrt-buy-title {
		font-size: 24px !important;
	}
	.mytrt-buy-actions {
		max-width: 100%;
	}
	.mytrt-buy-image {
		max-width: 100%;
	}
	.mytrt-buy-media .mytrt-buy-note {
		font-size: 12px;
	}
	.mytrt-buy-content {
		padding-left: 0;
	}
}

/* ========== Editor preview ========== */
.mytrt-buy-editor {
	display: flex;
	align-items: stretch;
	gap: 40px;
	background-color: #fff;
	border: 1px solid #DEE4EA;
	border-radius: 24px;
	padding: 40px;
}
.mytrt-buy-editor-content {
	flex: 1 1 45%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.mytrt-buy-editor .mytrt-buy-title {
	color: #1a1a1a;
}
.mytrt-buy-editor .mytrt-buy-cart {
	align-self: flex-start;
	margin-top: 12px;
}
.mytrt-buy-editor-media {
	flex: 1 1 55%;
	position: relative;
	min-height: 240px;
}
.mytrt-buy-editor-imgph {
	height: 100%;
	min-height: 240px;
	border-radius: 16px;
	background: #eef1f5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	font-size: 14px;
}
.mytrt-buy-editor .mytrt-buy-note {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	margin: 0;
	background: #fff;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 13px;
	color: #6b7280;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
	.mytrt-buy-editor {
		flex-direction: column-reverse;
		gap: 24px;
		padding: 24px;
	}
}
