/**
 * Flex Card Builder - VbizCard-Inspired Product Purchase & Detail Page Styles
 */

.fcb-purchase-page-wrap {
	padding: 40px 16px 80px 16px;
	background: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
}

.fcb-container {
	max-width: 1140px;
	margin: 0 auto;
}

/* Breadcrumbs */
.fcb-breadcrumb {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fcb-breadcrumb a {
	color: #64748b;
	text-decoration: none;
}

.fcb-breadcrumb a:hover {
	color: #2563eb;
}

.fcb-breadcrumb .fcb-current {
	color: #0f172a;
	font-weight: 600;
}

/* 2-Column Grid */
.fcb-purchase-grid {
	display: grid;
	grid-template-columns: 440px 1fr;
	gap: 48px;
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
	margin-bottom: 40px;
}

@media (max-width: 960px) {
	.fcb-purchase-grid {
		grid-template-columns: 1fr;
		padding: 24px;
		gap: 32px;
	}
}

/* Left Section: Mockup */
.fcb-product-mockup-frame {
	background: #f1f5f9;
	border-radius: 28px;
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}

.fcb-device-shell {
	width: 320px;
	height: 580px;
	background: #0f172a;
	border-radius: 40px;
	padding: 12px 10px;
	box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35);
	position: relative;
	box-sizing: border-box;
}

.fcb-device-camera {
	width: 50px;
	height: 4px;
	background: #334155;
	border-radius: 3px;
	margin: 0 auto 10px auto;
}

.fcb-device-screen-embed {
	width: 100%;
	height: calc(100% - 14px);
	border-radius: 30px;
	overflow: hidden;
	background: #ffffff;
}

.fcb-mockup-iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.fcb-mockup-badge {
	margin-top: 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	color: #0f172a;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fcb-mockup-controls {
	margin-top: 16px;
}

/* Right Section: Details */
.fcb-product-meta-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.fcb-cat-pill {
	background: #eff6ff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	text-transform: uppercase;
}

.fcb-rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

.fcb-stars-gold {
	color: #f59e0b;
	letter-spacing: 2px;
}

.fcb-rating-score {
	font-weight: 700;
	color: #0f172a;
}

.fcb-review-count {
	color: #64748b;
}

.fcb-product-title {
	font-size: 32px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.fcb-product-subtitle {
	font-size: 16px;
	font-weight: 600;
	color: #2563eb;
	margin-bottom: 12px;
}

.fcb-product-tagline {
	font-size: 15px;
	color: #475569;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

/* Price Box */
.fcb-pricing-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 24px;
}

.fcb-price-group {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.fcb-price-current {
	font-size: 34px;
	font-weight: 800;
	color: #0f172a;
}

.fcb-price-regular {
	font-size: 18px;
	color: #94a3b8;
}

.fcb-discount-badge {
	background: #fee2e2;
	color: #dc2626;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 6px;
}

.fcb-price-free-large {
	font-size: 28px;
	font-weight: 800;
	color: #0284c7;
}

.fcb-price-note {
	font-size: 12px;
	color: #64748b;
}

/* Features Checklist */
.fcb-features-checklist {
	margin-bottom: 28px;
}

.fcb-features-checklist h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px 0;
	color: #0f172a;
}

.fcb-features-checklist ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fcb-features-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #334155;
	line-height: 1.4;
}

.fcb-check-icon {
	color: #10b981;
	font-weight: 900;
	font-size: 16px;
	flex-shrink: 0;
}

/* Buttons Stack */
.fcb-action-buttons-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 28px;
}

.fcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
	padding: 12px 20px;
	font-size: 14px;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
	box-sizing: border-box;
}

.fcb-btn-lg {
	padding: 16px 24px;
	font-size: 16px;
}

.fcb-btn-primary {
	background: #2563eb;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.fcb-btn-primary:hover {
	background: #1d4ed8;
	color: #ffffff;
	transform: translateY(-1px);
}

.fcb-sub-buttons-row {
	display: flex;
	gap: 10px;
}

.fcb-sub-buttons-row .fcb-btn {
	flex: 1;
}

.fcb-btn-outline {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
}

.fcb-btn-outline:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.fcb-btn-secondary {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
}

.fcb-btn-block {
	width: 100%;
}

/* Trust Badges */
.fcb-trust-badges {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
}

@media (max-width: 600px) {
	.fcb-trust-badges {
		grid-template-columns: repeat(2, 1fr);
	}
}

.fcb-trust-item {
	text-align: center;
}

.fcb-trust-item span {
	font-size: 20px;
	display: block;
	margin-bottom: 4px;
}

.fcb-trust-item label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
}

/* Lower Tabs */
.fcb-purchase-tabs-wrap {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.fcb-tabs-nav {
	display: flex;
	gap: 12px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 14px;
	margin-bottom: 24px;
	overflow-x: auto;
}

.fcb-tab-link {
	background: transparent;
	border: none;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s;
}

.fcb-tab-link:hover {
	color: #2563eb;
}

.fcb-tab-link.active {
	background: #eff6ff;
	color: #2563eb;
}

.fcb-tab-prose {
	font-size: 15px;
	line-height: 1.7;
	color: #334155;
}

.fcb-tab-prose ul {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Steps Grid */
.fcb-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 768px) {
	.fcb-steps-grid {
		grid-template-columns: 1fr;
	}
}

.fcb-step-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	text-align: center;
}

