/**
 * Password Protect Master — Metabox Styles
 *
 * @package PasswordProtectMaster
 */

.ppmstr-metabox {
	padding: 4px 0;
}

.ppmstr-metabox-field {
	margin-bottom: 14px;
}

.ppmstr-metabox-field:last-child {
	margin-bottom: 0;
}

.ppmstr-metabox .ppmstr-toggle-wrap {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.ppmstr-metabox .ppmstr-toggle-wrap input[type="checkbox"] {
	display: none;
}

.ppmstr-metabox .ppmstr-toggle-slider {
	width: 40px;
	height: 22px;
	background: #CED4DA;
	border-radius: 11px;
	position: relative;
	transition: all 0.25s ease;
}

.ppmstr-metabox .ppmstr-toggle-slider::after {
	content: '';
	width: 16px;
	height: 16px;
	background: #FFFFFF;
	border-radius: 50%;
	position: absolute;
	top: 3px;
	left: 3px;
	transition: all 0.25s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ppmstr-metabox .ppmstr-toggle-wrap input:checked + .ppmstr-toggle-slider {
	background: #6C5CE7;
}

.ppmstr-metabox .ppmstr-toggle-wrap input:checked + .ppmstr-toggle-slider::after {
	transform: translateX(18px);
}

.ppmstr-metabox .ppmstr-toggle-label {
	font-size: 13px;
	font-weight: 600;
	color: #1A1A2E;
}

.ppmstr-password-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1A1A2E;
}

.ppmstr-metabox .ppmstr-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.ppmstr-metabox .ppmstr-input-group input {
	width: 100%;
	padding: 8px 36px 8px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 13px;
	box-sizing: border-box;
}

.ppmstr-metabox .ppmstr-input-group input:focus {
	border-color: #6C5CE7;
	box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.12);
	outline: none;
}

.ppmstr-metabox .ppmstr-toggle-visibility {
	position: absolute;
	right: 6px;
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	padding: 2px;
	display: flex;
	line-height: 1;
}

.ppmstr-metabox .ppmstr-toggle-visibility:hover {
	color: #6C5CE7;
}

/* ===== Divider ===== */
.ppmstr-metabox-divider {
	height: 1px;
	background: #E4E6EF;
	margin: 14px 0;
}

/* ===== Collapsible Sections ===== */
.ppmstr-metabox-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 6px 0;
	user-select: none;
}

.ppmstr-metabox-section-header strong {
	font-size: 12.5px;
	color: #1A1A2E;
	letter-spacing: 0.3px;
}

.ppmstr-section-arrow {
	color: #999;
	font-size: 16px;
	transition: transform 0.2s ease;
}

.ppmstr-metabox-section.ppmstr-collapsed .ppmstr-section-arrow {
	transform: rotate(-90deg);
}

.ppmstr-metabox-section.ppmstr-collapsed .ppmstr-metabox-section-body {
	display: none;
}

.ppmstr-metabox-section-body {
	padding-top: 8px;
}

/* ===== Hints ===== */
.ppmstr-metabox-hint {
	font-size: 11.5px;
	color: #6C7293;
	margin: 0 0 6px;
	line-height: 1.4;
}

/* ===== Roles Checkboxes ===== */
.ppmstr-metabox-roles {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ppmstr-metabox-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #1A1A2E;
	cursor: pointer;
}

.ppmstr-metabox-checkbox input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: #6C5CE7;
	margin: 0;
}

/* ===== User Multi-select ===== */
.ppmstr-metabox-select {
	width: 100%;
	min-height: 70px;
	max-height: 120px;
	padding: 4px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 12px;
	box-sizing: border-box;
}

.ppmstr-metabox-select:focus {
	border-color: #6C5CE7;
	box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.12);
	outline: none;
}

/* ===== Datetime inputs ===== */
.ppmstr-metabox input[type="datetime-local"] {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 12.5px;
	box-sizing: border-box;
}

.ppmstr-metabox input[type="datetime-local"]:focus {
	border-color: #6C5CE7;
	box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.12);
	outline: none;
}

.ppmstr-metabox-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #1A1A2E;
}
