/* ==========================================================================
   Gazete Vefat İlanı Canlı Önizleme & Fiyat Hesaplama — Frontend Styles v1.1
   Scoped strictly to .vih-wrap to prevent WordPress theme CSS conflicts
   ========================================================================== */

.vih-wrap,
.vih-wrap *,
.vih-wrap *::before,
.vih-wrap *::after {
	box-sizing: border-box;
}

.vih-wrap {
	--vih-primary: #0f172a;
	--vih-accent: #1d4ed8;
	--vih-accent-soft: #eff6ff;
	--vih-border: #cbd5e1;
	--vih-border-light: #e2e8f0;
	--vih-surface: #ffffff;
	--vih-bg: #f8fafc;
	--vih-text: #1e293b;
	--vih-muted: #64748b;
	--vih-success: #15803d;
	--vih-success-bg: #f0fdf4;
	--vih-warn: #b45309;
	--vih-warn-bg: #fffbeb;
	--vih-paper-cream: #fbfaf6;

	font-family: var(--vih-body-font, "Segoe UI Semibold", "Segoe UI", Arial, sans-serif);
	font-weight: 600;
	font-size: var(--vih-ui-body-pt, 12pt);
	line-height: 1.45;
	color: var(--vih-text);
	max-width: 1320px;
	margin: 28px auto;
	padding: 0 12px;
}

/* Header */
.vih-top-header {
	text-align: center;
	margin-bottom: 26px;
}

.vih-year-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--vih-accent-soft);
	color: var(--vih-accent);
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 10.5pt;
	margin-bottom: 10px;
}

.vih-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--vih-accent);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.vih-main-title {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif) !important;
	font-weight: 900 !important;
	font-size: var(--vih-ui-heading-pt, 20pt) !important;
	line-height: 1.2 !important;
	color: var(--vih-primary) !important;
	margin: 0 0 8px 0 !important;
	letter-spacing: -0.01em;
}

.vih-main-subtitle {
	font-family: var(--vih-body-font, "Segoe UI Semibold", "Segoe UI", Arial, sans-serif);
	font-size: var(--vih-ui-body-pt, 12pt);
	color: var(--vih-muted);
	max-width: 780px;
	margin: 0 auto !important;
}

/* Main 2-Column Workspace */
.vih-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
	gap: 24px;
	align-items: start;
}

@media (max-width: 1024px) {
	.vih-workspace {
		grid-template-columns: 1fr;
	}

	.vih-sticky-preview {
		position: static;
	}
}