.fcb-step-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #2563eb;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 16px;
	margin-bottom: 12px;
}

.fcb-step-item h4 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #0f172a;
}

.fcb-step-item p {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* FAQs */
.fcb-faq-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fcb-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
	background: #f8fafc;
}

.fcb-faq-item h4 {
	margin: 0 0 6px 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.fcb-faq-item p {
	margin: 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

/* ==========================================================================
   CHECKOUT MODAL & MANUAL UPI PURCHASE WORKFLOW STYLES
   ========================================================================== */

.fcb-modal-backdrop {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.75) !important;
	backdrop-filter: blur(4px);
	z-index: 9999999 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.fcb-checkout-card {
	background: #ffffff !important;
	border-radius: 20px !important;
	max-width: 520px !important;
	width: 100% !important;
	max-height: 90vh !important;
	overflow-y: auto !important;
	padding: 24px !important;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4) !important;
	position: relative !important;
	animation: fcbModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	box-sizing: border-box;
}

@keyframes fcbModalPop {
	0% {
		opacity: 0;
		transform: scale(0.92) translateY(20px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.fcb-modal-title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 14px;
	margin-bottom: 16px;
}

.fcb-modal-title-row h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
}

.fcb-close-checkout {
	background: #f1f5f9;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.fcb-close-checkout:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Item Summary in Modal */
.fcb-checkout-item-summary {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 12px 14px;
	border-radius: 12px;
	margin-bottom: 18px;
}

.fcb-checkout-thumb {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}

.fcb-checkout-item-details {
	flex: 1;
	min-width: 0;
}

.fcb-checkout-title {
	margin: 0 0 3px 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fcb-checkout-biz {
	font-size: 12px;
	color: #64748b;
	display: block;
}

.fcb-checkout-price-tag {
	font-size: 16px;
	font-weight: 800;
	color: #16a34a;
	margin-top: 2px;
}

/* Form Sections */
.fcb-checkout-section-title {
	font-size: 12px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin: 16px 0 10px 0;
}

.fcb-checkout-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (max-width: 480px) {
	.fcb-checkout-fields-grid {
		grid-template-columns: 1fr;
	}
}

.fcb-input-group {
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fcb-input-group label {
	font-size: 12px;
	font-weight: 600;
	color: #334155;
}

.fcb-input-group input,
.fcb-input-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #ffffff;
}

.fcb-input-group input:focus,
.fcb-input-group textarea:focus {
	border-color: #2563eb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* UPI Payment Box in Modal */
.fcb-checkout-upi-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 16px;
}

.fcb-upi-instr {
	font-size: 12px;
	color: #475569;
	margin: 0 0 10px 0;
	line-height: 1.5;
}

.fcb-payee-badge {
	font-size: 12px;
	color: #1e293b;
	margin-bottom: 10px;
	background: #e2e8f0;
	padding: 4px 8px;
	border-radius: 6px;
	display: inline-block;
}

.fcb-checkout-upi-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fcb-checkout-upi-row {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	font-size: 12px;
}

.fcb-upi-icon {
	font-size: 16px;
	flex-shrink: 0;
}

.fcb-upi-name {
	font-weight: 600;
	color: #334155;
	white-space: nowrap;
}

.fcb-checkout-upi-row code,
.fcb-upi-val {
	flex: 1;
	font-size: 11px;
	color: #0f172a;
	font-family: monospace;
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fcb-btn-copy-upi {
	background: #eff6ff !important;
	color: #2563eb !important;
	border: 1px solid #bfdbfe !important;
	border-radius: 6px !important;
	padding: 5px 10px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: all 0.15s ease !important;
	flex-shrink: 0;
}

.fcb-btn-copy-upi:hover {
	background: #dbeafe !important;
	color: #1d4ed8 !important;
}

/* Actions in Modal */
.fcb-checkout-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
}

.fcb-btn-block {
	width: 100%;
	display: block;
	text-align: center;
	box-sizing: border-box;
}

.fcb-btn-wa-alt {
	background: #25d366 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	border-radius: 8px !important;
	padding: 12px 18px !important;
	font-size: 14px !important;
	cursor: pointer !important;
	border: none !important;
	transition: background 0.2s ease !important;
}

.fcb-btn-wa-alt:hover {
	background: #1eb857 !important;
}

/* Form Alerts & Feedback */
.fcb-alert {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin: 10px 0;
}

.fcb-alert-success {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.fcb-alert-danger {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* FLOATING TOAST NOTIFICATION */
.fcb-toast-notification {
	position: fixed !important;
	bottom: 24px !important;
	left: 50% !important;
	transform: translateX(-50%) translateY(30px) !important;
	background: #0f172a !important;
	color: #ffffff !important;
	padding: 12px 22px !important;
	border-radius: 30px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
	z-index: 99999999 !important;
	opacity: 0;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	pointer-events: none !important;
}

.fcb-toast-notification.fcb-toast-visible {
	opacity: 1 !important;
	transform: translateX(-50%) translateY(0) !important;
}

.fcb-toast-icon {
	background: #22c55e !important;
	color: #ffffff !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 11px !important;
}
