/**
 * WooCommerce Product Reviews Pro — Badge description modal
 *
 * @since 1.19.10
 */

/* the badges themselves become clickable/focusable once they have a
   description configured (see WC_Product_Reviews_Pro_User_Badges) */
.wc-product-reviews-pro-badge {
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.wc-product-reviews-pro-badge:hover,
.wc-product-reviews-pro-badge:focus-visible {
	filter: brightness(0.94);
	outline: none;
}

.wc-product-reviews-pro-badge:focus-visible {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.wc-product-reviews-pro-badge-modal {
	--wprpbm-accent: #00b778;
	--wprpbm-accent-dark: #049a64;
	--wprpbm-text: #29323a;
	--wprpbm-text-muted: #767f88;
	--wprpbm-border: #e7e9ec;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	direction: rtl;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
}

.wc-product-reviews-pro-badge-modal.is-open {
	display: block;
}

.wc-product-reviews-pro-badge-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 25, 30, 0.55);
}

.wc-product-reviews-pro-badge-modal__dialog {
	position: relative;
	max-width: 340px;
	margin: 14vh auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 26px 24px 22px;
	max-height: 80vh;
	overflow-y: auto;
	text-align: center;
}

.wc-product-reviews-pro-badge-modal__close {
	position: absolute;
	top: -7px;
	left: 14px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: var(--wprpbm-text-muted);
	cursor: pointer;
	padding: 4px;
}

.wc-product-reviews-pro-badge-modal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 183, 120, .12);
	color: var(--wprpbm-accent-dark);
	font-size: 20px;
	margin: 0 auto 12px;
}

.wc-product-reviews-pro-badge-modal__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--wprpbm-text);
}

.wc-product-reviews-pro-badge-modal__description {
	font-size: 14px;
	line-height: 1.7;
	color: var(--wprpbm-text-muted);
	margin: 0;
}

@media (max-width: 480px) {
	.wc-product-reviews-pro-badge-modal__dialog {
		margin: 0;
		max-width: 100%;
		min-height: 100vh;
		border-radius: 0;
		max-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}
