:root {
	--primary: #f08a5d;
	--primary-dark: #e67e22;
	--primary-light: #fad7a0;
	--secondary: #f9b384;
	--accent: #ffbe76;
	--dark: #2d3436;
	--light: #ffffff;
	--gray: #636e72;
	--gray-light: #f8f8f8;
}

.was-validated .custom-control-input:valid~.custom-control-label::before {
	background-color: #fff;
}

.bootstrap-select.is-valid .dropdown-toggle,
.was-validated .bootstrap-select select:valid+.dropdown-toggle {
	border-color: var(--primary) !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
	display: block;
	width: 100%;
	padding: 0.47rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	padding-right: 24px;
}

.cycle-select-discount {
	position: absolute;
	top: -10px;
	right: 0;
	display: inline-block;
	padding: 0px 5px;
	height: 15px;
	background: #F70302;
	border-radius: 5px 5px 5px 0px;
	color: #ffffff;
	font-size: 12px;
	text-align: center;
	line-height: 15px;
}

.error-tip {
	color: #f46a6a;
	margin: 0;
	padding: 0;
	line-height: 36px;
	display: none;
}

input::-webkit-input-placeholder {
	color: #cacdd4 !important;
}
input:-moz-placeholder {
	color: #cacdd4 !important;
}
input::-moz-placeholder {
	color: #cacdd4 !important;
}
input:-ms-input-placeholder {
	color: #cacdd4 !important;
}

.btn-custom {
	min-width: 72px;
	height: 28px;
	border: #F0F0F0 1px solid;
	border-radius: 4px;
	line-height: 11px;
}

.btn-primary,
.btn-custom-group .active {
	background-color: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.btn-primary:hover,
.btn-custom-group .active:hover {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}

input[type='range'] {
	background: var(--primary) !important;
	outline: none;
	-webkit-appearance: none;
	height: 4px;
	border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 10px;
	height: 23px;
	background-color: #fff;
	cursor: pointer;
	border: 4px solid var(--primary);
	border-top-width: 5px;
	border-bottom-width: 5px;
	border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
	-webkit-appearance: none;
	width: 2px;
	height: 15px;
	background-color: #fff;
	cursor: pointer;
	border: 4px solid var(--primary);
	border-top-width: 5px;
	border-bottom-width: 5px;
	border-radius: 2px;
}

.range_none {
	position: absolute;
	height: 3px;
	display: block;
	background: #DEDEDE;
	cursor: not-allowed;
}

.form-check {
	margin-left: 20px;
}

.justify-content-start {
	flex-wrap: wrap;
}

@media (max-width: 992px) {
	.footer {
		z-index: 1;
		display: none !important;
	}
}

.summary-card {
	background-color: #fff !important;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-card .card-header {
	background-color: var(--primary) !important;
	border: none !important;
	border-radius: 10px 10px 0 0 !important;
	padding: 15px 20px !important;
	position: relative;
	overflow: hidden;
	height: 56px;
	display: flex;
	align-items: center;
}

.summary-card .card-header h4.card-title {
	color: #ffffff !important;
	font-weight: 600 !important;
	margin: 0 !important;
	line-height: 1;
	flex: 1;
}

.summary-drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 85%;
	height: 100%;
	background-color: #fff;
	z-index: 1050;
	transition: right 0.3s ease;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
	padding-bottom: 80px;
}

.summary-drawer.open {
	right: 0;
}

.drawer-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1040;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
	opacity: 1;
	visibility: visible;
}

.drawer-toggle {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 80px;
	border-radius: 8px 0 0 8px;
	background-color: var(--primary);
	color: white;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: -2px 0 10px rgba(240, 138, 93, 0.3);
	z-index: 1030;
	border: none;
	padding: 0;
	transition: all 0.3s ease;
}

.drawer-toggle::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-left: 2px solid white;
	border-bottom: 2px solid white;
	transform: translate(-30%, -50%) rotate(45deg);
}

