.clatc-widget {
	width: 100%;
}

.clatc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 56px;
	min-height: 56px;
	padding: 0 20px;
	border: 1.5px solid #B95432;
	border-radius: 10px;
	background: #ffffff;
	color: #B95432;
	cursor: pointer;
	font-family: "Be Vietnam Pro", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	box-sizing: border-box;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, opacity .18s ease;
}

.clatc-button:hover {
	background: #B95432;
	border-color: #B95432;
	color: #ffffff;
}

.clatc-button:active {
	transform: translateY(1px);
}

.clatc-button:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.clatc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.clatc-icon:empty {
	display: none;
}

.clatc-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.clatc-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: clatc-spin .65s linear infinite;
}

.clatc-button.is-loading .clatc-spinner {
	display: block;
}

.clatc-button.is-loading .clatc-icon {
	display: none;
}

.clatc-button.is-success {
	background: #2e7d32;
	border-color: #2e7d32;
	color: #ffffff;
}

.clatc-message {
	display: none;
	margin-top: 6px;
	font: 12px/1.4 "Be Vietnam Pro", Arial, sans-serif;
	color: #6E625C;
}

.clatc-message.is-error {
	display: block;
	color: #B42318;
}

/* Hide native WooCommerce added_to_cart / view cart button */
.clatc-widget a.added_to_cart,
.clatc-widget .added_to_cart,
.single-product a.added_to_cart,
.single-product .added_to_cart.wc-forward {
	display: none !important;
}

.clatc-native-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.clatc-fly-image {
	position: fixed !important;
	z-index: 2147483000 !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain !important;
	pointer-events: none !important;
	border-radius: 10px !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18) !important;
	will-change: left, top, width, height, opacity;
	transition: left .72s cubic-bezier(.2, .75, .25, 1), top .72s cubic-bezier(.2, .75, .25, 1), width .72s cubic-bezier(.2, .75, .25, 1), height .72s cubic-bezier(.2, .75, .25, 1), opacity .72s ease, border-radius .72s ease !important;
}

.clatc-cart-bump {
	animation: clatc-cart-bump .42s ease;
}

@keyframes clatc-spin {
	to { transform: rotate(360deg); }
}

@keyframes clatc-cart-bump {
	0% { transform: scale(1); }
	45% { transform: scale(1.18); }
	100% { transform: scale(1); }
}

/* Floating Toast Notification */
.clatc-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(25px);
	background: rgba(30, 26, 24, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	padding: 10px 18px;
	border-radius: 8px;
	font-family: "Be Vietnam Pro", Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	z-index: 2147483647;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.clatc-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.clatc-toast.is-error {
	background: rgba(180, 35, 24, 0.96);
}

.clatc-toast-icon {
	font-size: 14px;
	line-height: 1;
}

@media (max-width: 767px) {
	.clatc-button {
		height: 52px;
		min-height: 52px;
		padding: 0 16px;
		font-size: 13px;
	}
}

@media(prefers-reduced-motion: reduce) {
	.clatc-button,
	.clatc-fly-image,
	.clatc-toast {
		transition: none !important;
	}
	.clatc-spinner,
	.clatc-cart-bump {
		animation: none !important;
	}
}