.vih-left-col {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vih-sticky-preview {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Panels */
.vih-panel,
.vih-mockup-card,
.vih-pricing-card {
	background: var(--vih-surface);
	border: 1px solid var(--vih-border-light);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.vih-panel-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.vih-panel-heading {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif) !important;
	font-weight: 900 !important;
	font-size: 14pt !important;
	line-height: 1.25 !important;
	color: var(--vih-primary) !important;
	margin: 0 0 14px 0 !important;
	display: flex;
	align-items: center;
	gap: 10px;
}

.vih-panel-head-row .vih-panel-heading {
	margin-bottom: 0 !important;
}

.vih-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: var(--vih-primary);
	color: #fff;
	font-size: 11pt;
	flex-shrink: 0;
}

/* 1. Newspaper Cards (Optical Logo Equalization) */
.vih-papers-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

@media (max-width: 640px) {
	.vih-papers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vih-paper-card {
	appearance: none;
	background: var(--vih-bg);
	border: 2px solid var(--vih-border-light);
	border-radius: 11px;
	padding: 10px 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.16s ease;
	color: var(--vih-text);
	font-family: inherit;
}

.vih-paper-card:hover {
	border-color: #94a3b8;
	background: #fff;
}

.vih-paper-card.is-active {
	background: #fff;
	border-color: var(--vih-accent);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.vih-paper-logo-box {
	width: 100%;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px 6px;
}

.vih-paper-logo-box img {
	max-width: 100%;
	max-height: 34px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Sabah logo has 2.42:1 aspect ratio due to Turkey map; boost height so wordmark equals others */
.vih-paper-logo-box.vih-logo-sabah img {
	max-height: 50px;
}

.vih-paper-card-name {
	font-size: 10.5pt;
	font-weight: 600;
	color: var(--vih-text);
}

/* 2. Region Pills */
.vih-regions-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

@media (max-width: 480px) {
	.vih-regions-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vih-region-pill {
	appearance: none;
	background: var(--vih-bg);
	border: 1.5px solid var(--vih-border-light);
	border-radius: 9px;
	padding: 9px 10px;
	font-family: inherit;
	font-size: 11pt;
	font-weight: 600;
	color: var(--vih-text);
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}

.vih-region-pill:hover {
	border-color: #94a3b8;
	background: #fff;
}

.vih-region-pill.is-active {
	background: var(--vih-primary);
	border-color: var(--vih-primary);
	color: #ffffff;
}

/* 3. Fixed Sizes Grid */
.vih-stcm-tag {
	background: var(--vih-accent-soft);
	color: var(--vih-accent);
	border: 1px solid #bfdbfe;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 10pt;
	font-weight: 700;
}

.vih-sizes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

@media (max-width: 600px) {
	.vih-sizes-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vih-size-btn {
	appearance: none;
	position: relative;
	background: var(--vih-bg);
	border: 1.5px solid var(--vih-border-light);
	border-radius: 10px;
	padding: 10px 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	text-align: left;
	font-family: inherit;
	color: var(--vih-text);
	transition: all 0.15s ease;
}

.vih-size-btn:hover {
	border-color: #94a3b8;
	background: #fff;
}

.vih-size-btn.is-active {
	background: var(--vih-accent-soft);
	border-color: var(--vih-accent);
	box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14);
}

.vih-size-main {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif);
	font-weight: 900;
	font-size: 12pt;
	color: var(--vih-primary);
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 4px;
}

.vih-size-cm {
	font-size: 9.5pt;
	color: var(--vih-muted);
}

.vih-size-chip {
	display: inline-block;
	font-family: var(--vih-body-font, "Segoe UI Semibold", "Segoe UI", Arial, sans-serif);
	font-size: 8pt;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 4px;
	background: #dbeafe;
	color: #1e40af;
	white-space: nowrap;
}

.vih-size-chip.is-maktu {
	background: #dcfce7;
	color: #166534;
}

.vih-size-chip.is-discount {
	background: #fef3c7;
	color: #92400e;
}

/* 4. Five-Section Obituary Editor */
.vih-template-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.vih-tpl-btn {
	appearance: none;
	background: #f1f5f9;
	border: 1px solid var(--vih-border);
	border-radius: 6px;
	padding: 4px 9px;
	font-family: inherit;
	font-size: 9.5pt;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: background 0.15s;
}

.vih-tpl-btn:hover {
	background: #e2e8f0;
}

.vih-editor-group {
	margin-bottom: 11px;
}

.vih-input-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 10.5pt;
	margin-bottom: 4px;
	color: var(--vih-primary);
}

.vih-sec-num {
	font-style: normal;
	background: #e2e8f0;
	color: #1e293b;
	font-size: 8.5pt;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 4px;
	margin-right: 4px;
}

.vih-input-label small {
	font-size: 8.5pt;
	color: var(--vih-muted);
}

.vih-input-bold,
.vih-textarea-regular {
	width: 100%;
	border: 1.5px solid var(--vih-border);
	border-radius: 8px;
	padding: 8px 11px;
	background: #fff;
	color: #0f172a;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.vih-input-bold {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif);
	font-weight: 900;
	font-size: 12pt;
}

.vih-input-deceased {
	background: #f8fafc;
	border-color: #94a3b8;
	font-size: 13pt;
	letter-spacing: 0.01em;
}

.vih-textarea-regular {
	font-family: var(--vih-body-font, "Segoe UI Semibold", "Segoe UI", Arial, sans-serif);
	font-weight: 600;
	font-size: 11pt;
	line-height: 1.4;
	resize: vertical;
	min-height: 70px;
}

.vih-input-bold:focus,
.vih-textarea-regular:focus {
	outline: none;
	border-color: var(--vih-accent);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.vih-metrics-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.vih-metric-chip {
	background: var(--vih-bg);
	border: 1px solid var(--vih-border-light);
	border-radius: 7px;
	padding: 5px 10px;
	font-size: 9.5pt;
	color: var(--vih-muted);
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.vih-metric-chip strong {
	color: var(--vih-primary);
}

.vih-metric-chip.is-over {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.vih-metric-chip.is-over strong {
	color: #dc2626;
}

.vih-overflow-alert {
	margin-top: 12px;
	background: var(--vih-warn-bg);
	border: 1px solid #fde68a;
	border-radius: 9px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.vih-overflow-alert[hidden] {
	display: none !important;
}

.vih-overflow-text {
	font-size: 10pt;
	color: #92400e;
	flex: 1 1 220px;
}

.vih-fit-btn {
	appearance: none;
	background: #d97706;
	color: #fff;
	border: none;
	border-radius: 7px;
	padding: 7px 12px;
	font-family: inherit;
	font-size: 10pt;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.vih-fit-btn:hover {
	background: #b45309;
}

/* ==========================================================================
   RIGHT COLUMN: LIVE NEWSPAPER PAGE MOCKUP ("İlanım Nasıl Görünecek?")
   ========================================================================== */

.vih-mockup-topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.vih-mockup-title {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif) !important;
	font-weight: 900 !important;
	font-size: var(--vih-ui-heading-pt, 20pt) !important;
	line-height: 1.15 !important;
	color: var(--vih-primary) !important;
	margin: 0 !important;
}

.vih-mockup-subtitle {
	font-size: 9.5pt;
	color: var(--vih-muted);
	margin-top: 3px;
}

.vih-view-switch {
	display: inline-flex;
	background: #f1f5f9;
	border: 1px solid var(--vih-border-light);
	border-radius: 8px;
	padding: 3px;
	gap: 2px;
}

.vih-view-btn {
	appearance: none;
	border: none;
	background: transparent;
	padding: 5px 10px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 9.5pt;
	font-weight: 600;
	color: var(--vih-muted);
	cursor: pointer;
}

.vih-view-btn.is-active {
	background: #fff;
	color: var(--vih-primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Newspaper Stage */
.vih-newspaper-stage {
	background: #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	display: flex;
	justify-content: center;
}

.vih-newspaper-stage[hidden],
.vih-closeup-stage[hidden] {
	display: none !important;
}

.vih-newspaper-page {
	width: 100%;
	max-width: 450px;
	background: var(--vih-paper-cream);
	border: 1px solid #cbd5e1;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
}

.vih-np-masthead {
	margin-bottom: 8px;
}

.vih-np-meta-line {
	display: flex;
	justify-content: space-between;
	font-size: 7pt;
	letter-spacing: 0.04em;
	color: #475569;
	border-bottom: 1px solid #cbd5e1;
	padding-bottom: 3px;
	margin-bottom: 6px;
	text-transform: uppercase;
}

/* Optically balanced masthead logo bar across all 4 newspapers */
.vih-np-logo-row {
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
}

.vih-np-logo {
	height: 38px;
	max-width: 230px;
	width: auto;
	object-fit: contain;
	display: block;
}

.vih-np-logo.is-paper-sabah {
	height: 58px;
	max-width: 250px;
}

.vih-np-logo.is-paper-cumhuriyet {
	height: 34px;
	max-width: 230px;
}

.vih-np-rule {
	height: 3px;
	border-top: 2px solid #0f172a;
	border-bottom: 1px solid #0f172a;
}

/* Real-ratio 9-Column Newspaper Page Body */
.vih-np-canvas {
	position: relative;
	width: 100%;
	aspect-ratio: 31 / 52.5;
	background: #f7f5ef;
	border: 1px solid #d6d3c9;
	overflow: hidden;
}

.vih-np-columns-bg {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	gap: 3px;
	padding: 4px;
	opacity: 0.42;
	pointer-events: none;
}

.vih-np-col-strip {
	border-right: 1px dotted #cbd5e1;
	padding-right: 2px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.vih-np-col-strip:last-child {
	border-right: none;
}

.vih-faux-headline {
	height: 8px;
	background: #94a3b8;
	border-radius: 1px;
}

.vih-faux-subhead {
	height: 5px;
	width: 75%;
	background: #94a3b8;
	border-radius: 1px;
	margin-top: 4px;
}

.vih-faux-lines {
	flex: 1;
	background: repeating-linear-gradient(
		to bottom,
		#cbd5e1 0px,
		#cbd5e1 2px,
		transparent 2px,
		transparent 5px
	);
}

/* Framed Obituary Slot inside Newspaper Sheet */
.vih-np-ad-slot {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	background: #ffffff;
	box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.35), 0 4px 12px rgba(15, 23, 42, 0.18);
	transition: none !important;
}

.vih-np-ad-measure-tag {
	position: absolute;
	left: 0;
	bottom: -19px;
	background: var(--vih-accent);
	color: #fff;
	font-size: 7.5pt;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 0 0 4px 4px;
	white-space: nowrap;
	z-index: 5;
	pointer-events: none;
}

.vih-np-ad-slot.is-tall-ad .vih-np-ad-measure-tag {
	bottom: 4px;
	left: 4px;
	border-radius: 4px;
	opacity: 0.9;
}

.vih-ad-typeset-scaler {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: top left;
	transition: none !important;
}

/* 5-Section Obituary Print Proof Box */
.vih-ad-print-box {
	background: #ffffff;
	color: #000000;
	border: 3px solid #000000;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	text-align: var(--vih-ad-align, center);
	transition: none !important;
}

.vih-ad-print-box.is-overflowing {
	justify-content: flex-start;
	box-shadow: inset 0 -6px 0 rgba(220, 38, 38, 0.65);
}

.vih-ad-sec-heading,
.vih-ad-sec-deceased,
.vih-ad-sec-signature {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif) !important;
	font-weight: 900 !important;
	line-height: 1.15 !important;
	color: #000000 !important;
	margin: 0 !important;
	word-break: break-word;
}

.vih-ad-sec-deceased {
	letter-spacing: 0.02em;
}

.vih-ad-sec-intro,
.vih-ad-sec-funeral {
	font-family: var(--vih-body-font, "Segoe UI Semibold", "Segoe UI", Arial, sans-serif) !important;
	font-weight: 600 !important;
	line-height: var(--vih-ad-line-height, 1.26) !important;
	color: #000000 !important;
	margin: 0 !important;
	white-space: pre-wrap;
	word-break: break-word;
}

/* Close-up 1:1 Stage */
.vih-closeup-stage {
	background: #e2e8f0;
	border-radius: 10px;
	padding: 14px;
}

.vih-closeup-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #fff;
	padding: 8px 12px;
	border-radius: 7px;
	margin-bottom: 12px;
	font-size: 9.5pt;
	color: var(--vih-muted);
}

.vih-closeup-logo {
	height: 26px;
	width: auto;
	object-fit: contain;
}

.vih-closeup-logo.is-paper-sabah {
	height: 40px;
}

.vih-closeup-scroll {
	overflow: auto;
	max-height: 580px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 8px;
}

.vih-closeup-fit-wrap {
	transform-origin: top center;
}

.vih-ad-print-closeup {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
	flex-shrink: 0;
	transform-origin: top center;
}

/* ==========================================================================
   PRICING BREAKDOWN & PAYMENT TRANSFER CARD
   ========================================================================== */

.vih-pricing-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--vih-border-light);
	margin-bottom: 12px;
}

.vih-pricing-paper {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif);
	font-weight: 900;
	font-size: 13.5pt;
	color: var(--vih-primary);
}

.vih-pricing-sub {
	font-size: 10pt;
	color: var(--vih-muted);
}

.vih-applied-tier {
	background: var(--vih-accent-soft);
	color: var(--vih-accent);
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 4px 9px;
	font-size: 9.5pt;
	font-weight: 700;
}

.vih-applied-tier.is-maktu {
	background: var(--vih-success-bg);
	color: var(--vih-success);
	border-color: #bbf7d0;
}

.vih-price-rows {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 14px;
}

.vih-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11pt;
	color: #334155;
}

.vih-price-row[hidden] {
	display: none !important;
}

.vih-price-row strong {
	color: var(--vih-primary);
}

.vih-discount-line {
	color: var(--vih-success);
	background: var(--vih-success-bg);
	padding: 4px 8px;
	border-radius: 6px;
}

.vih-discount-line strong {
	color: var(--vih-success);
}

.vih-grand-total-bar {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
	color: #ffffff;
	border-radius: 11px;
	padding: 14px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.vih-grand-label {
	font-size: 11pt;
	font-weight: 600;
}

.vih-grand-note {
	font-size: 9pt;
	color: #cbd5e1;
}

.vih-grand-amount {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif);
	font-weight: 900;
	font-size: 19pt;
	letter-spacing: -0.01em;
	color: #ffffff;
}

/* Half & Full Page Special Discount / Reference Code Box */
.vih-special-ref-box {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 1.5px dashed #d97706;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
}

.vih-special-ref-box[hidden] {
	display: none !important;
}

.vih-ref-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}

.vih-ref-badge {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif);
	font-weight: 900;
	font-size: 10.5pt;
	color: #92400e;
}

.vih-ref-code-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #f59e0b;
	border-radius: 7px;
	padding: 3px 6px 3px 10px;
	font-size: 9.5pt;
	color: #78350f;
}

