/* ---------- Fonts (bundled, OFL) ---------- */
@font-face { font-family: "TLV Frank"; font-weight: 500; font-display: block; src: url("../fonts/frank-ruhl-libre-hebrew-500.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "TLV Frank"; font-weight: 700; font-display: block; src: url("../fonts/frank-ruhl-libre-hebrew-700.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "TLV Frank"; font-weight: 500; font-display: block; src: url("../fonts/frank-ruhl-libre-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "TLV Frank"; font-weight: 700; font-display: block; src: url("../fonts/frank-ruhl-libre-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "TLV Heebo"; font-weight: 400; font-display: block; src: url("../fonts/heebo-hebrew-400.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "TLV Heebo"; font-weight: 600; font-display: block; src: url("../fonts/heebo-hebrew-600.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "TLV Heebo"; font-weight: 400; font-display: block; src: url("../fonts/heebo-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "TLV Heebo"; font-weight: 600; font-display: block; src: url("../fonts/heebo-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212; }

/* ---------- Button on the product page ---------- */
.tlv-valuation-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.tlv-valuation-btn:hover,
.tlv-valuation-btn:focus { background: none; color: inherit; opacity: .75; }
.tlv-valuation-btn[aria-busy="true"] { cursor: progress; opacity: .6; }
.tlv-valuation-btn.is-placeholder { cursor: default; }
.tlv-valuation-icon { flex: none; }

/* ---------- Off-screen stage the certificate is rendered in ---------- */
.tlv-cert-stage {
	position: fixed;
	top: 0;
	left: -20000px;
	width: 1123px;
	height: 794px;
	pointer-events: none;
}

/* ---------- Certificate (A4 landscape @ 96dpi = 1123 × 794) ---------- */
.tlv-cert,
.tlv-cert * { box-sizing: border-box; margin: 0; padding: 0; border: 0; letter-spacing: normal; text-transform: none; text-shadow: none; }

.tlv-cert {
	--bg: #E6D5B3;
	--paper: #FBF8F1;
	--ink: #1E1E1E;
	--muted: #7A6F5E;
	--gold: #B8914C;
	--gold-dark: #8C6A2F;
	--tint: #EFE3CB;

	position: relative;
	width: 1123px;
	height: 794px;
	padding: 26px 30px 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "TLV Heebo", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	direction: rtl;
	text-align: right;
	overflow: hidden;
}
.tlv-cert::before {
	content: "";
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	border: 1px solid var(--gold);
	pointer-events: none;
}

.tlv-cert .c-head { text-align: center; }
.tlv-cert .c-logo { display: block; height: 78px; width: auto; margin: 0 auto 10px; }
.tlv-cert .c-title { font-family: "TLV Frank", Georgia, serif; font-weight: 700; font-size: 27px; line-height: 1.2; }
.tlv-cert .c-subtitle { font-family: "TLV Frank", Georgia, serif; font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--gold-dark); }

.tlv-cert .c-body {
	display: flex;
	gap: 14px;
	height: 522px;
	margin-top: 16px;
}
.tlv-cert .c-panel {
	flex: 1 1 0;
	position: relative;
	padding: 24px 28px;
	background: var(--paper);
	border: 1px solid #D9C69E;
}
.tlv-cert .c-panel-title { font-family: "TLV Frank", Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.2; }
.tlv-cert .c-panel-sub { direction: ltr; text-align: right; font-size: 10.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--gold); }

/* Valuation panel */
.tlv-cert .c-text-he { margin-top: 18px; font-size: 13.5px; line-height: 1.85; }
.tlv-cert .c-text-he div + div { margin-top: 2px; }
.tlv-cert .c-text-en { margin-top: 18px; font-size: 11.5px; line-height: 1.7; color: #4A4235; direction: ltr; text-align: left; }
.tlv-cert .c-value {
	position: absolute;
	right: 28px;
	left: 28px;
	bottom: 28px;
	padding: 18px 22px;
	background: var(--tint);
	border-right: 3px solid var(--gold);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}
.tlv-cert .c-value-label { font-family: "TLV Frank", Georgia, serif; font-weight: 700; font-size: 18px; line-height: 1.3; }
.tlv-cert .c-value-label-en { direction: ltr; text-align: right; font-size: 10.5px; color: var(--muted); }
.tlv-cert .c-value-amount { font-family: "TLV Frank", Georgia, serif; font-weight: 700; font-size: 34px; line-height: 1; color: var(--gold-dark); direction: ltr; white-space: nowrap; }

/* Details panel */
.tlv-cert .c-details { display: flex; gap: 22px; margin-top: 8px; }
.tlv-cert .c-rows { flex: 1 1 auto; }
.tlv-cert .c-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #E6DAC1;
}
.tlv-cert .c-row:last-child { border-bottom: 0; }
.tlv-cert .c-label { flex: none; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.tlv-cert .c-label-en { display: block; direction: ltr; text-align: right; unicode-bidi: isolate; font-weight: 400; font-size: 10px; color: var(--muted); line-height: 1.3; }
.tlv-cert .c-val { font-size: 14px; line-height: 1.3; text-align: left; }
.tlv-cert .c-ltr { direction: ltr; unicode-bidi: isolate; }

.tlv-cert .c-photo { flex: none; width: 210px; padding-top: 10px; text-align: center; }
.tlv-cert .c-photo-img {
	width: 210px;
	height: 210px;
	background-color: #fff;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	border: 1px solid #E6DAC1;
}
.tlv-cert .c-photo-label { margin-top: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.tlv-cert .c-photo-label .c-label-en { text-align: center; }

.tlv-cert .c-foot { padding-top: 14px; text-align: center; }
.tlv-cert .c-foot-he { font-family: "TLV Frank", Georgia, serif; font-weight: 500; font-size: 15px; line-height: 1.3; }
.tlv-cert .c-foot-en { font-family: "TLV Frank", Georgia, serif; font-weight: 500; font-size: 12px; line-height: 1.4; color: var(--gold-dark); }
