/* ==========================================================================
   Online Menu - Reservation Tracking ("رهگیری رزرو")
   A boarding-pass / receipt styled card, RTL, mobile-first.
   ========================================================================== */

.omt-track {
	--omt-notch-bg: #ffffff; /* must match the page/section background behind
	                             the ticket so the perforation "holes" blend
	                             in - override this if your page background
	                             isn't white. */
	direction: rtl;
	text-align: right;
	max-width: 460px;
	margin: 0 auto;
	font-size: 14px;
	color: #212529;
}
.omt-track * { box-sizing: border-box; }

/* ----- Lookup form ----- */
.omt-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 18px;
}
.omt-field { flex: 1 1 160px; margin: 0; }
.omt-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 12.5px; color: #495057; }
.omt-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}
.omt-btn {
	flex: 1 1 100%;
	padding: 11px 18px;
	border: none;
	border-radius: 10px;
	background: #EFB419;
	color: #001D3D;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .18s ease, opacity .18s ease;
}
.omt-btn:hover { background: #d9a30f; }
.omt-btn:disabled { opacity: .65; cursor: default; }

.omt-download {
	margin-top: 14px;
	width: 100%;
	background: #001D3D;
	color: #fff;
}
.omt-download:hover { background: #003566; }

.omt-message {
	padding: 10px 14px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 600;
	background: #ffe3e3;
	color: #c92a2a;
}
.omt-message.is-loading { background: #e7f5ff; color: #1971c2; }

/* ----- Ticket card ----- */
.omt-ticket {
	background: #fff;
	border-radius: 18px;
	overflow: visible;
	box-shadow: 0 10px 30px rgba(0,0,0,.10);
	position: relative;
	animation: omt-fade-in .25s ease;
}
@keyframes omt-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.omt-ticket-top {
	position: relative;
	border-radius: 18px 18px 0 0;
	padding: 20px 20px 26px;
	background: linear-gradient(135deg, #001D3D, #003566);
	color: #fff;
	overflow: hidden;
}
.omt-ticket-top-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
}
.omt-passenger { display: flex; flex-direction: column; gap: 3px; }
.omt-ticket-top .omt-label { color: rgba(255,255,255,.8); font-size: 11.5px; }
.omt-ticket-top .omt-value { font-weight: 700; font-size: 16px; }
.omt-code-label { margin-top: 8px; }
.omt-code-value { font-family: 'Courier New', monospace; letter-spacing: 1px; direction: ltr; text-align: right; }

.omt-stub { display: flex; align-items: center; }
.omt-stub-bars { display: flex; gap: 3px; align-items: flex-end; height: 40px; }
.omt-stub-bars span { display: block; background: rgba(255,255,255,.55); height: 100%; border-radius: 1px; }

.omt-status-ribbon {
	position: absolute;
	top: 14px;
	left: -34px;
	background: rgba(0,0,0,.22);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 40px;
	transform: rotate(-45deg);
}
.omt-badge-status-confirmed .omt-status-ribbon { background: rgba(43,138,62,.55); }
.omt-badge-status-cancelled .omt-status-ribbon { background: rgba(201,42,42,.55); }

/* Perforation line with two half-circle notches, like a torn ticket stub */
.omt-perforation {
	position: relative;
	height: 0;
	border-top: 2px dashed rgba(0,0,0,.15);
}
.omt-notch {
	position: absolute;
	top: -12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--omt-notch-bg);
}
.omt-notch-right { right: -12px; }
.omt-notch-left { left: -12px; }

.omt-ticket-bottom { padding: 22px 20px 20px; }

.omt-restaurant-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.omt-restaurant-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.omt-restaurant-name { font-weight: 700; font-size: 15px; }

.omt-grid-2 { display: flex; justify-content: space-between; gap: 14px; }
.omt-cell { display: flex; flex-direction: column; gap: 4px; }
.omt-cell-left { text-align: left; align-items: flex-end; }
.omt-label { font-size: 11.5px; color: #868e96; }
.omt-value { font-weight: 700; font-size: 14px; }
.omt-value.omt-big { font-size: 19px; }

.omt-dash-sep { border-top: 1px dashed #e9ecef; margin: 16px 0; }

.omt-block-title { font-weight: 700; font-size: 12.5px; color: #495057; margin: 0 0 8px; }
.omt-items-list { display: flex; flex-direction: column; gap: 6px; }
.omt-item-line { display: flex; justify-content: space-between; font-size: 13px; color: #495057; }
.omt-item-line span:last-child { direction: rtl; }
.omt-item-qty { color: #adb5bd; }

.omt-totals { display: flex; flex-direction: column; gap: 6px; }
.omt-total-line { display: flex; justify-content: space-between; font-size: 13px; color: #495057; }
.omt-total-line span:last-child { direction: rtl; }
.omt-total-line-main { font-size: 16px; font-weight: 800; color: #212529; }

.omt-footer-badges { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.omt-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	background: #e9ecef;
	color: #495057;
}
.omt-pill-payment-paid { background: #d3f9d8; color: #2b8a3e; }
.omt-pill-payment-pending { background: #fff3bf; color: #997404; }
.omt-pill-payment-failed { background: #ffe3e3; color: #c92a2a; }

@media (max-width: 420px) {
	.omt-ticket-top-inner { flex-direction: column; }
	.omt-stub { align-self: flex-start; }
}

/* ----- Standalone usage (payment callback success/failed page) ----- */
.omt-track-standalone { text-align: center; }
.omt-result-icon { display: flex; justify-content: center; margin-bottom: 10px; }
.omt-result-title { font-size: 19px; margin: 0 0 6px; }
.omt-result-sub { color: #495057; margin: 0 0 20px; font-size: 13.5px; }
.omt-track-standalone .omt-ticket { text-align: right; margin-bottom: 0; }
.omt-result-foot { color: #868e96; font-size: 12.5px; margin-top: 16px; }
