/*
 * Rasid — Order Completed (2.1.0): the confirmation / order-status
 * surfaces in the store's ONE dark identity. Tokens mirror the theme
 * ladder (rasid.css :root): bg #222328 · surface #2C2D33 · ink #fff ·
 * line hsla(0,0%,100%,.14) · accent #00c8ff · save #4ade80.
 * No gradients, no glass, no shadows on resting surfaces, no entrance
 * animation — a transactional page the customer re-opens for codes.
 * Bottom padding on the wrap keeps the site's floating WhatsApp
 * button from ever covering content on this page.
 */

/* ---------- shared chips / states (also used on view-order) ---------- */
.rc-chip {
	display: inline-flex; align-items: center; white-space: nowrap;
	font-size: 12px; font-weight: 800; border-radius: 999px;
	padding: 4px 12px; border: 1px solid transparent; flex-shrink: 0;
}
.rc-chip-ok      { background: rgba(74, 222, 128, .13);  color: #4ade80; border-color: rgba(74, 222, 128, .35); }
.rc-chip-warn    { background: rgba(251, 191, 36, .12);  color: #fbbf24; border-color: rgba(251, 191, 36, .35); }
.rc-chip-info    { background: rgba(0, 200, 255, .12);   color: #00c8ff; border-color: rgba(0, 200, 255, .35); }
.rc-chip-pending { background: rgba(251, 146, 60, .12);  color: #fb923c; border-color: rgba(251, 146, 60, .35); }
.rc-chip-bad     { background: rgba(248, 113, 113, .12); color: #f87171; border-color: rgba(248, 113, 113, .35); }
.rc-chip-neutral { background: rgba(255, 255, 255, .08); color: #b9c0cc; border-color: hsla(0, 0%, 100%, .2); }

.rc-state {
	display: inline-flex; align-items: center; white-space: nowrap;
	font-size: 12px; font-weight: 800; border-radius: 999px;
	padding: 5px 12px; border: 1px solid transparent; flex-shrink: 0;
}
.rc-state-ready       { background: rgba(74, 222, 128, .13);  color: #4ade80; border-color: rgba(74, 222, 128, .35); }
.rc-state-pending     { background: rgba(0, 200, 255, .12);   color: #00c8ff; border-color: rgba(0, 200, 255, .35); }
.rc-state-delayed     { background: rgba(251, 191, 36, .12);  color: #fbbf24; border-color: rgba(251, 191, 36, .35); }
.rc-state-failed_item { background: rgba(248, 113, 113, .12); color: #f87171; border-color: rgba(248, 113, 113, .35); }
.rc-state-na          { background: rgba(255, 255, 255, .08); color: #b9c0cc; border-color: hsla(0, 0%, 100%, .2); }

.rc-note { margin: 8px 0 0; font-size: 13px; line-height: 1.9; color: #b9c0cc; }

/* ---------- the confirmation page ---------- */
#roc-wrap {
	--rc-card: #2c2d33;
	--rc-row: rgba(255, 255, 255, .045);
	--rc-line: hsla(0, 0%, 100%, .14);
	--rc-ink: #ffffff;
	--rc-ink2: #b9c0cc;
	--rc-accent: #00c8ff;
	--rc-accent-ink: #004980;
	direction: rtl;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	padding: 4px 0 132px; /* float clearance: the WhatsApp bubble never covers content */
	color: var(--rc-ink);
}
#roc-wrap * { box-sizing: border-box; }
#roc-wrap section { margin: 0 0 12px; }

#roc-wrap .rc-status {
	background: var(--rc-card);
	border: 1px solid var(--rc-line);
	border-radius: 16px;
	padding: 16px 18px 12px;
	text-align: center;
}
#roc-wrap .rc-status-head {
	display: flex; align-items: center; justify-content: center; gap: 12px;
}
#roc-wrap .rc-status-ic {
	width: 46px; height: 46px; flex: none;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 200, 255, .14);
}
#roc-wrap .rc-status-ic svg { width: 24px; height: 24px; }
#roc-wrap .rc-tone-ok .rc-status-ic      { background: rgba(74, 222, 128, .15); }
#roc-wrap .rc-tone-warn .rc-status-ic    { background: rgba(251, 191, 36, .14); }
#roc-wrap .rc-tone-bad .rc-status-ic     { background: rgba(248, 113, 113, .14); }
#roc-wrap .rc-tone-pending .rc-status-ic { background: rgba(251, 146, 60, .14); }
#roc-wrap .rc-tone-neutral .rc-status-ic { background: rgba(255, 255, 255, .09); }
#roc-wrap .rc-status-title {
	margin: 0; font-size: 24px; font-weight: 800; line-height: 1.4; color: var(--rc-ink);
}
#roc-wrap .rc-status-line {
	margin: 10px auto 0; max-width: 520px;
	font-size: 14.5px; line-height: 1.9; color: var(--rc-ink2);
}
#roc-wrap .rc-status-note { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: var(--rc-ink2); }

/* the one status rail: مدفوع · قيد التجهيز · تم التسليم */
#roc-wrap .rc-rail {
	list-style: none; margin: 14px 0 2px; padding: 12px 6px 0;
	border-top: 1px solid var(--rc-line);
	display: flex; justify-content: space-between; gap: 4px;
}
#roc-wrap .rc-rail-step {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	flex: 1 1 0; min-width: 0; text-align: center;
}
#roc-wrap .rc-rail-dot {
	width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 800;
	background: rgba(255, 255, 255, .07); color: var(--rc-ink2);
	border: 1px solid var(--rc-line);
}
#roc-wrap .rc-rail-step.is-done .rc-rail-dot {
	background: rgba(74, 222, 128, .16); color: #4ade80; border-color: rgba(74, 222, 128, .4);
}
#roc-wrap .rc-rail-step.is-current .rc-rail-dot {
	background: var(--rc-accent); color: var(--rc-accent-ink); border-color: var(--rc-accent);
}
#roc-wrap .rc-rail-label { font-size: 12.5px; font-weight: 700; color: var(--rc-ink2); }
#roc-wrap .rc-rail-step.is-current .rc-rail-label { color: var(--rc-ink); }
#roc-wrap .rc-rail-step.is-done .rc-rail-label { color: #4ade80; }

