/**
 * OpenFields Meta Box Styles
 * 
 * @package OpenFields
 */

.cofld-meta-box {
	padding: 10px 0;
}

.cofld-field {
	margin-bottom: 20px;
}

.cofld-field-label {
	margin-bottom: 8px;
}

.cofld-field-label label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.cofld-field-input {
	width: 100%;
}

.cofld-field-input input[type="text"],
.cofld-field-input input[type="email"],
.cofld-field-input input[type="url"],
.cofld-field-input input[type="number"],
.cofld-field-input textarea,
.cofld-field-input select {
	width: 100%;
	box-sizing: border-box;
}

.cofld-field-description {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
	font-style: italic;
}

/* Switch field styling */
.cofld-switch-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.cofld-switch-input {
	margin: 0;
	width: auto;
	cursor: pointer;
}

.cofld-switch-toggle {
	display: inline-block;
	width: 40px;
	height: 24px;
	border-radius: 12px;
	position: relative;
	transition: background-color 0.3s;
	cursor: pointer;
	background-color: #d1d5db;
}

.cofld-switch-toggle.active {
	background-color: #10b981;
}

.cofld-switch-toggle::after {
	content: '';
	display: inline-block;
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: white;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: all 0.3s;
}

.cofld-switch-toggle.active::after {
	right: 2px;
	left: auto;
}

.cofld-switch-label {
	display: inline-block;
	min-width: 30px;
	cursor: pointer;
}
