/* ==========================================================================
   IGIT Related Posts – Meta Box Styles
   ========================================================================== */

/* ── Meta box title: normalize for both classic editor and block editor ──── *
 * In Gutenberg, classic side meta boxes keep .postbox-header h2.hndle but   *
 * WP core's normalization (13 px) doesn't always reach the sidebar context.  *
 * Use #igit-rpwt-meta to scope these overrides tightly.                      */
#igit-rpwt-meta .postbox-header h2,
#igit-rpwt-meta h2.hndle {
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	padding: 8px 12px !important;
	margin: 0 !important;
	color: #1d2327 !important;
	white-space: normal;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.igit-rpwt-metabox {
	font-size: 13px;
	color: #1d2327;
	line-height: 1.5;
}

/* ── Each field row ──────────────────────────────────────────────────────── */
.igit-rpwt-meta-row {
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.igit-rpwt-meta-row:last-child {
	margin-bottom: 0;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */
.igit-rpwt-meta-row > label,
.igit-rpwt-meta-row > label[for] {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #1d2327 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

/* ── Disable toggle row ──────────────────────────────────────────────────── */
.igit-rpwt-meta-row--toggle > label {
	display: flex !important;
	align-items: center;
	gap: 8px;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1d2327 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	padding: 6px 0;
}

.igit-rpwt-meta-row--toggle input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #2271b1;
	cursor: pointer;
	flex-shrink: 0;
}

/* ── Inputs, selects ─────────────────────────────────────────────────────── */
.igit-rpwt-meta-row input[type="number"],
.igit-rpwt-meta-row input[type="text"],
.igit-rpwt-meta-row select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 13px;
	color: #1d2327;
}

.igit-rpwt-meta-row input[type="number"] {
	width: 72px;
}

/* ── Helper text ─────────────────────────────────────────────────────────── */
.igit-rpwt-meta-row .description {
	font-size: 11px;
	color: #646970;
	font-style: italic;
	margin: 0;
	line-height: 1.4;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.igit-rpwt-meta-divider {
	border: none;
	border-top: 1px solid #dcdcde;
	margin: 8px 0 12px;
}

/* ── Hint text above fields ──────────────────────────────────────────────── */
.igit-rpwt-meta-desc {
	color: #646970;
	font-size: 11px;
	margin: 0 0 12px;
	font-style: italic;
	line-height: 1.4;
}

