/* Custom Checkout & Upsell — ফ্রন্টএন্ড স্টাইল */

.ccu-upsell-wrap {
	margin: 14px 0;
	padding: 14px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}

.ccu-upsell-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

.ccu-upsell-discount-banner {
	background: #fff7e6;
	border: 1px solid #ffe1a8;
	color: #a5680a;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 7px;
	margin-bottom: 10px;
}

.ccu-upsell-discount-tag {
	flex: 0 0 auto !important;
	background: #16a085;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 10px;
	white-space: nowrap;
}

.ccu-upsell-search-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.ccu-upsell-search-field {
	flex: 1 1 140px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ccu-upsell-search-field label {
	font-size: 11px;
	color: #777;
}

.ccu-upsell-search-field input.ccu-search-input {
	padding: 7px 10px;
	border: 1px solid #e2e2e2;
	border-radius: 7px;
	background: #f7f7f8;
	font-size: 13px;
}

.ccu-upsell-search-field input.ccu-search-input:focus {
	outline: none;
	border-color: #b9b9b9;
	background: #fff;
}

.ccu-upsell-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px;
	max-height: 260px;
	overflow-y: auto;
}

.ccu-upsell-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}

.ccu-upsell-thumb {
	flex: 0 0 32px !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 6px;
	overflow: hidden !important;
	display: block !important;
}

.ccu-upsell-thumb img {
	width: 32px !important;
	height: 32px !important;
	max-width: 32px !important;
	min-width: 32px !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
}

.ccu-upsell-info {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center;
}

.ccu-upsell-name-price {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: baseline !important;
	gap: 6px;
	width: 100%;
}

.ccu-upsell-name {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	font-size: 12px;
	font-weight: 600;
	color: #222;
	text-decoration: none;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ccu-upsell-name:hover {
	color: #555;
}

.ccu-upsell-price {
	flex: 0 0 auto !important;
	font-size: 12px;
	font-weight: 700;
	color: #222;
	white-space: nowrap;
}

.ccu-upsell-price del {
	opacity: 0.6;
	font-weight: 400;
	font-size: 10px;
}

.ccu-upsell-price ins {
	text-decoration: none;
}

.ccu-upsell-sub {
	font-size: 10px;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 1px;
}

.ccu-upsell-add-btn {
	flex: 0 0 26px !important;
	width: 26px !important;
	height: 26px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid #16a085;
	background: #fff;
	color: #16a085;
	cursor: pointer;
	transition: all 0.15s ease;
	padding: 0 !important;
}

.ccu-upsell-add-btn:hover {
	background: #16a085;
	color: #fff;
}

.ccu-upsell-add-btn.ccu-added {
	background: #16a085;
	border-color: #16a085;
	color: #fff;
}

.ccu-upsell-add-btn.ccu-adding {
	opacity: 0.5;
	pointer-events: none;
}

.ccu-upsell-add-btn.ccu-add-error {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

.ccu-upsell-no-results {
	text-align: center;
	padding: 12px;
	color: #888;
	font-size: 13px;
}

.ccu-upsell-list.ccu-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.ccu-added-msg {
	font-size: 13px;
	margin-top: 8px;
	color: #16a085;
}

/* ===== কাস্টম চেকবক্স — প্রিমিয়াম UI ===== */

.ccu-custom-checkbox-wrap {
	box-sizing: border-box;
	margin: 20px 0;
	padding: 18px 20px;
	background: #fafbfc;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ccu-custom-checkbox-wrap * {
	box-sizing: border-box;
}

.ccu-custom-checkbox-wrap:hover {
	border-color: #cbd5e1;
}

.ccu-custom-checkbox-wrap:has(#ccu_custom_checkbox:checked) {
	border-color: #16a085;
	background: #f2fbf9;
	box-shadow: 0 2px 10px rgba(22, 160, 133, .08);
}

.ccu-custom-checkbox-wrap.ccu-checkbox-invalid {
	border-color: #dc2626;
	background: #fdf2f2;
	box-shadow: 0 2px 10px rgba(220, 38, 38, .08);
}

/* উপরের নির্দেশনা টেক্সট */
.ccu-checkbox-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #b45309;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	padding: 6px 12px;
	border-radius: 20px;
	margin: 0 0 14px;
	animation: ccu-hint-bounce 1.8s ease-in-out infinite;
}

@keyframes ccu-hint-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(3px); }
}

/* চেকবক্স লেবেল ও কাস্টম টিক */
.ccu-custom-checkbox-wrap label,
.ccu-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin: 0;
	padding: 0;
}

.ccu-custom-checkbox-wrap input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 21px;
	height: 21px;
	min-width: 21px;
	margin: 1px 0 0;
	padding: 0;
	flex-shrink: 0;
	border: 2px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	position: relative;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.ccu-custom-checkbox-wrap input[type="checkbox"]:checked {
	background: #16a085;
	border-color: #16a085;
}

.ccu-custom-checkbox-wrap input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ccu-custom-checkbox-wrap input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(22, 160, 133, .25);
}

.ccu-custom-checkbox-wrap input[type="checkbox"].ccu-invalid-field {
	border-color: #dc2626;
}

.ccu-checkbox-text {
	font-size: 13.5px;
	line-height: 1.55;
	color: #334155;
	padding-top: 2px;
}

/* নিচের রিয়েল-টাইম এরর মেসেজ — চেকবক্সের টেক্সটের সাথে বাম দিকে সমান্তরাল */
.ccu-checkbox-error {
	display: none;
	align-items: flex-start;
	gap: 6px;
	color: #dc2626;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	margin: 10px 0 0;
	padding-left: 33px;
}

.ccu-checkbox-error::before {
	content: "⚠";
	flex-shrink: 0;
}

.ccu-checkbox-error.is-visible {
	display: flex;
}

/* ভুল হলে সংক্ষিপ্ত শেক অ্যানিমেশন */
@keyframes ccu-shake {
	0%, 100% { transform: translateX(0); }
	20%      { transform: translateX(-6px); }
	40%      { transform: translateX(6px); }
	60%      { transform: translateX(-4px); }
	80%      { transform: translateX(4px); }
}

.ccu-checkbox-shake {
	animation: ccu-shake .4s ease;
}

/* চেকবক্সের ডুপ্লিকেট এরর (যদি কখনো সার্ভার থেকে আসে) মুছে ফেলার পর
   খালি নোটিস বক্সের কোনো ফাঁকা বর্ডার/স্পেস যেন দেখা না যায় */
.woocommerce-notices-wrapper:empty {
	display: none;
}

/* মোবাইল নম্বর ভ্যালিডেশন */
#billing_phone.ccu-invalid-field {
	border-color: #c0392b !important;
	background-color: #fdf2f1;
}

.ccu-phone-error {
	display: none;
	color: #c0392b;
	font-size: 12px;
	margin-top: 5px;
	line-height: 1.4;
}

.ccu-phone-error.is-visible {
	display: block;
}
