/*
 * reCAPTCHA Addon — Admin Settings Styles
 *
 * Scoped to the reCAPTCHA tab on the Polanger Settings page.
 *
 * @package Polanger_Dashboard_Tools
 */

/* ── Layout ─────────────────────────────────────────────────────────────── */

.pdt-rc-section {
	margin-bottom: 28px;
}

.pdt-rc-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pdt-text-primary, #1e293b);
	margin: 0 0 12px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.pdt-rc-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px 24px;
}

.pdt-rc-card-desc {
	color: #64748b;
	margin: 0 0 18px;
	font-size: 13px;
}

/* ── Option rows ─────────────────────────────────────────────────────────── */

.pdt-rc-option {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
}

.pdt-rc-option:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.pdt-rc-option-content {
	flex: 1;
}

.pdt-rc-option-label {
	display: block;
	font-weight: 500;
	font-size: 13px;
	color: #1e293b;
	margin-bottom: 2px;
}

.pdt-rc-option-desc {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 6px;
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */

.pdt-rc-input {
	width: 100%;
	max-width: 480px;
	padding: 7px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
}

.pdt-rc-number {
	width: 80px;
}

/* ── Radio / checkbox groups ─────────────────────────────────────────────── */

.pdt-rc-radio-group,
.pdt-rc-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.pdt-rc-radio,
.pdt-rc-checkbox-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
}

/* ── Toggle switch ───────────────────────────────────────────────────────── */

.pdt-rc-toggle {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
	margin-top: 1px;
}

.pdt-rc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.pdt-rc-toggle-slider {
	position: absolute;
	inset: 0;
	background: #cbd5e1;
	border-radius: 22px;
	transition: background 0.3s;
	cursor: pointer;
}

.pdt-rc-toggle-slider::before {
	content: "";
	position: absolute;
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
}

.pdt-rc-toggle input:checked + .pdt-rc-toggle-slider {
	background: #6366f1;
}

.pdt-rc-toggle input:checked + .pdt-rc-toggle-slider::before {
	transform: translateX(18px);
}

/* ── Notice boxes ────────────────────────────────────────────────────────── */

.pdt-rc-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 18px;
	font-size: 13px;
	color: #0369a1;
}

.pdt-rc-notice .dashicons {
	flex-shrink: 0;
	margin-top: 1px;
}

.pdt-rc-notice-warn {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

/* ── Submit ──────────────────────────────────────────────────────────────── */

.pdt-rc-submit {
	padding-top: 20px;
}
