/* Super WooCommerce — 下单定制字段 */

/* 定制按钮(与 Size Guide 同款胶囊;单独出现时自己占一行左对齐) */
.bob-cf-btnwrap {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	text-align: left !important;
	margin: 0 0 14px;
}
button.bob-cf-toggle,
.bob-cf-toggle {
	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-cf-toggle:hover,
.bob-cf-toggle:focus-visible,
.bob-cf-toggle.is-open {
	background: #1f1f2e !important;
	color: #fff !important;
}
.bob-cf-toggle .bob-cf-req { font-style: normal; color: #e05252; margin-left: 1px; }
.bob-cf-toggle.is-open .bob-cf-req { color: #ff9d9d; }
.bob-cf-toggle .bob-cf-caret { font-size: 11px; transition: transform 0.15s ease; transform: translateY(1px); }
.bob-cf-toggle.is-open .bob-cf-caret { transform: rotate(180deg) translateY(1px); }
.bob-cf-toggle .bob-cf-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #2fa36b;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}
@keyframes bobCfShake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-4px); }
	40%, 80% { transform: translateX(4px); }
}
.bob-cf-toggle.bob-cf-shake { animation: bobCfShake 0.4s ease; }

/* 与 Size Guide 按钮并排时的按钮行 */
.bob-btnrow {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* hidden 属性优先于 display:flex/inline-flex */
.bob-cf[hidden],
.bob-cf-dot[hidden] { display: none !important; }

/* 展开动画 */
.bob-cf:not([hidden]) { animation: bobCfSlide 0.22s ease; }
@keyframes bobCfSlide {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.bob-cf {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	flex: 0 0 100%;
	margin: 0 0 18px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e6e4ee;
	border-radius: 12px;
	max-width: 720px;
	box-sizing: border-box;
}
.bob-cf *,
.bob-cf *::before,
.bob-cf *::after {
	box-sizing: border-box;
}
.bob-cf-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bob-cf-label {
	font-weight: 700;
	font-size: 13.5px;
	color: #1f1f2e;
}
.bob-cf-req {
	color: #b32d2e;
}
.bob-cf input[type="text"] {
	width: 100%;
	border: 1px solid #e6e4ee;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
}
.bob-cf input[type="text"]:focus {
	border-color: #1f1f2e;
	outline: none;
	box-shadow: none;
}
.bob-cf-file {
	border: 1.5px dashed #cfcadf;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fcfbfe;
	display: block;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.bob-cf-file:hover {
	border-color: #1f1f2e;
}
.bob-cf-file input[type="file"] {
	border: none;
	background: none;
	padding: 0;
	font-size: 13px;
	width: 100%;
}
.bob-cf-hint {
	color: #75758a;
	font-size: 12px;
}

/* 定制费用徽章 */
.bob-cf-feeb {
	display: inline-block;
	background: #f2eefb;
	color: #6a4caf;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 700;
	margin-left: 6px;
	vertical-align: middle;
}
.bob-cf-feeb .woocommerce-Price-amount { color: inherit !important; font-size: inherit !important; }

/* 即时上传状态(缩略图 + 状态文字 + 移除) */
.bob-cf-upstate {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f8f7fb;
	border: 1px solid #e6e4ee;
	border-radius: 8px;
	padding: 8px 10px;
}
.bob-cf-upstate[hidden] {
	display: none;
}
.bob-cf-upstate img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	display: none;
}
.bob-cf-upmsg {
	flex: 1;
	font-size: 12.5px;
	color: #147a46;
	font-weight: 600;
}
.bob-cf-upremove {
	border: none;
	background: #eceaf2;
	color: #75758a;
	width: 22px;
	height: 22px;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	border-radius: 50%;
	line-height: 1;
	font-size: 14px;
	cursor: pointer;
}
.bob-cf-upremove:hover {
	background: #ddd9e8;
	color: #1f1f2e;
}
