/* SuperWP — 尺码表(SHEIN 式 Size Guide) */

/* 商品页按钮:全宽 wrapper 强制左对齐(不受主题居中影响) */
.bob-sg-btnwrap {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	text-align: left !important;
	margin: 0 0 14px;
}
button.bob-sg-open,
.bob-sg-open {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	background: #fff !important;
	border: 1.5px solid #1f1f2e !important;
	border-radius: 999px;
	padding: 8px 18px !important;
	margin: 0 !important;
	min-height: 0 !important;
	color: #1f1f2e !important;
	font-size: 14px !important;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
	line-height: 1.4 !important;
	transition: background 0.15s ease, color 0.15s ease;
}
.bob-sg-open .bob-sg-open-arrow {
	font-size: 17px;
	line-height: 1;
	margin-left: 1px;
	transform: translateY(-1px);
}
.bob-sg-open:hover,
.bob-sg-open:focus-visible {
	background: #1f1f2e !important;
	color: #fff !important;
	opacity: 1;
}

/* 弹窗 */
.bob-sg-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 15, 25, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bob-sg-overlay[hidden] { display: none; }
.bob-sg-modal {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 900px;
	max-height: 88vh;
	overflow-y: auto;
	border-radius: 14px;
	padding: 34px 38px 38px;
	font-family: inherit;
	color: #1f1f2e;
	-webkit-overflow-scrolling: touch;
}
.bob-sg-close {
	position: absolute;
	top: 14px;
	right: 16px;
	border: none !important;
	background: none !important;
	font-size: 26px;
	line-height: 1;
	color: #333 !important;
	cursor: pointer;
	padding: 4px 8px !important;
	min-height: 0 !important;
	box-shadow: none !important;
}
.bob-sg-title {
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 22px;
}

/* Switch to 条 */
.bob-sg-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f5f5f7;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 16px;
	margin-bottom: 22px;
}
.bob-sg-units {
	display: inline-flex;
	background: #fff;
	border: 1px solid #e2e2e8;
	border-radius: 999px;
	padding: 3px;
}
button.bob-sg-unit,
.bob-sg-unit {
	border: none !important;
	background: none !important;
	border-radius: 999px !important;
	padding: 5px 16px !important;
	min-height: 0 !important;
	font-size: 13px !important;
	font-weight: 700;
	color: #555 !important;
	cursor: pointer;
	box-shadow: none !important;
	line-height: 1.2 !important;
}
.bob-sg-unit.is-active {
	background: #1f1f2e !important;
	color: #fff !important;
}

/* Fit Type 标尺 */
.bob-sg-fit {
	display: flex;
	align-items: flex-end;
	gap: 22px;
	padding: 6px 0 18px;
	border-bottom: 1px solid #ececf0;
	margin-bottom: 20px;
}
.bob-sg-fit > strong { font-size: 17px; white-space: nowrap; }
.bob-sg-fit-scale { flex: 1; }
.bob-sg-fit-labels {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #333;
	margin-bottom: 8px;
}
.bob-sg-fit-track {
	position: relative;
	display: flex;
	gap: 4px;
	height: 4px;
}
.bob-sg-fit-track i {
	flex: 1;
	background: #e3e3e8;
	border-radius: 2px;
}
.bob-sg-fit-marker {
	position: absolute;
	top: -3px;
	width: 36px;
	height: 10px;
	margin-left: -18px;
	background: #1f1f2e;
	border-radius: 3px;
}

/* Tabs */
.bob-sg-tabs {
	display: flex;
	gap: 34px;
	margin-bottom: 16px;
}
button.bob-sg-tab,
.bob-sg-tab {
	border: none !important;
	background: none !important;
	padding: 0 0 6px !important;
	min-height: 0 !important;
	font-size: 19px !important;
	font-weight: 800;
	color: #9a9aa5 !important;
	cursor: pointer;
	border-bottom: 3px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	line-height: 1.3 !important;
}
.bob-sg-tab.is-active {
	color: #1f1f2e !important;
	border-bottom-color: #1f1f2e !important;
}

/* 表格 */
.bob-sg-tablewrap {
	overflow-x: auto;
	border: 1px solid #e8e8ee;
	border-radius: 4px;
}
.bob-sg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	min-width: 560px;
	margin: 0 !important;
}
.bob-sg-table th,
.bob-sg-table td {
	border: 1px solid #e8e8ee !important;
	padding: 15px 12px !important;
	text-align: center;
	white-space: nowrap;
	background: #fff;
}
.bob-sg-table th {
	font-weight: 700;
	background: #f7f7f9 !important;
}
.bob-sg-table td.bob-sg-first {
	font-weight: 700;
	background: #f7f7f9 !important;
}
.bob-sg-note {
	color: #9a9aa5;
	font-size: 13px;
	margin: 12px 0 0;
	line-height: 1.5;
}

/* 测量说明 */
.bob-sg-howto {
	border-top: 1px solid #ececf0;
	margin-top: 22px;
	padding-top: 18px;
}
.bob-sg-howto h3 { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.bob-sg-howto-cols {
	display: flex;
	gap: 26px;
	align-items: flex-start;
}
.bob-sg-howto-list { flex: 1; min-width: 0; }
.bob-sg-h-item {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}
.bob-sg-h-num {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1f1f2e;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}
.bob-sg-h-item strong { font-size: 15px; display: block; margin-bottom: 3px; }
.bob-sg-h-item p { margin: 0; color: #555; font-size: 13.5px; line-height: 1.55; }
.bob-sg-howto-img { flex: 0 0 240px; }
.bob-sg-howto-img svg,
.bob-sg-howto-img img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* 买家试穿反馈 */
.bob-sg-buyers {
	border-top: 1px solid #ececf0;
	margin-top: 24px;
	padding-top: 20px;
}
.bob-sg-buyers h3 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.bob-sg-fitstats {
	display: flex;
	gap: 34px;
	font-size: 15px;
	flex-wrap: wrap;
}
.bob-sg-fitstats .is-main {
	border-bottom: 3px solid #1f1f2e;
	padding-bottom: 3px;
}
.bob-sg-buyers .bob-sg-tablewrap { margin-top: 14px; }

@media (max-width: 640px) {
	.bob-sg-modal { padding: 24px 16px 26px; max-height: 92vh; }
	.bob-sg-howto-cols { flex-direction: column; }
	.bob-sg-howto-img { flex: none; max-width: 240px; align-self: center; }
	.bob-sg-fit { flex-direction: column; align-items: stretch; gap: 8px; }
	.bob-sg-tabs { gap: 22px; }
	.bob-sg-tab { font-size: 16px !important; }
}
