/* Store rating: pill, bar and card. Logical properties, so it is right for right-to-left sites too. */
.eswr-store-rating {
	--eswr-sr-star: #e8a317;
	box-sizing: border-box;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.25;
	max-width: 100%;
}
.eswr-store-rating *,
.eswr-store-rating *::before,
.eswr-store-rating *::after { box-sizing: border-box; }

.eswr-sr-stars {
	position: relative;
	display: inline-block;
	flex: none;
	font-size: 1.05em;
	letter-spacing: .06em;
	line-height: 1;
	white-space: nowrap;
}
.eswr-sr-bg { color: #d8dce3; }
.eswr-sr-fg {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	overflow: hidden;
	color: var(--eswr-sr-star);
	white-space: nowrap;
}
.eswr-sr-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.eswr-sr-sub { color: #4b5563; font-size: .93em; }

/* Pill */
.eswr-sr-pill {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .15em .55em;
	padding: .5em 1em;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

/* Bar */
.eswr-sr-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .3em .8em;
	padding: .75em 1.25em;
	background: #1f2937;
	border-radius: 10px;
	color: #fff;
}
.eswr-sr-bar .eswr-sr-bg { color: rgba(255, 255, 255, .32); }
.eswr-sr-bar .eswr-sr-sub { color: #d1d5db; }

/* Card */
.eswr-sr-card {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: .45em;
	min-width: 9.5em;
	padding: 1.15em 1.75em;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 10px 28px -18px rgba(16, 24, 40, .35);
	text-align: center;
}
.eswr-sr-card .eswr-sr-num { font: 600 2.6em/1 Georgia, 'Times New Roman', serif; letter-spacing: -.01em; }
.eswr-sr-card .eswr-sr-stars { font-size: 1.25em; }

/* Placement in the block and with align="" */
.eswr-sr-wrap { max-width: 100%; }
.eswr-sr-align-left { text-align: start; }
.eswr-sr-align-center { text-align: center; }
.eswr-sr-align-right { text-align: end; }
.eswr-sr-wrap .eswr-sr-bar { display: flex; }

.eswr-sr-note {
	margin: .6em 0 0;
	padding: .35em .7em;
	border: 1px dashed #b6bcc6;
	border-radius: 8px;
	background: #f9fafb;
	color: #4b5563;
	font-size: 12.5px;
	line-height: 1.4;
	display: inline-block;
}
