/**
 * Slotify Service Editor – card layout, sliders, summary.
 * Used only on slotify_service edit (post.php / post-new.php).
 */

.slotify-service-editor {
	max-width: 560px;
	margin: 0 0 1rem;
}

/* ---- Cards ---- */
.slotify-service-editor__card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin-bottom: 1rem;
	overflow: hidden;
}

.slotify-service-editor__card:last-child {
	margin-bottom: 0;
}

.slotify-service-editor__card-header {
	padding: 0.65rem 1rem;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.slotify-service-editor__card-body {
	padding: 1rem;
}

/* ---- Row: label + control ---- */
.slotify-service-editor__row {
	margin-bottom: 1rem;
}

.slotify-service-editor__row:last-child {
	margin-bottom: 0;
}

.slotify-service-editor__row label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
	margin-bottom: 0.35rem;
}

.slotify-service-editor__helper {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 0.35rem;
	line-height: 1.4;
}

/* ---- Slider + number pair ---- */
.slotify-service-editor__slider-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.slotify-service-editor__slider-wrap {
	flex: 1;
	min-width: 140px;
	max-width: 280px;
}

.slotify-service-editor__slider-wrap input[type="range"] {
	width: 100%;
	height: 6px;
}

.slotify-service-editor__number-wrap {
	width: 80px;
}

.slotify-service-editor__number-wrap input[type="number"] {
	width: 100%;
	padding: 6px 8px;
	font-size: 14px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
}

.slotify-service-editor__number-wrap input[type="number"]:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.slotify-service-editor__suffix {
	font-size: 12px;
	color: #646970;
	margin-left: 0.25rem;
}

/* ---- Summary panel ---- */
.slotify-service-editor__summary {
	background: linear-gradient(135deg, #f0f6fc 0%, #e8f0f8 100%);
	border: 1px solid #c5d9ed;
	border-radius: 4px;
	padding: 1rem 1.25rem;
	margin-top: 0.5rem;
}

.slotify-service-editor__summary-title {
	font-weight: 600;
	font-size: 12px;
	color: #1d2327;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.slotify-service-editor__summary-rows {
	display: grid;
	gap: 0.35rem;
	font-size: 13px;
	color: #50575e;
}

.slotify-service-editor__summary-total {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid #c5d9ed;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}

.slotify-service-editor__summary-total .slotify-service-editor__badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.2em 0.5em;
	font-size: 12px;
	background: #2271b1;
	color: #fff;
	border-radius: 4px;
}

.slotify-service-editor__summary-example {
	margin-top: 0.75rem;
	font-size: 12px;
	color: #646970;
	font-style: italic;
	line-height: 1.4;
}

/* ---- Color picker ---- */
.slotify-service-editor__color-row-wrap .slotify-service-editor__color-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0;
}

.slotify-service-editor__color-row-wrap .slotify-service-editor__helper {
	display: block;
	width: 100%;
	margin: 0.5rem 0 0;
	padding: 0;
}

.slotify-service-editor__color-row input[type="color"] {
	width: 64px;
	height: 48px;
	min-width: 64px;
	min-height: 48px;
	padding: 2px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	cursor: pointer;
	background: #fff;
}

.slotify-service-editor__color-row input[type="text"] {
	width: 100px;
	padding: 6px 8px;
	font-size: 13px;
	font-family: monospace;
	border: 1px solid #8c8f94;
	border-radius: 4px;
}

.slotify-service-editor__color-row input[type="text"]:focus {
	border-color: #2271b1;
	outline: none;
}

/* ---- Responsive ---- */
@media screen and (max-width: 782px) {
	.slotify-service-editor__slider-row {
		flex-direction: column;
		align-items: stretch;
	}
	.slotify-service-editor__slider-wrap {
		max-width: none;
	}
	.slotify-service-editor__number-wrap {
		width: 100%;
		max-width: 120px;
	}
}