#roc-wrap .rc-card {
	background: var(--rc-card);
	border: 1px solid var(--rc-line);
	border-radius: 16px;
	padding: 14px 18px;
}
#roc-wrap .rc-card-title {
	margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--rc-ink);
}
#roc-wrap .rc-items { display: grid; gap: 10px; }
#roc-wrap .rc-item {
	background: var(--rc-row);
	border: 1px solid var(--rc-line);
	border-radius: 12px;
	padding: 12px 14px;
}
#roc-wrap .rc-item-head {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
#roc-wrap .rc-item-name { font-size: 14.5px; font-weight: 700; line-height: 1.7; color: var(--rc-ink); min-width: 0; overflow-wrap: anywhere; }
#roc-wrap .rc-qty { color: var(--rc-ink2); font-weight: 700; }
#roc-wrap .rc-payload { display: grid; gap: 10px; margin-top: 10px; }
#roc-wrap .rc-code-row {
	display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap;
	background: rgba(0, 0, 0, .22);
	border: 1px dashed rgba(0, 200, 255, .35);
	border-radius: 12px; padding: 10px;
}
#roc-wrap .rc-code-val {
	flex: 1 1 200px; min-width: 0;
	font-size: 14px; line-height: 2; color: var(--rc-ink);
	word-break: break-word; overflow-wrap: anywhere;
}
#roc-wrap .rc-code-row a { color: var(--rc-accent); font-weight: 800; }
#roc-wrap .rc-copy-btn {
	flex-shrink: 0; min-height: 44px; min-width: 76px;
	border: 1px solid rgba(0, 200, 255, .4); background: rgba(0, 200, 255, .1); color: var(--rc-accent);
	border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; padding: 8px 16px;
	transition: transform 160ms ease-out;
}
#roc-wrap .rc-copy-btn:active { transform: scale(.97); }
#roc-wrap .rc-page-actions { margin-top: 12px; }

#roc-wrap .rc-facts {
	display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px;
	background: var(--rc-card); border: 1px solid var(--rc-line);
	border-radius: 16px; padding: 12px 16px;
}
#roc-wrap .rc-fact { display: grid; gap: 2px; min-width: 0; }
#roc-wrap .rc-fact-label { font-size: 11.5px; font-weight: 700; color: var(--rc-ink2); }
#roc-wrap .rc-fact-value { font-size: 14px; font-weight: 800; color: var(--rc-ink); overflow-wrap: anywhere; }
#roc-wrap .rc-fact-email { font-size: 12.5px; }

#roc-wrap .rc-safe {
	margin: 0 0 14px; padding: 10px 14px;
	font-size: 13px; line-height: 1.8; color: var(--rc-ink2);
	background: rgba(0, 200, 255, .06);
	border: 1px solid rgba(0, 200, 255, .18);
	border-radius: 12px;
}

