/**
 * Woo2B Frontend Styles
 */

/* B2B Price Display */
.woo2b-original-price {
	text-decoration: line-through;
	color: #999;
	margin-right: 10px;
	font-size: 0.9em;
}

.woo2b-b2b-price {
	color: #2271b1;
	font-weight: bold;
	font-size: 1.1em;
}

.woo2b-savings {
	color: #46b450;
	font-weight: 600;
}

/* Product page */
.woo2b-b2b-price .price {
	color: #2271b1;
}

/* Cart table */
.woocommerce-cart .woo2b-original-price {
	display: block;
	margin-bottom: 5px;
}

/* Checkout */
.woocommerce-checkout .woo2b-original-price {
	display: inline-block;
}

.woocommerce-checkout .woo2b-savings {
	display: block;
	margin-top: 5px;
}

/* Fix icon sizes for PIX/Card payment display */
.payment-card svg,
.payment-card path,
.payment-pix svg,
.payment-pix path {
	width: var(--wcsp-icons-size, 30px) !important;
	height: var(--wcsp-icons-size, 30px) !important;
	max-width: var(--wcsp-icons-size, 30px) !important;
	max-height: var(--wcsp-icons-size, 30px) !important;
}

/* Ensure SVG icons maintain aspect ratio */
.payment-card svg,
.payment-pix svg {
	display: inline-block;
	vertical-align: middle;
}

/* B2B Notification Banner */
.woo2b-b2b-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 999999;
	max-width: 350px;
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 16px;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	animation: woo2b-slide-in 0.3s ease-out;
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.woo2b-b2b-notification.woo2b-hidden {
	opacity: 0;
	transform: translateX(100%);
	pointer-events: none;
}

.woo2b-b2b-notification-content {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	position: relative;
}

.woo2b-b2b-notification-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: #fff;
	margin-top: 2px;
}

.woo2b-b2b-notification-icon svg {
	width: 100%;
	height: 100%;
}

.woo2b-b2b-notification-text {
	flex: 1;
}

.woo2b-b2b-notification-text strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
}

.woo2b-b2b-notification-text small {
	display: block;
	font-size: 12px;
	opacity: 0.9;
}

.woo2b-b2b-notification-close {
	position: absolute;
	top: -8px;
	right: -8px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background 0.2s ease;
	padding: 0;
}

.woo2b-b2b-notification-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.woo2b-b2b-notification-close svg {
	width: 16px;
	height: 16px;
}

@keyframes woo2b-slide-in {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.woo2b-b2b-notification {
		top: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}
}


