/**
 * Stylesheet for Rich-E WooCommerce Add-on.
 * Styles the interactive add-to-cart notices and buttons inside chatbot bubbles.
 */

.riche-woo-cart-notification {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-left: 4px solid #10B981;
	border-radius: 8px;
	padding: 10px 12px;
	margin-top: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
	animation: richeWooFadeIn 0.25s ease-out;
}

@keyframes richeWooFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.riche-woo-cart-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: #D1FAE5;
	color: #059669;
	border-radius: 50%;
	font-weight: bold;
	font-size: 13px;
	flex-shrink: 0;
}

.riche-woo-cart-text {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	line-height: 1.3;
}

.riche-woo-cart-text strong {
	color: #111827;
	font-size: 13px;
	font-weight: 700;
}

.riche-woo-cart-text span {
	color: #6B7280;
	font-size: 11px;
}

.riche-woo-cart-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.riche-woo-cart-btn-view,
.riche-woo-cart-btn-pay {
	display: inline-block;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 6px;
	transition: all 0.2s ease;
	text-align: center;
}

.riche-woo-cart-btn-view {
	background: #F3F4F6;
	color: #374151 !important;
	border: 1px solid #D1D5DB;
}

.riche-woo-cart-btn-view:hover {
	background: #E5E7EB;
	color: #111827 !important;
	border-color: #9CA3AF;
}

.riche-woo-cart-btn-pay {
	background: #4F46E5;
	color: #ffffff !important;
	border: 1px solid transparent;
}

.riche-woo-cart-btn-pay:hover {
	background: #3730A3;
	color: #ffffff !important;
	box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Spinner indicator */
.riche-woo-spinner {
	display: inline-block;
	width: 10px;
	height: 10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: richeWooSpin 0.8s linear infinite;
	margin-right: 4px;
	vertical-align: middle;
}

@keyframes richeWooSpin {
	to { transform: rotate(360deg); }
}
