.rating-container {
	display: flex;
	justify-content: center;
}

.rating-widget {
	margin: 10px 0;
	padding: 5px 15px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	background-color: #f9f9f9;
	min-width:450px;
	text-align: center;
}

.rating-widget span { 
	line-height: 35px; 
}

.rating-widget .rating-title {
	font-size: 14px;
	color: #333;
	font-weight: bold;
	display: inline-block;
}

.rating-widget .rating-stats {
	background: #f0f0f0;
	border-radius: 4px;
	padding: 10px;
}

.rating-widget .rating-average {
	display: inline-block;
	margin: 0 10px;
}

.rating-widget .labels {
	color: #666; 
	font-size: 14px; 
	margin-left: 10px;
}

.rating-widget .stars {
	display: inline-flex;
	align-items: center;
}

.rating-widget .star {
	font-size: 18px;
	color: #ddd;
	margin-right: 5px;
	cursor: default;
}

.rating-widget .star.filled {
	color: #ffb400;
}

.rating-widget .star.half-filled {
	position: relative;
	color: #ddd;
}

.rating-widget .star.half-filled:before {
	content: '★';
	position: absolute;
	left: 0;
	width: 50%;
	overflow: hidden;
	color: #ffb400;
}

.rating-widget .score {
	margin-left: 8px;
	color: #333;
	font-size: 14px;
}

.rating-widget .my-rating {
	display: inline-flex;
	align-items: center;
	margin: 0 10px;
}

.rating-widget .star-select {
	position: relative;
	cursor: pointer;
	transition: transform 0.1s, color 0.2s;
}

.rating-widget .hover-score {
	position: absolute;
	top: -50%;
	left: 50%;
	transform: translateX(-50%);
	color: black;
	font-size: 12px;
	white-space: nowrap;
	display: none;
}

.rating-widget .star-select:hover .hover-score {
	display: block;
}

.rating-widget .star-select:hover, 
.rating-widget .star-select.hover {
	color: #ffb400;
	transform: scale(1.2);
}

.rating-widget .star-select.selected {
	color: #ffb400;
}

.rating-widget .selected-rating {
	margin-left: 10px;
	font-size: 14px;
}

.rating-widget .submit-button {
	text-align: center;
	margin-left: 10px;
	display: inline-block;
}

.rating-widget .submit-button .spb {
	padding: 5px 10px !important;
	background-color: #4a89dc !important;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s;
	margin: 0 auto;
}

.rating-widget .submit-button .spb:hover {
	background-color: #3a79cc !important;
}

/* 취소 버튼 스타일 */
.rating-widget .submit-button .spb.cancel-btn {
	background-color: #e74c3c !important;
}

.rating-widget .submit-button .spb.cancel-btn:hover {
	background-color: #c0392b !important;
}

.rating-widget .login-required {
	margin-top: 0px;
	padding: 5px;
	background-color: #f1f1f1;
	border-radius: 4px;
	color: #666;
	text-align: center;
	font-size: 14px;
}

.rating-widget .already-rated {
	display: inline-block;
	text-align: center;
}

.rating-widget .my-rating-display {
	display: inline-flex;
	align-items: center;
}

.vm_body { background:#f9f9f9; color:#333; }
.vm_top { background:#f9f9f9; color:#333; }
.vm_tr { background:#f0f0f0; color:#000; }
.vm_area { width:fit-content; margin:0 auto 10px; background:#f9f9f9; border:1px solid #e0e0e0; font-size:13px; color:#666; padding:0 10px; border-radius:5px; border: 1px solid #e0e0e0; }
.vm_box { text-align:center; }

@media (max-width: 768px) {
	.rating-widget {
		flex-wrap: wrap;
		min-width:90%;
	}
	.rating-title, .rating-average, .rating-form, .login-required, .already-rated {
		margin-bottom: 5px;
	}
}

.starpoint-display-insert { clear: both; width: 100%; }
