/* ============================================================
   Visa Photo Requirements - Front-end styles (RTL aware)
   Scoped under .rvpr-wrap to avoid theme conflicts
   ============================================================ */

.rvpr-wrap {
	--rvpr-accent: #1f6feb;
	--rvpr-border: #d9dee6;
	--rvpr-bg-soft: #f6f8fa;
	--rvpr-text: #1f2328;
	--rvpr-muted: #6b7480;
	direction: rtl;
	text-align: right;
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5em 0;
	font-family: inherit;
	color: var(--rvpr-text);
}
.rvpr-wrap[dir="auto"]:not([data-checker]) { direction: rtl; }

/* html[dir=ltr] sites */
html[dir="ltr"] .rvpr-wrap,
.rvpr-wrap.rvpr-ltr {
	direction: ltr;
	text-align: left;
}

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

.rvpr-title {
	font-size: 1.5em;
	margin: 0 0 .3em;
	line-height: 1.4;
}
.rvpr-subtitle {
	color: var(--rvpr-muted);
	margin: 0 0 1.2em;
}

/* ---------- Picker ---------- */
.rvpr-picker {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	background: var(--rvpr-bg-soft);
	border: 1px solid var(--rvpr-border);
	border-radius: 14px;
	padding: 20px;
}
@media (max-width: 640px) {
	.rvpr-picker { grid-template-columns: 1fr; }
}
.rvpr-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: .95em;
}
.rvpr-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rvpr-accent);
	color: #fff;
	font-size: .78em;
	flex: 0 0 auto;
}
.rvpr-select {
	width: 100%;
	padding: 10px 12px;
	font-size: .98em;
	border: 1px solid var(--rvpr-border);
	border-radius: 9px;
	background: #fff;
	color: var(--rvpr-text);
	min-height: 44px;
}
.rvpr-select:focus {
	outline: 2px solid var(--rvpr-accent);
	outline-offset: 1px;
	border-color: var(--rvpr-accent);
}
.rvpr-select:disabled { opacity: .6; cursor: not-allowed; }

/* Respect the HTML hidden attribute even when component styles set display:flex/block. */
.rvpr-wrap [hidden] { display: none !important; }

/* ---------- Loader & error ---------- */
.rvpr-loader {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 4px;
	color: var(--rvpr-muted);
}
.rvpr-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--rvpr-border);
	border-top-color: var(--rvpr-accent);
	border-radius: 50%;
	animation: rvpr-spin .8s linear infinite;
	flex: 0 0 auto;
}
@keyframes rvpr-spin { to { transform: rotate(360deg); } }

.rvpr-error {
	background: #fff1f0;
	border: 1px solid #ffccc7;
	color: #a8071a;
	border-radius: 9px;
	padding: 10px 14px;
	margin: 12px 0;
}

/* ---------- Result card ---------- */
.rvpr-result {
	margin-top: 18px;
	background: #fff;
	border: 1px solid var(--rvpr-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
}
.rvpr-result-head {
	padding: 18px 22px 0;
}
.rvpr-result-title {
	margin: 0 0 4px;
	font-size: 1.25em;
}
.rvpr-result-doc {
	margin: 0 0 6px;
	color: var(--rvpr-muted);
}
.rvpr-result-body {
	display: grid;
	grid-template-columns: minmax(230px, 300px) 1fr;
	gap: 20px;
	padding: 16px 22px 22px;
}
@media (max-width: 720px) {
	.rvpr-result-body { grid-template-columns: 1fr; }
}
.rvpr-sample-col { text-align: center; }
.rvpr-sample-box {
	background: var(--rvpr-bg-soft);
	border: 1px solid var(--rvpr-border);
	border-radius: 12px;
	padding: 10px;
	display: inline-block;
	max-width: 100%;
}
.rvpr-sample-svg {
	max-width: 100%;
	height: auto;
	display: block;
}
.rvpr-sample-caption {
	color: var(--rvpr-muted);
	font-size: .85em;
	margin: 8px 0 0;
}

.rvpr-spec-row {
	display: flex;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--rvpr-border);
	font-size: .95em;
	align-items: baseline;
}
.rvpr-spec-row:last-child { border-bottom: 0; }
.rvpr-spec-key {
	flex: 0 0 42%;
	color: var(--rvpr-muted);
	font-weight: 600;
}
.rvpr-spec-val { flex: 1 1 auto; word-break: break-word; }
.rvpr-big { font-size: 1.25em; color: var(--rvpr-accent); }
.rvpr-unit { color: var(--rvpr-muted); }

