/**
 * BookIt for Cal.com — Admin styles.
 *
 * Scoped to .bookit-admin-wrap to avoid leaking into WP core UI.
 */

.bookit-admin-wrap h1 {
	margin-bottom: 24px;
}

.bookit-admin-wrap .form-table th {
	width: 220px;
}

.bookit-admin-wrap #bookit-refresh-status {
	display: inline-block;
	vertical-align: middle;
	font-style: italic;
	color: #3c3c3c;
}

.bookit-admin-wrap #bookit-refresh-status.bookit-success {
	color: #0a7227;
}

.bookit-admin-wrap #bookit-refresh-status.bookit-error {
	color: #cc1818;
}

/* ── Shortcode Helper ─────────────────────────────────────────────────────── */

.bookit-sh-hidden {
	display: none;
}

.bookit-sh-output {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
	padding: 12px 16px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.bookit-sh-code {
	flex: 1;
	font-family: Consolas, 'Courier New', monospace;
	font-size: 13px;
	word-break: break-all;
	white-space: pre-wrap;
	background: transparent;
	padding: 0;
}

#bookit-sh-copy-status {
	font-style: italic;
	color: #0a7227;
	min-width: 80px;
}

#bookit-sh-copy-status.bookit-sh-error {
	color: #cc1818;
}

.bookit-sh-section-heading h3 {
	margin: 8px 0 0;
	padding-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	border-top: 1px solid #e0e0e0;
}

.bookit-sh-padding-row label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 12px;
}

/* ── Reference table ─────────────────────────────────────────────────────── */

.bookit-sh-reference details {
	margin-top: 32px;
}

.bookit-sh-reference summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	padding: 8px 0;
	user-select: none;
}

.bookit-sh-reference table {
	border-collapse: collapse;
	width: 100%;
	margin-top: 12px;
	background: #fff;
}

.bookit-sh-reference th,
.bookit-sh-reference td {
	text-align: left;
	padding: 6px 12px;
	border-bottom: 1px solid #e0e0e0;
	font-size: 13px;
	vertical-align: top;
}

.bookit-sh-reference th {
	background: #f6f7f7;
	font-weight: 600;
}

.bookit-sh-reference code {
	background: #f0f0f1;
	padding: 1px 4px;
	border-radius: 3px;
	font-size: 12px;
}

/* ── Style tab — color control ───────────────────────────────────────────── */

.bookit-color-control {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bookit-color-control .bookit-color-picker {
	width: 36px;
	height: 30px;
	padding: 2px;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	cursor: pointer;
	flex-shrink: 0;
}

.bookit-color-control .bookit-color-text {
	width: 90px;
}

/* ── Style tab — padding row ─────────────────────────────────────────────── */

.bookit-padding-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bookit-padding-row label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ── Style tab — number + unit ───────────────────────────────────────────── */

.bookit-number-unit {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.bookit-number-unit .bookit-unit {
	color: #646970;
	font-size: 12px;
}
