/* Signmax Rating — frontend styles */

.smrt-stars {
	--smrt-star-color: #ffcb07;
	--smrt-star-size: 1em;
	display: inline-flex;
	align-items: center;
	color: var(--smrt-star-color);
	line-height: 1;
}
.smrt-stars .smrt-star {
	width: var(--smrt-star-size);
	height: var(--smrt-star-size);
	flex: 0 0 auto;
}

/* Widget */
.smrt-widget {
	border: 1px solid #e7e7e7;
	border-radius: 6px;
	padding: 1rem 1.25rem;
	background: #fff;
	max-width: 320px;
}
.smrt-widget-heading {
	border-bottom: 1px solid #e7e7e7;
	padding-bottom: .5rem;
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 400;
}
.smrt-label {
	font-size: 1rem;
	margin: .5rem 0;
}
.smrt-widget-avg-text {
	font-size: .9rem;
	font-style: italic;
	margin: .25rem 0 1rem;
	border-bottom: 1px solid #e7e7e7;
	padding-bottom: .75rem;
}
.smrt-widget-quote {
	border-left: 3px solid #ffcb07;
	padding: .5rem .75rem;
	margin: .75rem 0;
	background: transparent;
}
.smrt-widget-quote-head {
	display: flex;
	align-items: center;
	gap: .25rem;
	margin-bottom: .35rem;
}
.smrt-widget-quote-rating {
	font-size: .85rem;
	color: #666;
}
.smrt-widget-quote-text {
	margin: .25rem 0;
	font-size: .95rem;
}
.smrt-widget-quote-footer {
	font-size: .8rem;
	color: #888;
}
.smrt-widget-quote-footer cite {
	font-style: italic;
	margin-left: .25rem;
}
.smrt-widget-actions {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	align-items: center;
	margin-top: 1rem;
}

/* Buttons */
.smrt-btn {
	display: inline-block;
	padding: .55rem 1.1rem;
	background: #f90;
	color: #fff;
	text-decoration: none;
	border: 0;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: background .15s ease;
}
.smrt-btn:hover,
.smrt-btn:focus {
	background: #e58600;
	color: #fff;
	text-decoration: none;
}
.smrt-btn-primary { background: #f90; }

/* Overview */
.smrt-overview-controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e7e7e7;
}
.smrt-control label {
	display: block;
	font-size: .9rem;
	margin-bottom: .25rem;
}
.smrt-control select {
	width: 100%;
	padding: .35rem .5rem;
}
.smrt-overview-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
}
@media (max-width: 768px) {
	.smrt-overview-grid { grid-template-columns: 1fr; }
}
.smrt-grey { color: #888; }
.smrt-center { text-align: center; margin-top: 1rem; }

/* Review items */
.smrt-review {
	border-bottom: 1px solid #e7e7e7;
	padding: .75rem 0;
}
.smrt-review-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: .5rem;
}
.smrt-review-body {
	margin: .5rem 0;
}
.smrt-reply {
	background: #eee;
	border-radius: 5px;
	margin: .5rem 0 0 1.25rem;
	padding: .5rem .75rem;
	font-style: italic;
}

/* Aggregate panel */
.smrt-aggregate-header {
	text-align: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e7e7e7;
}
.smrt-aggregate-count {
	font-size: 1.5rem;
	margin: .5rem 0;
}
.smrt-aggregate-bars { padding-top: 1rem; }
.smrt-bar { margin-bottom: 1rem; }
.smrt-bar label { display: block; font-size: .9rem; margin-bottom: .25rem; }
.smrt-bar-track {
	height: 20px;
	background: #f5f5f5;
	border-radius: 4px;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
	overflow: hidden;
}
.smrt-bar-fill {
	height: 100%;
	background: #f90;
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	padding: 0 .5rem;
	min-width: 2em;
	box-sizing: border-box;
	transition: width .6s ease;
	background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
	background-size: 40px 40px;
}

