.ps-prefs-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.ps-prefs-header {
	margin-bottom: 36px;
}

.ps-prefs-eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: #063978;
	opacity: 0.55;
	margin: 0 0 8px;
}

.ps-prefs-title {
	font-size: 26px;
	font-weight: 700;
	color: #063978;
	margin: 0 0 10px;
	line-height: 1.25;
}

.ps-prefs-subtitle {
	font-size: 14px;
	color: #666;
	margin: 0;
	line-height: 1.6;
	max-width: 520px;
}

.ps-prefs-section {
	background: #fff;
	border: 1px solid rgba(6, 57, 120, 0.1);
	border-radius: 14px;
	padding: 28px 28px 24px;
	margin-bottom: 20px;
	box-shadow: 0 2px 12px rgba(6, 57, 120, 0.04);
}

.ps-prefs-section-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(6, 57, 120, 0.08);
}

.ps-prefs-section-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(6, 57, 120, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 2px;
}

.ps-prefs-section-title {
	font-size: 16px;
	font-weight: 700;
	color: #063978;
	margin: 0 0 4px;
}

.ps-prefs-section-desc {
	font-size: 13px;
	color: #888;
	margin: 0;
	line-height: 1.5;
}

.ps-prefs-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(6, 57, 120, 0.05);
}

.ps-prefs-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ps-prefs-row:first-child {
	padding-top: 0;
}

.ps-prefs-row-info {
	flex: 1;
}

.ps-prefs-row-label {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 0 0 3px;
}

.ps-prefs-row-hint {
	font-size: 12px;
	color: #999;
	margin: 0;
	line-height: 1.5;
}

.ps-prefs-toggle-wrap {
	flex-shrink: 0;
	margin-top: 2px;
}

.ps-prefs-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.ps-prefs-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.ps-prefs-toggle-slider {
	position: absolute;
	inset: 0;
	background: #ddd;
	border-radius: 24px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ps-prefs-toggle-slider::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.ps-prefs-toggle input:checked + .ps-prefs-toggle-slider {
	background: #063978;
}

.ps-prefs-toggle input:checked + .ps-prefs-toggle-slider::before {
	transform: translateX(20px);
}

.ps-prefs-toggle input:focus-visible + .ps-prefs-toggle-slider {
	outline: 2px solid #063978;
	outline-offset: 2px;
}

.ps-prefs-freq-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.ps-prefs-freq-btn {
	padding: 8px 16px;
	border: 1.5px solid rgba(6, 57, 120, 0.2);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #555;
	background: #fff;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ps-prefs-freq-btn:hover {
	border-color: rgba(6, 57, 120, 0.4);
	color: #063978;
}

.ps-prefs-freq-btn.active {
	background: #063978;
	border-color: #063978;
	color: #fff;
}

.ps-prefs-freq-btn.active:hover {
	background: #052f63;
}

.ps-prefs-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
}

.ps-prefs-save-btn {
	background: #063978;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ps-prefs-save-btn:hover {
	background: #052f63;
}

.ps-prefs-save-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ps-prefs-saved-msg {
	font-size: 13px;
	color: #2e7d32;
	font-weight: 500;
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ps-prefs-saved-msg.visible {
	opacity: 1;
}

.ps-prefs-placeholder-section {
	background: rgba(6, 57, 120, 0.02);
	border: 1.5px dashed rgba(6, 57, 120, 0.12);
	border-radius: 14px;
	padding: 24px 28px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.ps-prefs-placeholder-icon {
	font-size: 22px;
	opacity: 0.3;
	flex-shrink: 0;
}

.ps-prefs-placeholder-text {
	font-size: 13px;
	color: #aaa;
	margin: 0;
	line-height: 1.5;
}

.ps-prefs-placeholder-text strong {
	display: block;
	color: #bbb;
	margin-bottom: 2px;
	font-size: 14px;
}

.ps-prefs-no-journey-notice {
	background: #f2f6fc;
	border: 1px solid rgba(6, 57, 120, 0.12);
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 13px;
	color: #666;
	margin-bottom: 24px;
	line-height: 1.55;
}

.ps-prefs-no-journey-notice a {
	color: #063978;
	font-weight: 600;
}

@media ( max-width: 600px ) {
	.ps-prefs-section {
		padding: 22px 18px 18px;
	}

	.ps-prefs-section-header {
		flex-direction: column;
		gap: 10px;
	}

	.ps-prefs-row {
		flex-direction: column;
		gap: 12px;
	}

	.ps-prefs-freq-group {
		flex-direction: column;
	}

	.ps-prefs-freq-btn {
		width: 100%;
		text-align: center;
	}
}
