/*
 * Mẫu "Đại Thành (dropdown)": bộ chọn combo theo style trang sản phẩm daithanhmiennam.vn (theme tbay_store).
 * Load sau cpw-frontend.css, chỉ khi bộ chọn dùng mẫu daithanh. Đổi màu nhanh bằng các biến ở khối đầu.
 */

.web366-cpw-selector--preset-daithanh {
	--web366-cpw-accent: #e25700;
	--web366-cpw-price: #d9381e;
	--web366-cpw-text: #1e293b;
	--web366-cpw-muted: #64748b;
	--web366-cpw-old: #8c8c8c;
	--web366-cpw-border: #cbd5e1;
	--web366-cpw-line: #e2e8f0;
	--web366-cpw-soft: #f8fafc;
	--web366-cpw-radius: 6px;
	--web366-cpw-control-height: 44px;

	color: var(--web366-cpw-text);
}

/* Danh sách thành phần: một khung, các thành phần ngăn bằng đường kẻ mảnh. */

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__components {
	margin: 0 0 16px;
	padding: 0 16px;
	border: 1px solid var(--web366-cpw-line);
	border-radius: var(--web366-cpw-radius);
	background: #fff;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--web366-cpw-line);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component:last-child {
	border-bottom: 0;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component-head {
	margin: 0 0 10px;
	line-height: 1.4;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component-name {
	color: var(--web366-cpw-text);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.web366-cpw-selector--preset-daithanh a.web366-cpw-selector__component-name:hover {
	color: var(--web366-cpw-accent);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component-rule {
	color: var(--web366-cpw-muted);
	font-size: 13px;
	opacity: 1;
}

/* Dòng lựa chọn: dropdown + số lượng + giá. */

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line {
	gap: 10px;
	margin: 0 0 10px;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line select.web366-cpw-selector__item {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	flex: 1 1 240px;
	max-width: none;
	height: var(--web366-cpw-control-height);
	margin: 0;
	padding: 0 40px 0 14px;
	border: 1px solid var(--web366-cpw-border);
	border-radius: var(--web366-cpw-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	box-shadow: none;
	color: var(--web366-cpw-text);
	font-size: 14px;
	line-height: normal;
	cursor: pointer;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line input.web366-cpw-selector__qty {
	width: 72px;
	max-width: 72px;
	height: var(--web366-cpw-control-height);
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--web366-cpw-border);
	border-radius: var(--web366-cpw-radius);
	background: #fff;
	box-shadow: none;
	color: var(--web366-cpw-text);
	font-size: 15px;
	font-weight: 600;
	line-height: normal;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line select.web366-cpw-selector__item:hover,
.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line input.web366-cpw-selector__qty:hover {
	border-color: #94a3b8;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line select.web366-cpw-selector__item:focus,
.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line input.web366-cpw-selector__qty:focus {
	border-color: var(--web366-cpw-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(226, 87, 0, 0.15);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__item-label {
	flex: 1 1 240px;
	max-width: none;
	font-size: 14px;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line-price {
	min-width: 110px;
	color: var(--web366-cpw-price);
	font-size: 15px;
	font-weight: 700;
	text-align: right;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line-price del {
	display: block;
	color: var(--web366-cpw-old);
	font-size: 13px;
	font-weight: 400;
	opacity: 1;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line-price ins {
	color: var(--web366-cpw-price);
	font-weight: 700;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__remove-line {
	color: var(--web366-cpw-muted);
	opacity: 1;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__remove-line:hover {
	color: var(--web366-cpw-price);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__add-line {
	color: var(--web366-cpw-accent);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__add-line:hover {
	text-decoration: underline;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component.is-invalid select,
.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component.is-invalid input.web366-cpw-selector__qty {
	border-color: var(--web366-cpw-price);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__component-error,
.web366-cpw-selector--preset-daithanh .web366-cpw-selector__notice {
	color: var(--web366-cpw-price);
	font-size: 13px;
}

/* Quà tặng. */

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__gifts {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid #faece2;
	border-radius: var(--web366-cpw-radius);
	background: #fdfaf6;
	font-size: 14px;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__gifts-title {
	font-weight: 700;
}

/* Tóm tắt giá: giống khung giá trang sản phẩm (nền nhạt, viền trái cam). */

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__summary {
	margin: 0 0 20px;
	padding: 12px 20px;
	border: 1px solid var(--web366-cpw-line);
	border-left: 4px solid var(--web366-cpw-accent);
	border-radius: var(--web366-cpw-radius);
	background: var(--web366-cpw-soft);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__summary-row {
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--web366-cpw-muted);
	font-size: 14px;
	line-height: 1.6;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__regular {
	color: var(--web366-cpw-old);
	font-size: 15px;
	opacity: 1;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__price,
.web366-cpw-selector--preset-daithanh .web366-cpw-selector__total-price {
	color: var(--web366-cpw-price);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__total-price {
	font-size: 18px;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__save {
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__editing {
	border-inline-start: 4px solid var(--web366-cpw-accent);
	border-radius: var(--web366-cpw-radius);
	background: var(--web366-cpw-soft);
}

/* Điện thoại: dropdown chiếm cả dòng, số lượng và giá xuống dòng dưới. */

@media (max-width: 575px) {
	.web366-cpw-selector--preset-daithanh .web366-cpw-selector__components {
		padding: 0 12px;
	}

	.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line select.web366-cpw-selector__item,
	.web366-cpw-selector--preset-daithanh .web366-cpw-selector__item-label {
		flex-basis: 100%;
	}

	.web366-cpw-selector--preset-daithanh .web366-cpw-selector__line-price {
		flex: 1 1 auto;
	}

	.web366-cpw-selector--preset-daithanh .web366-cpw-selector__summary {
		padding: 12px 14px;
	}
}

/* Nút chọn biến thể (giống swatch trang sản phẩm của theme). */

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__pill {
	min-height: 40px;
	border-color: var(--web366-cpw-border);
	border-radius: var(--web366-cpw-radius);
	color: var(--web366-cpw-text);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__pill.is-active {
	border-color: #0b8fd1;
	background: #0b8fd1;
	color: #fff;
	box-shadow: 0 2px 6px rgba(11, 143, 209, 0.3);
}

.web366-cpw-selector--preset-daithanh .web366-cpw-selector__pill:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(226, 87, 0, 0.15);
}