.vih-ref-code {
	font-family: Consolas, Monaco, monospace;
	font-size: 11.5pt;
	font-weight: 900;
	letter-spacing: 0.06em;
	color: #b45309;
}

.vih-ref-copy-btn {
	appearance: none;
	background: #d97706;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	padding: 3px 8px;
	font-family: inherit;
	font-size: 8.5pt;
	font-weight: 700;
	cursor: pointer;
}

.vih-ref-copy-btn:hover {
	background: #b45309;
}

.vih-ref-desc {
	font-size: 9.5pt;
	color: #78350f;
	line-height: 1.35;
}

/* Customer Contact Fields & WhatsApp Visual Approval Button */
.vih-approval-form {
	margin: 0;
}

.vih-customer-box {
	background: var(--vih-bg);
	border: 1px solid var(--vih-border-light);
	border-radius: 11px;
	padding: 13px 14px;
	margin-bottom: 12px;
}

.vih-customer-title {
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif);
	font-weight: 900;
	font-size: 11pt;
	color: var(--vih-primary);
	margin-bottom: 10px;
}

.vih-customer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

@media (max-width: 560px) {
	.vih-customer-grid {
		grid-template-columns: 1fr;
	}
}

.vih-c-field label {
	display: block;
	font-size: 9.5pt;
	color: #334155;
	margin-bottom: 3px;
}

