/**
 * Vdot Funnel Checkout - Storefront Frontend Styles
 *
 * Handles slide-cart layouts, order bumps rendering, checkout overrides.
 *
 * @since 1.0.0
 */

/* Slide Cart Drawer */
#vdot-slide-cart-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99999;
	transition: visibility 0.3s;
}

#vdot-slide-cart-wrapper.vdot-slide-cart-hidden {
	visibility: hidden;
}

.vdot-slide-cart-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(4px);
	opacity: 1;
	transition: opacity 0.3s ease;
}

#vdot-slide-cart-wrapper.vdot-slide-cart-hidden .vdot-slide-cart-overlay {
	opacity: 0;
}

.vdot-slide-cart-panel {
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	max-width: 440px;
	height: 100%;
	background-color: #ffffff;
	box-shadow: -10px 0 30px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	transform: translateX(0);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#vdot-slide-cart-wrapper.vdot-slide-cart-hidden .vdot-slide-cart-panel {
	transform: translateX(100%);
}

.vdot-slide-cart-header {
	padding: 20px 24px;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.vdot-slide-cart-header h3 {
	margin: 0;
	font-family: 'Outfit', sans-serif;
	font-size: 20px;
	color: #0f172a;
}

.vdot-slide-cart-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #64748b;
}

/* Shipping Goals */
.vdot-slide-cart-shipping-goal {
	padding: 15px 24px;
	background-color: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.vdot-shipping-goal-text {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #334155;
	font-weight: 500;
}

.vdot-shipping-progress-bar {
	width: 100%;
	height: 6px;
	background-color: #e2e8f0;
	border-radius: 9999px;
	overflow: hidden;
}

.vdot-shipping-progress-fill {
	height: 100%;
	background-color: #10b981;
	border-radius: 9999px;
	transition: width 0.3s ease;
}

/* Cart Items Container */
.vdot-slide-cart-items-container {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
}

.vdot-cart-item {
	display: grid;
	grid-template-columns: 80px 1fr 40px;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.vdot-cart-item-image {
	width: 80px;
	height: 80px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #e2e8f0;
}

.vdot-cart-item-name {
	font-weight: 600;
	font-size: 14px;
	color: #0f172a;
	margin-bottom: 4px;
}

.vdot-cart-item-price {
	color: #64748b;
	font-size: 13px;
	margin-bottom: 8px;
}

.vdot-cart-qty-selector {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	overflow: hidden;
}

.vdot-cart-qty-btn {
	background: none;
	border: none;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-weight: bold;
}

.vdot-cart-qty-input {
	width: 32px;
	text-align: center;
	border: none;
	border-left: 1px solid #cbd5e1;
	border-right: 1px solid #cbd5e1;
	font-size: 13px;
	padding: 0;
	height: 28px;
}

/* Order Bumps Stylings */
.vdot-order-bump-box {
	border: 2px dashed #6366f1;
	background-color: #f5f3ff;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.vdot-bump-header {
	margin-bottom: 12px;
}

.vdot-bump-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 700;
	color: #0f172a;
}

.vdot-bump-badge {
	background-color: #ef4444;
	color: #ffffff;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: bold;
	letter-spacing: 0.5px;
}

.vdot-bump-body {
	display: flex;
	gap: 16px;
}

.vdot-bump-image {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
}

.vdot-bump-description {
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.vdot-price-strike {
	text-decoration: line-through;
	color: #94a3b8;
	margin-right: 6px;
}

.vdot-price-bump-value {
	color: #10b981;
	font-weight: 700;
}

/* Slide Cart footer */
.vdot-slide-cart-footer {
	padding: 24px;
	border-top: 1px solid #f1f5f9;
	background-color: #ffffff;
}

.vdot-cart-coupon-apply {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
}

.vdot-cart-coupon-apply input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
}

.vdot-cart-coupon-apply button {
	background-color: #0f172a;
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

.vdot-cart-summary-totals {
	margin-bottom: 20px;
}

.vdot-total-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 14px;
	color: #475569;
}

.vdot-total-row.total-final {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	border-top: 1px solid #f1f5f9;
	padding-top: 8px;
}

.vdot-btn-checkout {
	display: block;
	width: 100%;
	text-align: center;
	background-color: #6366f1;
	color: #ffffff !important;
	padding: 14px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
}

/* Visually Built Checkout Layout Styles */
.vdot-checkout-builder-storefront {
	font-family: 'Inter', sans-serif;
	color: #334155;
	background-color: #f8fafc;
	padding: 20px 0;
}
.vdot-builder-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.vdot-widget-section-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.vdot-widget-title {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 12px;
}
.vdot-faq-question:hover {
	color: #6366f1;
}
.vdot-faq-item {
	transition: all 0.2s ease;
}
.vdot-testimonial-card {
	transition: transform 0.2s ease;
}
.vdot-testimonial-card:hover {
	transform: translateY(-2px);
}
.vdot-qty-adjust-btn {
	transition: background-color 0.15s ease;
}
.vdot-qty-adjust-btn:hover {
	background-color: #cbd5e1 !important;
}
.vdot-apply-coupon-btn {
	transition: background-color 0.2s ease;
}
.vdot-apply-coupon-btn:hover {
	background-color: #4f46e5 !important;
}
/* Responsive adjustments */
@media (max-width: 768px) {
	.vdot-builder-row {
		grid-template-columns: 1fr !important;
	}
	.vdot-builder-column {
		grid-column: span 12 !important;
	}
}

/* Order Bumps Visual Styles */
@keyframes vdotFadeIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}
.vdot-bump-radio-label {
	display: flex;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	margin-bottom: 4px;
}
.vdot-bump-radio-label:hover {
	border-color: #0ea5e9;
	background: #f0f9ff;
}
.vdot-style-image {
	transition: box-shadow 0.2s ease;
}
.vdot-style-image:hover {
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}
.vdot-popup-bump-accept-btn {
	transition: background-color 0.15s ease;
}
.vdot-popup-bump-accept-btn:hover {
	background-color: #059669 !important;
}
.vdot-popup-bump-decline-btn {
	transition: background-color 0.15s ease;
}
.vdot-popup-bump-decline-btn:hover {
	background-color: #e2e8f0 !important;
}