.rvpr-swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, .25);
	vertical-align: middle;
	margin-inline-end: 6px;
	flex: 0 0 auto;
}

.rvpr-notes {
	margin: 0 22px 18px;
	background: #fffbe6;
	border: 1px solid #ffe58f;
	border-radius: 12px;
	padding: 14px 16px;
}
.rvpr-notes h4 { margin: 0 0 6px; font-size: .98em; }
.rvpr-notes p { margin: 0; line-height: 1.9; font-size: .93em; }

.rvpr-source {
	padding: 0 22px 14px;
	font-size: .88em;
	color: var(--rvpr-muted);
	word-break: break-all;
}
.rvpr-source a { color: var(--rvpr-accent); }

.rvpr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	border-radius: 9px;
	border: 1px solid var(--rvpr-accent);
	background: var(--rvpr-accent);
	color: #fff;
	font-size: .92em;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: filter .15s ease;
}
.rvpr-btn:hover { filter: brightness(1.08); }
.rvpr-btn:focus-visible { outline: 2px solid var(--rvpr-accent); outline-offset: 2px; }

/* ---------- Checker ---------- */
.rvpr-checker {
	margin: 0 22px 22px;
	border-top: 1px solid var(--rvpr-border);
	padding-top: 16px;
}
.rvpr-checker h4 { margin: 0 0 4px; }
.rvpr-checker-hint {
	color: var(--rvpr-muted);
	font-size: .88em;
	margin: 0 0 12px;
	line-height: 1.8;
}
.rvpr-checker-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.rvpr-checker-file {
	font-size: .9em;
	max-width: 320px;
}
.rvpr-checker-output { margin-top: 14px; }

.rvpr-check-preview {
	text-align: center;
	margin-bottom: 12px;
}
.rvpr-check-preview img {
	max-width: 180px;
	max-height: 240px;
	border-radius: 10px;
	border: 1px solid var(--rvpr-border);
	box-shadow: 0 2px 10px rgba(15, 23, 42, .1);
}