/* Pagination */
.smrt-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 1.5rem 0;
}
.smrt-pagination button {
	padding: .4rem .75rem;
	background: #fff;
	border: 1px solid #ddd;
	color: #f90;
	cursor: pointer;
	border-radius: 0;
}
.smrt-pagination button:hover:not([disabled]) { background: #eee; }
.smrt-pagination button[aria-current="page"] {
	background: #f90;
	color: #fff;
	border-color: #f90;
	cursor: default;
}
.smrt-pagination button[disabled] {
	color: #999;
	cursor: not-allowed;
}

/* Form */
.smrt-form {
	max-width: 720px;
	margin: 0 auto;
}
.smrt-form h1 { margin-top: 0; }
.smrt-field {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
}
.smrt-field label {
	font-weight: 600;
	margin-bottom: .35rem;
}
.smrt-field input[type="text"],
.smrt-field input[type="email"],
.smrt-field textarea {
	padding: .5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
}
.smrt-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.smrt-error {
	color: #b00;
	padding: .5rem 0;
}
.smrt-warning {
	background: #fff3cd;
	border: 1px solid #ffeeba;
	padding: .75rem 1rem;
	border-radius: 4px;
	margin: 1rem 0;
}
.smrt-message.smrt-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}
.smrt-message.smrt-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}
.smrt-message {
	padding: .75rem 1rem;
	border-radius: 4px;
	margin: 1rem 0;
}

/* Star input (form) */
.smrt-stars-input {
	border: 0;
	margin: 1rem 0;
	padding: 0;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}
.smrt-stars-input legend {
	width: 100%;
	margin-bottom: .5rem;
}
.smrt-stars-input input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.smrt-stars-input label {
	cursor: pointer;
	color: #ddd;
	font-size: 0;
}
.smrt-stars-input label svg {
	width: 3rem;
	height: 3rem;
	fill: currentColor;
}
.smrt-stars-input input:checked ~ label,
.smrt-stars-input label:hover,
.smrt-stars-input label:hover ~ label {
	color: #ffcb07;
}

/* Radio groups (choice) */
.smrt-choice {
	background: #fafafa;
	border: 1px solid #e7e7e7;
	border-radius: 4px;
	padding: 1rem;
	margin: 1rem 0;
}
.smrt-choice legend {
	width: 100%;
	padding: 0 .5rem;
	background: #fff;
	border-radius: 4px;
}
.smrt-choice label {
	display: block;
	padding: .35rem 0;
	cursor: pointer;
}

/* Promo */
.smrt-promo {
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	background: #fafafa;
	border-radius: 4px;
	border: 1px solid #e7e7e7;
}

/* Auth form layout */
.smrt-auth-form { max-width: 480px; }

/* Danksagungsansicht nach Submit */
.smrt-thanks {
	text-align: center;
	padding: 3rem 1rem;
	max-width: 720px;
	margin: 0 auto;
}
.smrt-thanks-icon {
	width: 72px;
	height: 72px;
	color: #ffcb07;
	display: inline-block;
}
.smrt-thanks h2 {
	margin: 1rem 0 .5rem;
	font-size: 1.75rem;
}
.smrt-thanks p {
	margin: .25rem 0;
	color: #555;
}
.smrt-thanks .smrt-promo {
	text-align: left;
	margin: 2rem 0;
}
.smrt-thanks-actions {
	margin-top: 2rem;
}
.smrt-notice {
	padding: .75rem 1rem;
	border-radius: 4px;
	margin: 1rem 0;
}
.smrt-notice-info {
	background: #e7f3fe;
	border: 1px solid #b8daff;
	color: #004085;
}

/* Block-widget horizontal variant (footer) */
.smrt-widget.smrt-widget-horizontal {
	max-width: none;
	display: grid;
	grid-template-columns: 1fr 2fr auto;
	gap: 2rem;
	align-items: center;
}
.smrt-widget.smrt-widget-horizontal .smrt-widget-actions {
	flex-direction: row;
	margin-top: 0;
}
@media (max-width: 768px) {
	.smrt-widget.smrt-widget-horizontal {
		grid-template-columns: 1fr;
	}
	.smrt-widget.smrt-widget-horizontal .smrt-widget-actions { flex-direction: column; }
}
