/**
 * WooCommerce Descuento Combo Stylesheet
 */

/* Cart & Checkout Price Wrappers */
.pdc-price-wrapper,
.pdc-subtotal-wrapper {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

#offcanvas-cart .woocommerce-mini-cart-item.pdc-upsell-banner-item{
    padding: 0 !important;
}

.pdc-original-price {
	color: #94a3b8 !important;
	font-size: 0.9em;
	text-decoration: line-through;
	margin-right: 2px;
}

.pdc-discounted-price {
	font-weight: 700;
	color: #22c55e !important;
	text-decoration: none;
}

.pdc-badge {
	display: inline-block;
	background-color: #22c55e;
	color: #ffffff !important;
	font-size: 0.75em;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
	vertical-align: middle;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pdc-badge-promo {
  
    position: absolute;
    left: 0;
    bottom: 0;

	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 0.72em !important;
	padding: 2px 8px !important;
	border-radius: 10px !important;
	letter-spacing: 0.4px !important;
	box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3) !important;
}

/* Fix positioning in mini-cart and widget cart */
.widget_shopping_cart .pdc-price-wrapper,
.site-header-cart .pdc-price-wrapper,
.wc-block-mini-cart .pdc-price-wrapper {
	font-size: 0.9em;
}

.widget_shopping_cart .pdc-badge,
.wc-block-mini-cart .pdc-badge {
	font-size: 0.7em;
	padding: 1px 6px;
}

/* ==========================================================================
   UPSELL & ALONE BANNER STYLING (DARK THEME)
   ========================================================================== */

#offcanvas-cart .pdc-upsell-banner-item{
    margin-top: 10px !important;
}

.woocommerce-checkout .pdc-upsell-banner-item {
    padding: 0 16px !important;
    margin-top:10px !important
}
.pdc-upsell-banner-container {
	
	width: 100%;
	clear: both;
}

/* Dark Theme Card */
.pdc-theme-dark .pdc-upsell-card {
	position: relative;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border: 1px dashed rgba(56, 189, 248, 0.4);
	border-radius: 12px;
	padding: 16px;
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(56, 189, 248, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdc-theme-dark .pdc-upsell-card:hover {
	border-color: rgba(56, 189, 248, 0.7);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.2);
}

.pdc-theme-dark .pdc-upsell-badge-top {
	position: absolute;
	top: -12px;
	right: 14px;
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 20px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	box-shadow: 0 3px 8px rgba(34, 197, 94, 0.4);
}

.pdc-theme-dark .pdc-badge-amber {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
	box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4) !important;
}

.pdc-theme-dark .pdc-upsell-body {
	display: flex;
	align-items: center;
	gap: 14px;
}

.pdc-theme-dark .pdc-upsell-image {
	flex-shrink: 0;
	width: 58px;
	height: 58px;
	border-radius: 10px;
	overflow: hidden;
	background: #334155;
	border: 1px solid #475569;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.pdc-theme-dark .pdc-upsell-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pdc-theme-dark .pdc-upsell-info {
	flex-grow: 1;
}

.pdc-theme-dark .pdc-upsell-heading {
	margin: 0 0 6px 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #f8fafc !important;
	line-height: 1.35 !important;
    
}

ins.pdc-discounted-price .woocommerce-Price-amount bdi{
    font-size:24px
}

.pdc-theme-dark .pdc-upsell-pricing {
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.pdc-theme-dark .pdc-upsell-pricing .pdc-label-text {
	color: #94a3b8;
	font-size: 12px;
}

.pdc-theme-dark .pdc-original-price {
	color: #64748b !important;
}

.pdc-theme-dark .pdc-discounted-price {
	color: #4ade80 !important;
	font-size: 1.05em;
	font-weight: 700;
        line-height: 1
}

.pdc-theme-dark .pdc-upsell-actions {
	margin-top: 12px;
}

.pdc-theme-dark .pdc-upsell-add-btn {
	background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 18px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	text-decoration: none !important;
	line-height: 1.4 !important;
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.pdc-theme-dark .pdc-upsell-add-btn:hover {
	background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* Alone Product Incentive Banner (Dark Theme) */
.pdc-alone-card {
	border-color: rgba(245, 158, 11, 0.5) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(245, 158, 11, 0.15) !important;
}

.pdc-alone-body {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 4px;
}

.pdc-alone-icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
}

.pdc-alone-text {
	font-size: 13px;
	line-height: 1.45;
	color: #cbd5e1;
}

.pdc-alone-text strong {
	color: #fbbf24;
	font-weight: 700;
}

.pdc-alone-actions {
	margin-top: 12px;
	text-align: right;
}

.pdc-alone-shop-btn {
	background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 7px 14px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

.pdc-alone-shop-btn:hover {
	background: linear-gradient(135deg, #7dd3fc 0%, #0369a1 100%) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}

/* Spinner animation */
.pdc-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: pdc-spin 0.8s linear infinite;
	margin-right: 6px;
}

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

/* Compact layout for Mini-Cart */
.widget_shopping_cart .pdc-upsell-card,
.wc-block-mini-cart .pdc-upsell-card {
	padding: 12px;
}

.widget_shopping_cart .pdc-upsell-image,
.wc-block-mini-cart .pdc-upsell-image {
	width: 46px;
	height: 46px;
}

.widget_shopping_cart .pdc-upsell-heading,
.wc-block-mini-cart .pdc-upsell-heading {
	font-size: 13px !important;
}

.widget_shopping_cart .pdc-upsell-add-btn,
.wc-block-mini-cart .pdc-upsell-add-btn {
	padding: 7px 12px !important;
	font-size: 12px !important;
}