.rvpr-check-summary {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95em;
	margin-bottom: 12px;
}
.rvpr-summary-pass { background: #e6f9ec; color: #11773b; }
.rvpr-summary-warn { background: #fff7e6; color: #ad6800; }
.rvpr-summary-fail { background: #fff1f0; color: #a8071a; }

.rvpr-check-list { display: grid; gap: 8px; }
.rvpr-check-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border: 1px solid var(--rvpr-border);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: .92em;
	line-height: 1.8;
}
.rvpr-check-item strong { font-size: 1em; }
.rvpr-check-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-top: 8px;
	flex: 0 0 auto;
}
.rvpr-pass .rvpr-check-dot { background: #2da44e; }
.rvpr-warn .rvpr-check-dot { background: #d4a72c; }
.rvpr-fail .rvpr-check-dot { background: #cf222e; }

.rvpr-check-note {
	color: var(--rvpr-muted);
	font-size: .85em;
	margin: 12px 0 0;
	line-height: 1.8;
}
.rvpr-check-fileinfo {
	color: var(--rvpr-muted);
	font-size: .82em;
	margin: 4px 0 0;
	direction: ltr;
	text-align: right;
}
html[dir="ltr"] .rvpr-check-fileinfo { text-align: left; }

.rvpr-disclaimer {
	padding: 0 22px 20px;
	color: var(--rvpr-muted);
	font-size: .8em;
	margin: 0;
	line-height: 1.8;
}

/* ---------- Empty state ---------- */
.rvpr-empty {
	background: var(--rvpr-bg-soft);
	border: 1px dashed var(--rvpr-border);
	border-radius: 12px;
	padding: 22px;
	color: var(--rvpr-muted);
	text-align: center;
}

/* ---------- Table view ---------- */
.rvpr-table-wrap .rvpr-search {
	width: 100%;
	max-width: 420px;
	padding: 10px 14px;
	border: 1px solid var(--rvpr-border);
	border-radius: 9px;
	font-size: .95em;
	margin-bottom: 14px;
}
.rvpr-table-wrap .rvpr-search:focus { outline: 2px solid var(--rvpr-accent); outline-offset: 1px; }

.rvpr-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--rvpr-border);
	border-radius: 12px;
}
.rvpr-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	min-width: 640px;
}
.rvpr-table th,
.rvpr-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--rvpr-border);
	text-align: right;
	font-size: .92em;
}
html[dir="ltr"] .rvpr-table th,
html[dir="ltr"] .rvpr-table td { text-align: left; }
.rvpr-table thead th {
	background: var(--rvpr-bg-soft);
	font-weight: 700;
	position: sticky;
	top: 0;
}
.rvpr-table tbody tr:hover { background: #fafbfc; }
.rvpr-table tbody tr:last-child td { border-bottom: 0; }
.rvpr-table-empty {
	color: var(--rvpr-muted);
	text-align: center;
	padding: 14px;
}


/* ---------- Browser-only photo processor ---------- */
.rvpr-processor {
        margin: 24px 0 0;
        padding: 20px;
        border: 1px solid var(--rvpr-border);
        border-radius: 16px;
        background: var(--rvpr-bg, #fff);
        color: var(--rvpr-text, #24292f);
}
.rvpr-processor h4 { margin: 0 0 8px; font-size: 1.12em; }
.rvpr-processor-hint, .rvpr-processor-note {
        margin: 0 0 14px; color: var(--rvpr-muted); font-size: .9em; line-height: 1.9;
}
.rvpr-processor-upload { display: grid; gap: 8px; margin-bottom: 14px; }
.rvpr-processor-file {
        display: block; max-width: 100%; width: 100%; box-sizing: border-box;
        padding: 12px; border: 1px dashed var(--rvpr-border); border-radius: 10px;
        background: var(--rvpr-bg-soft, #f6f8fa); color: inherit;
}
.rvpr-processor-status {
        margin: 4px 0 0; padding: 9px 12px; border-radius: 8px;
        background: var(--rvpr-bg-soft, #f6f8fa); color: var(--rvpr-muted); font-size: .88em; line-height: 1.8;
        overflow-wrap: anywhere;
}
.rvpr-processor-status.rvpr-status-success { color: #116329; background: #dafbe1; }
.rvpr-processor-status.rvpr-status-warning { color: #7d4e00; background: #fff1c2; }
.rvpr-processor-status.rvpr-status-error { color: #a40e26; background: #ffebe9; }
/* Validator UX inspired by modern photo pre-checkers; analysis remains a pre-check. */
.rvpr-dropzone {
        display: grid; justify-items: center; gap: 7px; padding: 22px 16px;
        border: 1.5px dashed var(--rvpr-accent, #6638b6); border-radius: 12px;
        background: var(--rvpr-bg-soft, #f6f8fa); text-align: center; cursor: pointer;
        transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rvpr-dropzone:hover, .rvpr-dropzone-active { border-style: solid; background: #f1ebff; transform: translateY(-1px); }
.rvpr-dropzone-icon { display: grid; place-items: center; border-radius: 50%; width: 38px; height: 38px; font-size: 26px; font-weight: 700; background: var(--rvpr-accent, #6638b6); color: #fff; }
.rvpr-dropzone-meta { color: var(--rvpr-muted); font-size: .82em; }
.rvpr-dropzone .rvpr-processor-file { max-width: 360px; padding: 6px; border: 0; background: transparent; }
.rvpr-btn-run-check { width: 100%; font-weight: 700; min-height: 44px; }
.rvpr-btn-run-check:disabled { opacity: .5; cursor: not-allowed; }
.rvpr-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 4px 0 8px; }
.rvpr-report-eyebrow { color: var(--rvpr-muted); font-size: .82em; margin-bottom: 5px; }
.rvpr-score { display: grid; justify-items: end; gap: 3px; min-width: 110px; }
.rvpr-score strong { font-size: 28px; line-height: 1.1; color: var(--rvpr-text, #24292f); }
.rvpr-score strong small { font-size: 12px; color: var(--rvpr-muted); }
.rvpr-score span { color: var(--rvpr-muted); font-size: .72em; text-align: end; }
.rvpr-score-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--rvpr-border, #d0d7de); margin: 0 0 16px; }
.rvpr-score-track span { display: block; height: 100%; border-radius: inherit; background: var(--rvpr-accent, #6638b6); transition: width .25s ease; }
.rvpr-check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media(max-width:720px) { .rvpr-check-list { grid-template-columns: 1fr; } .rvpr-report-head { align-items: center; } .rvpr-score { min-width: 95px; } }

.rvpr-processor [hidden] { display: none !important; }

.rvpr-source-attribution{font-size:.86em;line-height:1.8;padding:.65rem .8rem;background:rgba(109,56,199,.06);border-radius:.6rem;overflow-wrap:anywhere}
.rvpr-source-attribution a{text-decoration:underline}


/* Royal typography: use Vazirmatn throughout the complete plugin interface. */
.rvpr-wrap,
.rvpr-wrap *,
.rvpr-wrap *::before,
.rvpr-wrap *::after {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* Document selector is intentionally English/LTR even when surrounding UI is Persian RTL. */
.rvpr-wrap .rvpr-doc-select {
    direction: ltr !important;
    text-align: left !important;
    text-align-last: left;
    unicode-bidi: isolate;
}
.rvpr-wrap .rvpr-doc-select option {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: isolate;
    font-family: 'Vazirmatn', sans-serif !important;
}


/* v1.6.0 — numbered country picker and compact, responsive result cards */
.rvpr-wrap { font-family: 'Vazirmatn', sans-serif !important; }
.rvpr-wrap button, .rvpr-wrap input, .rvpr-wrap select, .rvpr-wrap textarea { font-family: 'Vazirmatn', sans-serif !important; }
.rvpr-country-custom-enabled .rvpr-country-native { display: none !important; }
.rvpr-country-picker { display:none; position:relative; width:100%; }
.rvpr-country-custom-enabled .rvpr-country-picker { display:block; }
.rvpr-country-trigger {
  display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:46px;
  border:1px solid var(--rvpr-border); border-radius:11px; padding:10px 13px; background:#fff; color:var(--rvpr-text);
  text-align:right; font-size:.97rem; cursor:pointer; transition:border-color .15s, box-shadow .15s;
}
.rvpr-country-trigger:hover, .rvpr-country-trigger[aria-expanded="true"] { border-color:var(--rvpr-accent); box-shadow:0 0 0 3px rgba(31,111,235,.09); }
.rvpr-country-trigger-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rvpr-country-caret { color:var(--rvpr-accent); font-size:1.25rem; line-height:1; flex:none; }
.rvpr-country-menu {
  position:absolute; z-index:9999; inset-inline:0; top:calc(100% + 7px); padding:9px; border:1px solid #d7deea;
  border-radius:14px; background:#fff; box-shadow:0 16px 40px rgba(20,35,60,.16); max-height:360px; overflow:hidden;
}
.rvpr-country-search-label { display:block; margin:0 0 8px; }
.rvpr-country-search { display:block; width:100%; min-height:40px; border:1px solid var(--rvpr-border); border-radius:9px; padding:8px 11px; font-size:.91rem; direction:rtl; }
.rvpr-country-list { display:grid; gap:3px; max-height:285px; overflow-y:auto; overscroll-behavior:contain; padding:2px; }
.rvpr-country-option { appearance:none; display:flex; align-items:center; gap:10px; width:100%; border:0; border-radius:9px; padding:7px 9px; background:transparent; color:var(--rvpr-text); text-align:right; cursor:pointer; font-size:.91rem; line-height:1.55; }
.rvpr-country-option:hover, .rvpr-country-option:focus-visible, .rvpr-country-option[aria-selected="true"] { background:#edf4ff; outline:none; }
.rvpr-country-option[hidden] { display:none !important; }
.rvpr-country-option-num { display:inline-flex; width:24px; height:24px; flex:0 0 24px; align-items:center; justify-content:center; border-radius:50%; background:var(--rvpr-accent,#1f6feb); color:#fff; font-size:.74rem; font-weight:700; line-height:1; direction:ltr; }
.rvpr-country-option-name { min-width:0; }
.rvpr-result { border-color:#dce3ed; border-radius:20px; box-shadow:0 10px 36px rgba(28,47,76,.09); }
.rvpr-result-head { padding:19px 22px 13px; background:linear-gradient(135deg,#f5f8ff 0%,#ffffff 75%); border-bottom:1px solid #e8edf5; }
.rvpr-result-title { font-size:1.18rem; font-weight:800; letter-spacing:-.02em; }
.rvpr-result-doc { font-size:.95rem; line-height:1.55; }
.rvpr-result-body { display:grid; grid-template-columns:minmax(205px, .72fr) minmax(0, 1.5fr); gap:17px; padding:17px; align-items:start; }
.rvpr-sample-col { min-width:0; padding:14px; background:#f7f9fc; border:1px solid #e5eaf2; border-radius:15px; }
.rvpr-sample-box { max-width:100%; background:#fff; border-color:#e2e7ef; padding:9px; }
.rvpr-sample-svg { max-height:330px; width:auto; max-width:100%; margin:0 auto; }
.rvpr-spec-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; align-items:stretch; }
.rvpr-spec-row { display:flex; flex-direction:column; align-items:stretch; gap:5px; padding:11px 12px; min-width:0; border:1px solid #e8edf4; border-radius:12px; background:#fff; border-bottom:1px solid #e8edf4; font-size:.88rem; line-height:1.65; }
.rvpr-spec-key { flex:none; width:100%; color:#68758a; font-size:.78rem; font-weight:700; }
.rvpr-spec-val { flex:1; min-width:0; font-weight:600; overflow-wrap:anywhere; }
.rvpr-big { font-size:1.28rem; }
.rvpr-source { margin:0 17px 8px; padding:11px 13px; border-radius:11px; border:1px solid #e4eaf3; background:#f8fafc; font-size:.82rem; line-height:1.8; overflow-wrap:anywhere; }
.rvpr-source-primary { border-color:#d4e3ff; background:#f4f8ff; }
.rvpr-source-pending { border-color:#f2deb6; background:#fff9ec; color:#7b591d; }
.rvpr-source-attribution { border:0; background:#f8f5ff; }
.rvpr-notes { margin:0 17px 12px; padding:13px 15px; border-radius:12px; }
.rvpr-disclaimer { margin:0 17px 16px; color:#798497; font-size:.78rem; line-height:1.8; }
.rvpr-checker { margin:0 17px 18px; padding:17px; border:1px solid #e2e8f2; border-radius:15px; background:#fbfcfe; }
.rvpr-checker-heading { display:flex; align-items:flex-start; gap:11px; margin-bottom:12px; }
.rvpr-checker-icon { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; border-radius:11px; color:#fff; background:var(--rvpr-accent,#1f6feb); font-size:1.15rem; font-weight:800; }
.rvpr-checker-heading h4 { margin:0 0 4px; font-size:1.05rem; }
.rvpr-checker-hint { margin:0; color:var(--rvpr-muted); font-size:.83rem; line-height:1.8; }
.rvpr-processor .rvpr-dropzone { padding:20px 13px; background:#fff; }
.rvpr-selected-file { margin:8px 0; color:var(--rvpr-muted); font-size:.82rem; overflow-wrap:anywhere; }
.rvpr-processor .rvpr-btn-run-check { margin-top:5px; }
.rvpr-analysis-loading { padding:16px; color:var(--rvpr-muted); text-align:center; }
.rvpr-processor-note { margin:12px 0 0; font-size:.77rem; line-height:1.8; color:var(--rvpr-muted); }
.rvpr-checker-output { min-width:0; }
.rvpr-check-preview { background:#f0f3f8; border-radius:11px; padding:10px; }
.rvpr-check-preview img { display:block; max-width:min(100%,250px); max-height:310px; object-fit:contain; margin:0 auto; border-radius:4px; }
.rvpr-table-doc-en { direction:ltr; text-align:left; font-family:'Vazirmatn',sans-serif; }
.rvpr-wrap [hidden] { display:none !important; }
@media (max-width:720px) {
  .rvpr-picker { grid-template-columns:minmax(0,1fr); gap:13px; padding:14px; }
  .rvpr-country-menu { max-height:min(65vh,380px); }
  .rvpr-country-list { max-height:calc(min(65vh,380px) - 65px); }
  .rvpr-result { border-radius:16px; }
  .rvpr-result-head { padding:15px 15px 11px; }
  .rvpr-result-body { grid-template-columns:minmax(0,1fr); gap:12px; padding:12px; }
  .rvpr-sample-col { padding:10px; }
  .rvpr-sample-svg { max-height:280px; }
  .rvpr-spec-col { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .rvpr-spec-row { padding:9px 10px; border-radius:10px; font-size:.82rem; }
  .rvpr-spec-key { font-size:.73rem; }
  .rvpr-spec-val { font-size:.86rem; }
  .rvpr-source, .rvpr-notes, .rvpr-disclaimer { margin-inline:12px; }
.rvpr-checker { margin:0 12px 13px; padding:12px; }
  .rvpr-check-list { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:360px) {
  .rvpr-spec-col { grid-template-columns:minmax(0,1fr); }
}


/* v1.6.0 visual polish — blue step numbers, clear compact information cards, responsive mobile layout. */
.rvpr-wrap { --rvpr-step-blue: #1f6feb; }
.rvpr-wrap .rvpr-step-num,
.rvpr-wrap .rvpr-country-option-num { background: var(--rvpr-step-blue) !important; color: #fff !important; }
.rvpr-country-option-num { box-shadow: 0 1px 2px rgba(31,111,235,.18); }
.rvpr-country-option { border: 1px solid transparent; }
.rvpr-country-option[aria-selected="true"] { border-color: #b7d2ff; }
.rvpr-result { overflow: hidden; background: #fff; }
.rvpr-result-head { display: grid; gap: 4px; }
.rvpr-result-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.rvpr-result-doc { margin: 0; color: #334155; font-weight: 600; overflow-wrap: anywhere; }
.rvpr-result-body { grid-template-columns: minmax(180px, .65fr) minmax(0, 1.7fr); }
.rvpr-spec-col { align-content: start; }
.rvpr-spec-row { box-shadow: 0 1px 2px rgba(18,38,63,.025); }
.rvpr-spec-val { font-variant-numeric: tabular-nums; }
.rvpr-source a { color: #175cd3; font-weight: 650; }
.rvpr-source-primary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.rvpr-checker-output { margin-top: 13px; padding-top: 12px; border-top: 1px solid #e8edf4; }
.rvpr-check-item { display: flex; gap: 9px; align-items: flex-start; }
.rvpr-check-item > div { min-width: 0; overflow-wrap: anywhere; }
.rvpr-check-fileinfo { text-align: center; font-size: .78rem; color: var(--rvpr-muted); overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .rvpr-result-body { grid-template-columns: minmax(0,1fr); }
  .rvpr-sample-col { display: grid; justify-items: center; }
  .rvpr-sample-box { width: 100%; display: grid; place-items: center; }
  .rvpr-sample-caption { margin-bottom: 0; }
  .rvpr-spec-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rvpr-spec-row { min-width: 0; }
  .rvpr-result-head { padding: 14px 15px 12px; }
  .rvpr-result-title { font-size: 1.05rem; }
  .rvpr-result-doc { font-size: .88rem; }
  .rvpr-report-head { align-items: flex-start; }
  .rvpr-score strong { font-size: 24px; }
}
@media (max-width: 420px) {
  .rvpr-spec-col { grid-template-columns: minmax(0,1fr); }
  .rvpr-checker-heading { gap: 8px; }
  .rvpr-dropzone { padding: 16px 10px; }
  .rvpr-country-option { padding: 7px 8px; }
}


/* v1.7.1 — remove print action, localize country-first placeholder, and align the photo beside its details on desktop. */
.rvpr-result-body {
  display:grid !important;
  grid-template-columns:minmax(225px, .82fr) minmax(0, 1.3fr) !important;
  grid-template-areas:"sample details";
  align-items:start !important;
  gap:12px !important;
  padding:12px !important;
  direction:rtl;
}
.rvpr-sample-col {
  grid-area:sample;
  display:flex !important;
  justify-content:center !important;
  align-items:flex-start !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
}
.rvpr-sample-box {
  width:100% !important;
  max-width:440px !important;
  padding:0 !important;
  margin:0 auto !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  display:block !important;
}
.rvpr-sample-svg {
  display:block !important;
  width:100% !important;
  max-width:440px !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:680 / 760 !important;
  margin:0 auto !important;
}
.rvpr-details-card {
  grid-area:details;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:11px 12px 10px;
  border:1px solid #e1e8f2;
  border-radius:14px;
  background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%);
  display:flex;
  flex-direction:column;
  gap:7px;
}
.rvpr-details-eyebrow {
  color:#52657b;
  font-size:.77rem;
  line-height:1.4;
  font-weight:800;
  margin:0 0 1px;
}
.rvpr-details-card .rvpr-spec-col {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:3px 14px;
  padding:0;
  margin:0;
  background:transparent;
  border:0;
}
.rvpr-details-card .rvpr-spec-row {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:3px;
  min-width:0;
  padding:6px 2px;
  margin:0;
  border:0;
  border-bottom:1px dashed #dbe5f1;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  font-size:.82rem;
  line-height:1.55;
}
.rvpr-details-card .rvpr-spec-key {
  flex:none;
  width:100%;
  color:#6a7a90;
  font-size:.73rem;
  font-weight:700;
}
.rvpr-details-card .rvpr-spec-val {
  flex:1 1 auto;
  min-width:0;
  font-size:.83rem;
  font-weight:650;
  overflow-wrap:anywhere;
  color:#203249;
}
.rvpr-details-card .rvpr-big {font-size:1.05rem;}
.rvpr-details-notes {
  padding:8px 10px;
  border:1px solid #e6ebf4;
  border-radius:10px;
  background:#fff;
  font-size:.8rem;
  line-height:1.8;
}
.rvpr-details-notes strong {display:block;margin-bottom:2px;color:#52657b;}
.rvpr-details-notes p {margin:0;}
.rvpr-details-card .rvpr-source {
  min-width:0;
  margin:0;
  padding:7px 9px;
  font-size:.76rem;
  line-height:1.75;
  border-radius:9px;
  overflow-wrap:anywhere;
}
.rvpr-details-card .rvpr-source-attribution {background:#f4f6ff;}
.rvpr-result-body .rvpr-swatch {display:inline-block;width:10px;height:10px;border:1px solid #c5ceda;border-radius:50%;vertical-align:middle;margin-inline-end:4px;}
.rvpr-disclaimer {margin:0 12px 14px;font-size:.75rem;line-height:1.8;}
@media(max-width:760px) {
  .rvpr-result-body {
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"sample" "details";
    gap:8px !important;
    padding:9px !important;
  }
  .rvpr-sample-box {max-width:380px !important;}
  .rvpr-details-card {padding:9px 10px;border-radius:12px;gap:6px;}
  .rvpr-details-card .rvpr-spec-col {gap:2px 9px;}
  .rvpr-details-card .rvpr-spec-row {padding:5px 1px;font-size:.78rem;}
  .rvpr-details-card .rvpr-spec-key {font-size:.7rem;}
  .rvpr-details-card .rvpr-spec-val {font-size:.79rem;}
}
@media(max-width:520px) {
  .rvpr-details-card .rvpr-spec-col {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:360px) {
  .rvpr-details-card .rvpr-spec-col {grid-template-columns:minmax(0,1fr);}
}


/* v1.7.2 — Persian document prompt in red and a polished globe icon for country selection. */
.rvpr-country-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; flex:0 0 24px;
  color:var(--rvpr-accent,#1f6feb);
  transition:transform .18s ease, color .18s ease;
}
.rvpr-country-icon svg {display:block;width:22px;height:22px;}
.rvpr-country-trigger:hover .rvpr-country-icon,
.rvpr-country-trigger[aria-expanded="true"] .rvpr-country-icon {
  color:#1257c5;
}
.rvpr-country-trigger[aria-expanded="true"] .rvpr-country-icon {transform:scale(1.06);}
.rvpr-wrap .rvpr-doc-select.rvpr-doc-placeholder {
  color:#c62828 !important;
  font-weight:700 !important;
  direction:rtl !important;
  text-align:right !important;
  text-align-last:right !important;
}
.rvpr-wrap .rvpr-doc-select.rvpr-doc-placeholder option[value=""] {
  color:#c62828 !important;
  font-weight:700 !important;
  direction:rtl !important;
  text-align:right !important;
}


/* v1.7.3 — only the empty document prompt is red; option labels remain normal. */
.rvpr-wrap .rvpr-doc-select.rvpr-doc-placeholder {
  color: #c62828 !important;
  font-weight: 700 !important;
}
.rvpr-wrap .rvpr-doc-select.rvpr-doc-placeholder option:not([value=""]) {
  color: var(--rvpr-text, #1f2328) !important;
  font-weight: 400 !important;
  direction: ltr !important;
  text-align: left !important;
  background-color: #fff;
}
.rvpr-wrap .rvpr-doc-select.rvpr-doc-placeholder option[value=""] {
  color: #c62828 !important;
  font-weight: 700 !important;
}

/* Intrinsic-width picker layout: widths follow the longest option, not the grid halves. */
.rvpr-wrap .rvpr-picker {
  grid-template-columns: max-content max-content !important;
  justify-content: start !important;
  align-items: start !important;
}
.rvpr-wrap .rvpr-picker > .rvpr-field {
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.rvpr-wrap .rvpr-country-picker {
  width: max-content;
  max-width: 100%;
}
.rvpr-wrap .rvpr-country-trigger {
  width: 100%;
  max-width: 100%;
}
.rvpr-wrap .rvpr-doc-select {
  width: max-content;
  max-width: 100%;
}
.rvpr-wrap .rvpr-country-icon {
  width: 22px;
  height: 22px;
}
.rvpr-wrap .rvpr-country-icon svg {
  width: 21px;
  height: 21px;
}
@media (max-width: 640px) {
  .rvpr-wrap .rvpr-picker {
    grid-template-columns: minmax(0, max-content) !important;
    justify-content: start !important;
  }
  .rvpr-wrap .rvpr-picker > .rvpr-field {
    width: max-content !important;
    max-width: 100% !important;
  }
  .rvpr-wrap .rvpr-country-picker,
  .rvpr-wrap .rvpr-doc-select {
    max-width: 100% !important;
  }
}


/* v1.7.4 — locally hosted SVG flags (4:3 aspect ratio). */
.rvpr-wrap .rvpr-country-trigger {gap:9px;}
.rvpr-wrap .rvpr-country-trigger-flag-frame,
.rvpr-wrap .rvpr-country-flag-frame,
.rvpr-wrap .rvpr-result-flag-frame {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px;
  width:28px; height:21px; aspect-ratio:4/3; overflow:hidden; border:1px solid #dce3ed;
  border-radius:4px; background:linear-gradient(135deg,#f8fafc,#eef3f9); box-sizing:border-box;
}
.rvpr-wrap .rvpr-country-trigger-flag-frame {width:30px;height:22.5px;flex-basis:30px;}
.rvpr-wrap .rvpr-country-trigger-flag-frame.is-missing,
.rvpr-wrap .rvpr-country-flag-frame.is-missing,
.rvpr-wrap .rvpr-result-flag-frame.is-missing {background:transparent;border-color:transparent;}
.rvpr-wrap img.rvpr-country-trigger-flag,
.rvpr-wrap img.rvpr-country-option-flag,
.rvpr-wrap img.rvpr-result-flag {display:block;width:100%;height:100%;object-fit:cover;}
.rvpr-wrap img.rvpr-country-trigger-flag[hidden],
.rvpr-wrap img.rvpr-country-option-flag[hidden],
.rvpr-wrap img.rvpr-result-flag[hidden] {display:none !important;}
.rvpr-wrap .rvpr-country-option {gap:9px;}
.rvpr-wrap .rvpr-country-option .rvpr-country-flag-frame {margin-inline-start:1px;}
.rvpr-wrap .rvpr-result-title {display:flex;align-items:center;gap:9px;}
.rvpr-wrap .rvpr-result-flag-frame {flex-basis:32px;width:32px;height:24px;}


/* v1.7.5 — flags appear only beside the selected-country result title. */
.rvpr-wrap .rvpr-result-title { display:flex !important; align-items:center !important; gap:12px !important; flex-wrap:wrap; }
.rvpr-wrap .rvpr-result-flag-frame {
  display:inline-flex !important; align-items:center; justify-content:center; flex:0 0 64px !important;
  width:64px !important; height:48px !important; aspect-ratio:4/3; overflow:hidden;
  border:1px solid #d6e1ef; border-radius:7px; background:#f1f5f9; box-shadow:0 2px 7px rgba(22,52,84,.10);
}
.rvpr-wrap img.rvpr-result-flag { display:block !important; width:100% !important; height:100% !important; object-fit:contain; background:#fff; }
.rvpr-wrap img.rvpr-result-flag[hidden] {display:none !important;}
.rvpr-wrap .rvpr-result-flag-frame.is-missing { opacity:.75; }
.rvpr-wrap .rvpr-result-country-name { min-width:0; }
.rvpr-wrap .rvpr-source-date,.rvpr-wrap .rvpr-source-review {font-size:.82em;color:var(--rvpr-muted);}
@media(max-width:520px) {
  .rvpr-wrap .rvpr-result-flag-frame {flex-basis:56px !important;width:56px !important;height:42px !important;}
  .rvpr-wrap .rvpr-result-title {gap:9px !important;}
}


/* v1.7.8: source-confidence notice for records awaiting official reconciliation */
.rvpr-official-review-warning {
  margin: 0 12px 8px;
  padding: 9px 12px;
  border: 1px solid #edc97c;
  border-radius: 10px;
  background: #fff8e8;
  color: #704500;
  font-family: Vazirmatn, sans-serif;
  font-size: .79rem;
  line-height: 1.85;
}
@media (max-width: 520px) {
  .rvpr-official-review-warning { margin: 0 9px 7px; padding: 8px 10px; font-size: .76rem; }
}


/* v1.7.9 — consistent rectangular flag framing with a subtle corner radius. */
.rvpr-wrap .rvpr-result-flag-frame {
  width:64px !important;
  height:48px !important;
  flex:0 0 64px !important;
  aspect-ratio:4/3 !important;
  overflow:hidden !important;
  border-radius:4px !important;
  border:1px solid #d6e1ef !important;
  background:#f1f5f9 !important;
  box-shadow:0 2px 6px rgba(22,52,84,.08) !important;
}
.rvpr-wrap img.rvpr-result-flag {
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:3px !important;
  background:#fff;
}
@media(max-width:520px) {
  .rvpr-wrap .rvpr-result-flag-frame {
    width:56px !important;
    height:42px !important;
    flex-basis:56px !important;
    border-radius:4px !important;
  }
}