.drawer-close {
	position: absolute;
	top: 50%;
	right: 20px;
	width: 32px;
	height: 32px;
	transform: translateY(-50%);
	border-radius: 4px;
	background-color: transparent;
	border: none;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.drawer-close:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.drawer-close:focus {
	outline: none;
}

.container.mobile-submit-btn {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: white;
	padding: 15px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1020;
	display: none;
}

@media (max-width: 991px) {
	.col-xl-4 .summary-card {
		display: none;
	}
	.drawer-toggle {
		display: flex;
	}
	.container.mobile-submit-btn {
		display: block;
	}
	body {
		padding-bottom: 80px;
	}
}

.btn-primary {
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
}

.text-primary {
	color: var(--primary) !important;
}

.recommended-tag {
	background-color: var(--primary);
	color: white;
	font-size: 10px;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 10px;
	margin-left: 8px;
	box-shadow: 0 2px 5px rgba(240, 138, 93, 0.3);
}

.configureproduct {
	position: relative;
	transition: all 0.3s ease;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 15px;
}

.custom-control-input:focus ~ .custom-control-label::before {
	box-shadow: 0 0 0 0.2rem rgba(240, 138, 93, 0.25);
}

.form-check-input:checked {
	background-color: var(--primary);
	border-color: var(--primary);
}

.btn-group-toggle .btn.active::before,
.btn-custom.active::before,
.btn-custom-group .active::before {
	content: '✓';
	position: absolute;
	top: -10px;
	right: -10px;
	width: 24px;
	height: 24px;
	background-color: #2ecc71;
	color: white;
	border-radius: 50%;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	border: 2px solid white;
	animation: pulse-check 2s infinite;
	z-index: 10;
}

.custom-control-input:checked ~ .custom-control-label::before {
	background-color: var(--primary);
	border-color: var(--primary);
}

.custom-control-label {
	position: relative;
	padding-left: 10px;
	transition: all 0.3s ease;
}

.custom-control-input:checked ~ .custom-control-label {
	color: var(--primary-dark);
	font-weight: 600;
}

.btn-group-toggle .btn::after,
.btn-custom::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.btn-group-toggle .btn:hover::after,
.btn-custom:hover::after {
	transform: translateX(100%);
}

@keyframes pulse-check {
	0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.configureproduct.active-option {
	background-color: rgba(240, 138, 93, 0.05);
	border-radius: 10px;
	padding: 15px;
	margin: -5px;
	margin-bottom: 10px;
	box-shadow: 0 0 0 2px rgba(240, 138, 93, 0.2);
}

.configureproduct.active-option::after {
	content: '已选择';
	position: absolute;
	right: 10px;
	top: 10px;
	background-color: rgba(46, 204, 113, 0.1);
	color: #2ecc71;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.btn-group-toggle .btn,
.btn-custom {
	position: relative;
	padding: 8px 16px;
	font-size: 0.9rem;
	border-radius: 8px;
	margin-right: 8px;
	margin-bottom: 8px;
	border: 1px solid rgba(240, 138, 93, 0.2);
	background-color: #fff;
	color: var(--primary);
	transition: all 0.3s ease;
	overflow: hidden;
}

.btn-group-toggle .btn:hover,
.btn-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(240, 138, 93, 0.15);
	border-color: var(--primary);
	background-color: rgba(240, 138, 93, 0.05);
}

.btn-group-toggle .btn.active,
.btn-custom.active,
.btn-custom-group .active {
	background-color: var(--primary);
	border-color: var(--primary);
	color: #fff !important;
	font-weight: 600;
	box-shadow: 0 4px 8px rgba(240, 138, 93, 0.25);
}

.card-header h4.card-title,
.summary-card .card-header h4.card-title,
.btn-primary,
.btn-group-toggle .btn.active,
.btn-custom.active {
	color: #fff !important;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
	background-color: var(--primary);
	border-color: var(--primary);
}

.custom-control-label::before {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(240, 138, 93, 0.3);
	transition: all 0.3s ease;
}

.custom-control-label::after {
	width: 20px;
	height: 20px;
}

.custom-control-input:checked ~ .custom-control-label::before {
	transform: scale(1.1);
}

@keyframes button-pop {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

.btn-group-toggle .btn.active,
.btn-custom.active {
	animation: button-pop 0.3s ease-out;
}

.drawer-close,
.drawer-toggle,
.mobile-submit-btn .btn {
	color: #fff !important;
}

[class*="btn-primary"],
[class*="bg-primary"],
.card-header,
.summary-card .card-header,
.drawer-toggle,
.drawer-close,
.mobile-submit-btn .btn {
	color: #fff !important;
}

.nav-tabs .nav-link.active {
	background-color: var(--primary);
	color: #fff !important;
	border-color: var(--primary);
}

.tab-content {
	border-top: 2px solid var(--primary);
}

.configureproduct.active-option::after {
	background-color: var(--primary);
	color: #fff;
}
