/* Badge */
li.product,
.wc-block-components-product-image,
.woocommerce-product-gallery,
.wp-block-woocommerce-product-image-gallery {
	position: relative;
}

.wcse-badge {
	position: absolute;
	top: 10px;
	z-index: 9;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 5px 4px 11px;
	border-radius: 999px;
	background: var(--wcse-bg, #e53935);
	color: var(--wcse-color, #fff);
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	pointer-events: auto;
}

.wcse-pos-left { left: 10px; }
.wcse-pos-right { right: 10px; }

.wcse-badge__text { white-space: nowrap; }

.wcse-badge__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wcse-color, #fff);
	color: var(--wcse-bg, #e53935);
	font: italic 700 12px/1 Georgia, "Times New Roman", serif;
	cursor: pointer;
	user-select: none;
}

.wcse-badge__info:hover,
.wcse-badge__info:focus-visible {
	transform: scale(1.15);
	outline: 2px solid rgba(255, 255, 255, .8);
}

/* Modal */
.wcse-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .55);
}

.wcse-overlay[hidden] { display: none; }

.wcse-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 85vh;
	overflow: auto;
	padding: 24px 24px 20px;
	border-radius: 12px;
	background: #fff;
	color: #222;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.wcse-modal__title { margin: 0 32px 12px 0; font-size: 20px; line-height: 1.3; }
.wcse-modal__body { font-size: 15px; line-height: 1.7; }
.wcse-modal__body > :first-child { margin-top: 0; }
.wcse-modal__body > :last-child { margin-bottom: 0; }

.wcse-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.wcse-modal__close:hover { color: #000; }