.vih-c-field input {
	width: 100%;
	border: 1.5px solid var(--vih-border);
	border-radius: 8px;
	padding: 8px 10px;
	background: #ffffff;
	color: #0f172a;
	font-family: inherit;
	font-size: 10.5pt;
	font-weight: 600;
}

.vih-c-field input:focus {
	outline: none;
	border-color: var(--vih-accent);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.vih-c-field input.is-invalid {
	border-color: #dc2626;
	background: #fef2f2;
}

.vih-form-error {
	margin-top: 9px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 7px;
	padding: 7px 10px;
	font-size: 9.5pt;
}

.vih-form-error[hidden] {
	display: none !important;
}

.vih-wa-approve-btn {
	appearance: none;
	width: 100%;
	background: #16a34a;
	color: #ffffff;
	border: none;
	border-radius: 11px;
	padding: 13px 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif);
	font-weight: 900;
	font-size: 12pt;
	transition: background 0.16s ease, opacity 0.16s ease;
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

.vih-wa-approve-btn:hover {
	background: #15803d;
}

.vih-wa-approve-btn:disabled {
	opacity: 0.72;
	cursor: wait;
}

.vih-wa-approve-left {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-align: left;
}

.vih-wa-icon {
	flex-shrink: 0;
}

.vih-pay-btn-amount {
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 10px;
	border-radius: 7px;
	font-size: 11pt;
	white-space: nowrap;
}

/* Cross-Newspaper Comparison Strip */
.vih-compare-strip {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--vih-border);
}

