.wcb-quotation-wrap {
	max-width: 640px;
	margin: 24px auto;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.wcb-quotation-scale-box {
	position: relative;
	width: 100%;
	overflow: visible;
}

.wcb-quotation-card {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	text-align: left;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	width: 620px;
	max-width: none;
	transform-origin: top left;
}

/* ---------- Header (blue band) ---------- */
.wcb-q-header {
	background: #2f5fdd;
	padding: 22px 24px;
}
.wcb-q-header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	text-align: left;
}
.wcb-q-logo-box {
	background: #fff;
	border-radius: 8px;
	padding: 6px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.wcb-q-logo-box img {
	max-height: 46px;
	max-width: 140px;
	width: auto;
	height: auto;
	display: block;
}
.wcb-q-header-text { flex: 1; min-width: 0; }
.wcb-q-brand {
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.3px;
	margin-bottom: 6px;
}
.wcb-q-invoice-word {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 8px;
	opacity: 0.95;
}

/* ---------- Accent bar (maroon/red) ---------- */
.wcb-q-accent-bar { height: 6px; background: #b23b3b; }

.wcb-q-body { padding: 22px 24px 8px; }

/* ---------- Store info row (replaces per-customer row) ---------- */
.wcb-q-store-row {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #eee;
}
.wcb-q-store-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #444;
}
.wcb-q-store-item .dashicons { color: #2f5fdd; font-size: 18px; width: 18px; height: 18px; }

/* ---------- Title ---------- */
.wcb-q-title-wrap {
	text-align: center;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid #2f5fdd;
}
.wcb-q-title {
	font-size: 17px;
	font-weight: 800;
	color: #2f5fdd;
	letter-spacing: 0.3px;
	line-height: 1.4;
}

/* ---------- Item table ---------- */
.wcb-q-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 18px;
}
.wcb-q-table { width: 100%; border-collapse: collapse; margin-bottom: 0; min-width: 480px; }
.wcb-q-table thead th {
	background: #2f5fdd;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.4px;
	padding: 12px 10px;
	text-align: left;
	white-space: nowrap;
}
.wcb-q-table tbody td {
	padding: 12px 10px;
	font-size: 14px;
	color: #333;
}
.wcb-q-table tbody tr:nth-child(odd) { background: #eef1fc; }
.wcb-q-col-desc { word-break: break-word; }
.wcb-q-col-qty { text-align: center; width: 50px; }
.wcb-q-col-price, .wcb-q-col-total { text-align: right; width: 100px; color: #555; white-space: nowrap; }
.wcb-q-table thead .wcb-q-col-qty { text-align: center; }
.wcb-q-table thead .wcb-q-col-price,
.wcb-q-table thead .wcb-q-col-total { text-align: right; }

/* ---------- Bottom row: Thank You + Grand Total ---------- */
.wcb-q-bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 3px double #2f5fdd;
	padding: 16px 0;
	margin-bottom: 0;
}
.wcb-q-thankyou {
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 26px;
	color: #2f5fdd;
}
.wcb-q-grandtotal { font-size: 17px; font-weight: 800; color: #2f5fdd; }

/* ---------- Footer (maroon/red band) ---------- */
.wcb-q-footer {
	background: #b23b3b;
	color: #fff;
	padding: 14px 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
}
.wcb-q-footer-item { display: inline-flex; align-items: center; gap: 6px; }
.wcb-q-footer-item .dashicons { font-size: 16px; width: 16px; height: 16px; }

.wcb-quotation-download-wrap { margin-top: 16px; }
.wcb-quotation-download-btn {
	background: #2f5fdd;
	color: #fff;
	border: none;
	padding: 10px 26px;
	border-radius: 5px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.wcb-quotation-download-btn:hover { background: #244bb3; }
.wcb-quotation-download-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.wcb-specification { max-width: 900px; margin: 30px auto; overflow-x: auto; }
.wcb-specification table { width: 100%; border-collapse: collapse; }
.wcb-specification th, .wcb-specification td {
	padding: 10px 14px;
	border: 1px solid #e2dcea;
	font-size: 14px;
	text-align: left;
}
.wcb-specification th { background: #f6f5f8; font-weight: 700; color: #1d2327; }

.wcb-media-gallery { max-width: 900px; margin: 34px auto; }
.wcb-media-gallery-title { margin-bottom: 16px; font-size: 19px; color: #1d2327; font-weight: 700; }

/* ---------- Full-width classic auto-sliding banner ---------- */
.wcb-banner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 8;
	max-height: 520px;
	border-radius: 10px;
	overflow: hidden;
	background: #111;
	box-shadow: 0 8px 28px rgba(0,0,0,0.18);
	border: 1px solid #e2dcea;
	cursor: pointer;
}

.wcb-banner-track { position: relative; width: 100%; height: 100%; }

.wcb-banner-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease;
}
.wcb-banner-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.wcb-banner-slide img,
.wcb-banner-slide video {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: contain !important;
	background: #0d0d0f;
	display: block;
	margin: 0 !important;
	border: none !important;
	box-shadow: none !important;
}
.wcb-banner-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	pointer-events: none;
}

.wcb-banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px !important;
	height: 46px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 50% !important;
	border: none !important;
	background: rgba(255,255,255,0.85);
	color: #1d2327;
	font-size: 16px;
	line-height: 1 !important;
	cursor: pointer;
	z-index: 3;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	transition: background 0.15s ease, transform 0.15s ease;
	padding: 0 !important;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
}
.wcb-banner-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.wcb-banner-prev { left: 16px; }
.wcb-banner-next { right: 16px; }

/* Dots live in their own bar BELOW the banner (not overlapping the image)
   so they're always visible regardless of the photo's own colours. */
.wcb-banner-dots-bar {
	display: flex !important;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 14px 0 4px;
	background: transparent;
}
.wcb-banner-dot {
	width: 11px !important;
	height: 11px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: 11px !important;
	border-radius: 50% !important;
	border: 1px solid #c7c0d6 !important;
	background: #ffffff;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
	transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	flex-shrink: 0;
	display: inline-block !important;
}
.wcb-banner-dot.is-active { background: #2f5fdd; border-color: #2f5fdd; transform: scale(1.2); }

.wcb-banner-zoom-hint {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 5px;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.wcb-banner:hover .wcb-banner-zoom-hint { opacity: 1; }
.wcb-banner-zoom-hint .dashicons { font-size: 14px; width: 14px; height: 14px; }

@media (max-width: 640px) {
	.wcb-banner { aspect-ratio: 4 / 3; max-height: 380px; border-radius: 8px; }
	.wcb-banner-arrow { width: 38px; height: 38px; }
	.wcb-banner-zoom-hint { opacity: 1; }
}

/* ---------- Capture mode: forces full desktop layout for the PNG download,
   overriding the mobile media-query shrink + the table's scroll-clip so the
   downloaded image always shows everything, uncropped, on any device. ---------- */
.wcb-quotation-card.wcb-capture-mode {
	width: 620px !important;
	max-width: none !important;
	transform: none !important;
}
.wcb-capture-mode .wcb-q-header { padding: 22px 24px !important; }
.wcb-capture-mode .wcb-q-header-inner { gap: 16px !important; }
.wcb-capture-mode .wcb-q-logo-box { padding: 6px 10px !important; }
.wcb-capture-mode .wcb-q-logo-box img { max-height: 46px !important; max-width: 140px !important; }
.wcb-capture-mode .wcb-q-brand { font-size: 22px !important; margin-bottom: 6px !important; line-height: normal !important; }
.wcb-capture-mode .wcb-q-invoice-word { font-size: 20px !important; letter-spacing: 8px !important; }
.wcb-capture-mode .wcb-q-body { padding: 22px 24px 8px !important; }
.wcb-capture-mode .wcb-q-store-row { gap: 28px !important; padding-bottom: 16px !important; margin-bottom: 16px !important; }
.wcb-capture-mode .wcb-q-store-item { font-size: 14px !important; }
.wcb-capture-mode .wcb-q-title { font-size: 17px !important; }
.wcb-capture-mode .wcb-q-table-wrap { overflow: visible !important; }
.wcb-capture-mode .wcb-q-table { min-width: 0 !important; }
.wcb-capture-mode .wcb-q-thankyou { font-size: 26px !important; }
.wcb-capture-mode .wcb-q-grandtotal { font-size: 17px !important; }
.wcb-capture-mode .wcb-q-footer { padding: 14px 24px !important; font-size: 13px !important; gap: 10px !important; }

/* ---------- Lightbox (big-screen viewer with next/prev) ---------- */
body.wcb-lightbox-locked { overflow: hidden; }

.wcb-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,10,12,0.94);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}
.wcb-lightbox-overlay.is-open { display: flex; }

.wcb-lightbox-stage {
	max-width: 88vw;
	max-height: 84vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wcb-lightbox-stage img,
.wcb-lightbox-stage video {
	max-width: 88vw;
	max-height: 84vh;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.wcb-lightbox-close,
.wcb-lightbox-prev,
.wcb-lightbox-next {
	position: absolute;
	background: rgba(255,255,255,0.12);
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.wcb-lightbox-close:hover,
.wcb-lightbox-prev:hover,
.wcb-lightbox-next:hover { background: rgba(255,255,255,0.25); }

.wcb-lightbox-close {
	top: 20px;
	right: 20px;
	width: 42px;
	height: 42px;
	font-size: 16px;
}
.wcb-lightbox-prev,
.wcb-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	font-size: 18px;
}
.wcb-lightbox-prev { left: 20px; }
.wcb-lightbox-next { right: 20px; }

.wcb-lightbox-counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	background: rgba(255,255,255,0.12);
	padding: 5px 14px;
	border-radius: 20px;
}

@media (max-width: 640px) {
	.wcb-lightbox-prev, .wcb-lightbox-next { width: 42px; height: 42px; }
	.wcb-lightbox-close { top: 12px; right: 12px; }
}

