/**
 * Theme Name:       Mai Prosper
 * Theme URI:        https://bizbudding.com/mai-theme/
 * Description:      Mai Prosper child theme for the Genesis Framework.
 * Author:           BizBudding
 * Author URI:       https://bizbudding.com/
 * Version:          2.1.1
 * Text Domain:      mai-prosper
 * Template:         genesis
 * Template Version: 3.3.5
 * License:          GPL-2.0-or-later
 * License URI:      http://www.gnu.org/licenses/gpl-2.0.html
 */

/* Flexible Grid for Retailers / Brands */
.flexible-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 30px;
	align-items: center;
	margin: 20px 0;
}
.flexible-grid a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flexible-grid a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.flexible-grid img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}
@media only screen and (max-width: 768px) {
	.flexible-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 20px;
	}
}
@media only screen and (max-width: 480px) {
	.flexible-grid {
		grid-template-columns: 1fr;
		grid-gap: 15px;
	}
}

/* Review Header Layout */
.review-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}
.review-header-col-1 {
	flex: 1;
	min-width: 280px;
}
.review-header-col-2 {
	text-align: center;
	padding-left: 30px;
}
.bedbuyers-rating-title {
	font-size: 16px;
	font-weight: bold;
	color: #4d5968;
	margin-bottom: 8px;
}
@media (max-width: 768px) {
	.review-header-flex {
		flex-direction: column;
		align-items: flex-start;
	}
	.review-header-col-2 {
		padding-left: 0;
		text-align: left;
		margin-top: 20px;
	}
}

/* Coupon Modal Styling */
.modal {
	z-index: 1050 !important;
}
.modal-backdrop {
	z-index: 1040 !important;
}
.modal-dialog {
	max-width: 600px;
	margin: 60px auto;
}
.modal-content {
	border-radius: 8px;
	padding: 24px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.modal-header {
	position: relative;
	text-align: center;
	padding: 15px;
	border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
	position: absolute;
	right: 15px;
	top: 15px;
	font-size: 28px;
	font-weight: bold;
	line-height: 1;
	color: #000;
	opacity: 0.4;
	background: none;
	border: none;
	cursor: pointer;
	float: none;
}
.modal-header .close:hover {
	opacity: 0.8;
}
.modal-content h4.modal-title {
	font-size: 22px;
	font-weight: bold;
	text-align: center;
	margin: 0 auto;
	display: inline-block;
	color: #2a3139;
}
.modal-body p.coupon-text {
	text-align: center;
	font-size: 16px;
	margin: 15px 0;
}
.modal-body .product-button {
	text-align: center;
	margin: 20px 0;
}
.modal-body .product-button .product-link {
	float: none !important;
	display: inline-block;
}
.modal-body .coupon-terms {
	font-size: 13px;
	font-style: italic;
	color: #6c757d;
	text-align: center;
	margin-top: 15px;
}
.modal-body .coupon-store-img {
	max-width: 150px;
	margin: 0 auto 15px auto;
	text-align: center;
}
.modal-body .coupon-store-img img {
	max-width: 100%;
	height: auto;
}

/* Original Working Bedbuyer Custom CSS */
.archive .entry-archive {
	position: relative;
}
.archive .btn.coupon, .blog .btn.coupon, .search .btn.coupon {
	font-weight: 800;
	position: absolute;
	top: 0px;
	left: 0;
	margin-left: 0;
	color: #fff;
	font-size: 18px;
	border-radius: 0 !important;
}
.coupon {
	margin-left: 5px;
	background: #EF7C41;
	font-weight: 800;
}
.archive p.video-review, .blog p.video-review, .search p.video-review {
	position: absolute;
	top: 59px;
	left: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 800;
}
.product-link {
	font-size: 1.2rem;
	text-transform: uppercase;
	font-weight: 800;
	float: right;
	display: inline-block;
	padding-right: 2rem;
	padding-left: 2rem;
	border-radius: 1rem !important;
}

/* Clean Structure for Single Review Header */
.my-post-info-single {
	margin-bottom: 30px;
}
.review-top-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	margin-bottom: 15px;
}
.review-col-left {
	flex: 1;
}
.review-col-right {
	flex: 0 0 auto;
	text-align: right;
}
.review-bottom-row {
	width: 100%;
	clear: both;
}
.review-bottom-row .coupon,
.review-bottom-row .product-link {
	float: left;
	margin-right: 10px;
	margin-bottom: 10px;
}
.review-bottom-row .dateentry {
	clear: both;
	font-size: 0.85rem;
	color: #6c757d;
	margin-top: 5px;
	margin-bottom: 0;
	float: left;
}

/* Center YASR title above stars and equalize single button padding */
.review-col-right .yasr-temp-container {
	text-align: center !important;
}
.review-col-right #yasr-custom-text-before-overall {
	display: block !important;
	text-align: center !important;
	width: 100% !important;
}
.review-bottom-row .coupon,
.review-bottom-row .product-link {
	padding: 0.75em 1.6em !important;
	height: auto !important;
	line-height: 1.5 !important;
	display: inline-block !important;
}

/* Force equal styling, size, and 1rem border-radius on single review buttons */
.review-bottom-row .coupon,
.review-bottom-row .product-link {
	border-radius: 1rem !important;
	font-size: 1.1rem !important;
	padding: 0.6em 1.5em !important;
	line-height: 1.5 !important;
	height: auto !important;
	min-height: 0 !important;
	box-shadow: none !important;
}

/* Global button border-radius reset */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button a {
	border-radius: 1rem !important;
}

/* Ensure YASR heading text is fully centered */
.review-col-right .yasr-container-custom-text-and-overall,
.review-col-right .yasr-custom-text-before-overall,
.review-col-right #yasr-custom-text-before-overall {
	text-align: center !important;
	display: block !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Tweak border radius to 0.5rem for a subtler curve matching production, and strip YASR padding-right */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button a,
.review-bottom-row .coupon,
.review-bottom-row .product-link {
	border-radius: 0.5rem !important;
}

#yasr-custom-text-before-overall {
	padding-right: 0 !important;
	vertical-align: baseline !important;
}





/* Responsive video embed styling matching legacy Corporate Pro */
.entry-content iframe,
.entry-content video {
	width: 100%;
	max-width: 100%;
}

.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtube-nocookie.com"],
.entry-content iframe[src*="youtu.be"] {
	aspect-ratio: 16 / 9;
	height: auto;
}
