/* Beauty Diagnosis Widget - Compact sidebar style */
.bdw-widget {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.bdw-widget * {
	box-sizing: border-box;
}

.bdw-step {
	display: none;
	padding: 12px 10px;
}

.bdw-step.active {
	display: block;
}

.bdw-question {
	font-weight: 600;
	font-size: 13px;
	margin: 0 0 10px;
	color: #2c3e50;
	text-align: center;
}

.bdw-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.bdw-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 10px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 12px;
	line-height: 1.4;
}

.bdw-option:hover {
	background: #f0f7ff;
	border-color: #a8c7e8;
}

.bdw-option input[type="radio"] {
	margin-top: 2px;
	accent-color: #5b9bd5;
	flex-shrink: 0;
}

.bdw-option input:checked + span {
	font-weight: 600;
	color: #2c5aa0;
}

.bdw-option:has(input:checked) {
	background: #e8f2fc;
	border-color: #5b9bd5;
}

.bdw-btn {
	display: block;
	width: 100%;
	padding: 9px 12px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
}

.bdw-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.bdw-next {
	background: linear-gradient(135deg, #5b9bd5, #4a8ac4);
	color: #fff;
}

.bdw-next:hover:not(:disabled) {
	background: linear-gradient(135deg, #4a8ac4, #3a7ab4);
}

.bdw-prev {
	background: #e9ecef;
	color: #495057;
	margin-bottom: 6px;
}

.bdw-prev:hover {
	background: #dee2e6;
}

.bdw-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bdw-result-title {
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	margin: 0 0 10px;
	color: #2c5aa0;
}

.bdw-results {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.bdw-results li {
	margin-bottom: 8px;
	padding: 10px;
	background: linear-gradient(135deg, #f0f7ff, #e8f2fc);
	border: 1px solid #c5d9f0;
	border-radius: 6px;
}

.bdw-results a {
	color: #2c5aa0;
	font-weight: 600;
	text-decoration: none;
	font-size: 13px;
	display: block;
}

.bdw-results a:hover {
	text-decoration: underline;
	color: #1a4a8a;
}

.bdw-results .bdw-desc {
	display: block;
	font-size: 11px;
	color: #666;
	margin-top: 3px;
	font-weight: 400;
}

.bdw-disclaimer {
	font-size: 10px;
	color: #888;
	line-height: 1.45;
	margin: 0 0 10px;
	padding: 8px;
	background: #fff8f0;
	border: 1px solid #f0e0c0;
	border-radius: 4px;
}

.bdw-restart {
	background: #6c757d;
	color: #fff;
}

.bdw-restart:hover {
	background: #5a6268;
}

/* Mobile friendly */
@media (max-width: 480px) {
	.bdw-widget {
		font-size: 12px;
	}
	.bdw-option {
		padding: 7px 8px;
	}
}