.vih-compare-head {
	font-size: 9.5pt;
	color: var(--vih-muted);
	margin-bottom: 8px;
}

.vih-compare-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
}

@media (max-width: 480px) {
	.vih-compare-items {
		grid-template-columns: 1fr;
	}
}

.vih-compare-item {
	appearance: none;
	background: var(--vih-bg);
	border: 1px solid var(--vih-border-light);
	border-radius: 8px;
	padding: 7px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: inherit;
	font-size: 10pt;
	cursor: pointer;
	color: var(--vih-text);
	transition: border-color 0.15s;
}

.vih-compare-item:hover {
	border-color: var(--vih-accent);
}

.vih-compare-item.is-current {
	background: var(--vih-accent-soft);
	border-color: var(--vih-accent);
}

.vih-compare-item strong {
	color: var(--vih-primary);
}

/* Disclaimer Footer */
.vih-disclaimer-box {
	margin-top: 20px;
	background: #f8fafc;
	border: 1px solid var(--vih-border-light);
	border-left: 4px solid #475569;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 10pt;
	color: #475569;
}

/* Built-in Order Modal */
.vih-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.vih-modal-backdrop[hidden] {
	display: none !important;
}

.vih-modal-dialog {
	background: #fff;
	border-radius: 14px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.vih-modal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--vih-border-light);
}