#roc-wrap .rc-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: rcnext; }
#roc-wrap .rc-next li {
	display: flex; gap: 8px; align-items: baseline;
	font-size: 13.5px; line-height: 1.7; color: var(--rc-ink2);
}
#roc-wrap .rc-next li strong { color: var(--rc-ink); font-weight: 800; white-space: nowrap; }
#roc-wrap .rc-links { margin: 12px 0 0; font-size: 13.5px; }
#roc-wrap .rc-links a { color: var(--rc-accent); font-weight: 800; text-decoration: none; }

#roc-wrap .rc-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
#roc-wrap a.rc-btn {
	display: inline-flex; width: 100%; min-height: 48px;
	align-items: center; justify-content: center; text-align: center;
	padding: 12px 16px; border-radius: 12px;
	font-size: 15px; font-weight: 800; text-decoration: none;
	transition: transform 160ms ease-out;
}
#roc-wrap a.rc-btn:active { transform: scale(.97); }
#roc-wrap a.rc-btn-primary { background: var(--rc-accent); color: var(--rc-accent-ink) !important; }
#roc-wrap button.rc-btn {
	display: inline-flex; width: 100%; min-height: 48px;
	align-items: center; justify-content: center;
	padding: 12px 16px; border-radius: 12px; cursor: pointer;
	font-size: 14px; font-weight: 800;
	transition: transform 160ms ease-out;
}
#roc-wrap button.rc-btn:active { transform: scale(.97); }
#roc-wrap .rc-btn-ghost {
	background: rgba(255, 255, 255, .05); color: var(--rc-ink) !important;
	border: 1px solid var(--rc-line);
}

#roc-wrap .rc-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
#roc-wrap .rc-social a {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px;
	border-radius: 12px; text-decoration: none;
	font-size: 14.5px; font-weight: 800; color: var(--rc-ink) !important;
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--rc-line);
	transition: transform 160ms ease-out;
}
#roc-wrap .rc-social a:active { transform: scale(.97); }
#roc-wrap .rc-social svg { width: 19px; height: 19px; flex-shrink: 0; }
#roc-wrap .rc-foot a { color: var(--rc-accent); font-weight: 800; text-decoration: none; }

@media (max-width: 640px) {
	#roc-wrap { padding-bottom: 124px; }
	#roc-wrap .rc-status { padding: 16px 14px 12px; }
	#roc-wrap .rc-status-title { font-size: 21px; }
	#roc-wrap .rc-status-ic { width: 40px; height: 40px; }
	#roc-wrap .rc-status-ic svg { width: 21px; height: 21px; }
	#roc-wrap .rc-card { padding: 14px; }
	#roc-wrap .rc-facts { grid-template-columns: 1fr 1fr; }
	#roc-wrap .rc-fact--email { grid-column: 1 / -1; order: 3; }
	#roc-wrap .rc-fact-email { font-size: 13px; }
	#roc-wrap .rc-code-row { flex-direction: column; }
	#roc-wrap .rc-code-val { flex: 0 1 auto; }
	#roc-wrap .rc-copy-btn { width: 100%; }
	#roc-wrap .rc-btns, #roc-wrap .rc-social { grid-template-columns: 1fr 1fr; }
}

/* ---------- view-order canonical strip (My Account) ---------- */
.rc-vieworder-strip {
	direction: rtl; border-radius: 16px; padding: 16px; margin: 0 0 18px;
	border: 1px solid hsla(0, 0%, 100%, .14); background: #2c2d33;
	max-width: 100%; color: #ffffff;
}
.rc-vieworder-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rc-vieworder-title { font-size: 16px; font-weight: 800; color: #ffffff; }
.rc-vieworder-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-vieworder-items li {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: 13px; color: #ffffff; background: rgba(255, 255, 255, .045);
	border: 1px solid hsla(0, 0%, 100%, .1); border-radius: 12px; padding: 8px 12px;
}
.rc-vo-name { font-weight: 700; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rc-vo-class { font-size: 12px; color: #00c8ff; }
.rc-vieworder-strip .rc-note { color: #b9c0cc; }

/* ---------- digital-codes summary (My Account) ---------- */
.rc-dc-summary {
	direction: rtl; border: 1px solid hsla(0, 0%, 100%, .14); border-radius: 16px;
	padding: 14px 16px; margin-bottom: 18px; background: #2c2d33;
	max-width: 100%; color: #ffffff;
}
.rc-dc-title { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #ffffff; }
.rc-dc-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-dc-summary li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.rc-dc-summary a { font-weight: 800; color: #00c8ff; text-decoration: none; }

@media (max-width: 640px) {
	.rc-vieworder-strip, .rc-dc-summary { padding: 12px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	#roc-wrap a.rc-btn, #roc-wrap button.rc-btn, #roc-wrap .rc-copy-btn, #roc-wrap .rc-social a { transition: none; }
}