.vih-modal-head h3 {
	margin: 0 !important;
	font-family: var(--vih-heading-font, "Segoe UI Black", "Segoe UI", Arial, sans-serif) !important;
	font-size: 15pt !important;
}

.vih-modal-close {
	appearance: none;
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--vih-muted);
}

.vih-modal-body {
	padding: 18px 20px;
	font-size: 10.5pt;
}

.vih-modal-summary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 14px;
	background: var(--vih-bg);
	padding: 12px;
	border-radius: 8px;
}

.vih-modal-ad-preview {
	border: 2.5px solid #000;
	padding: 14px;
	text-align: center;
	background: #fff;
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vih-modal-foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid var(--vih-border-light);
}

.vih-modal-secondary,
.vih-modal-copy {
	appearance: none;
	border-radius: 8px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 10.5pt;
	font-weight: 600;
	cursor: pointer;
}

.vih-modal-secondary {
	background: #f1f5f9;
	border: 1px solid var(--vih-border);
	color: var(--vih-text);
}

.vih-modal-copy {
	background: var(--vih-accent);
	border: none;
	color: #fff;
}

/* Mobile Touch & iOS Safari Refinements */
@media (max-width: 640px) {
	.vih-wrap {
		margin: 16px auto;
		padding: 0 8px;
	}

	.vih-panel,
	.vih-mockup-card,
	.vih-pricing-card {
		padding: 14px;
		border-radius: 12px;
	}

	.vih-main-title,
	.vih-mockup-title {
		font-size: 16pt !important;
	}

	/* >= 16px prevents iOS Safari automatic viewport zoom when tapping inputs */
	.vih-input-bold,
	.vih-textarea-regular,
	.vih-c-field input {
		font-size: 16px;
	}

	.vih-newspaper-stage,
	.vih-closeup-stage {
		padding: 8px;
	}

	.vih-grand-amount {
		font-size: 16pt;
	}

	.vih-wa-approve-btn {
		padding: 12px 13px;
		font-size: 11pt;
		flex-wrap: wrap;
		justify-content: center;
	}

	.vih-modal-summary-grid {
		grid-template-columns: 1fr;
	}
}
