/* OrderStraight owner requests. All selectors prefixed orr-. No external assets. */
.orr-invite, .orr-view {
  --orr-navy: var(--os-primary, #1C2A44);
  --orr-cream: var(--os-bg, #F7F5F0);
  --orr-surface: var(--os-surface, #FFFDF8);
  --orr-coral: var(--os-accent, #E8604C);
  --orr-coral-d: var(--os-accent-d, #C94A37);
  --orr-text: var(--os-text, #1C2A44);
  --orr-muted: var(--os-muted, #5C6475);
  --orr-line: var(--os-line, #E5E2DA);
  --orr-error: #B3261E;
  --orr-focus: #1C2A44;
}

/* Shared button */
.orr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; max-width: 100%;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--orr-coral-d); color: #FFFDF8;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.3;
  text-decoration: none; text-align: center; box-sizing: border-box;
}
.orr-btn:hover { background: var(--orr-navy); }
.orr-btn:focus-visible, .orr-invite a:focus-visible, .orr-view a:focus-visible,
.orr-view input:focus-visible, .orr-view button:focus-visible, .orr-summary:focus {
  outline: 3px solid var(--orr-focus); outline-offset: 3px;
}

/* Homepage invitation */
.orr-invite { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 14px 24px; background: #FFFFFF; }
body.os-rail-view .orr-invite { display: none; }
.orr-footer-link { display: inline-block; padding: 8px; color: inherit; text-underline-offset: 3px; }
.orr-invite__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
  padding: 18px 2px 0; border-top: 1px solid var(--orr-line); color: var(--orr-text);
}
.orr-invite__text { flex: 1 1 280px; min-width: 0; }
.orr-invite__title { margin: 0 0 2px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--orr-navy); }
.orr-invite__body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--orr-muted); max-width: 60ch; }
.orr-invite__cta {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  min-height: 44px; padding: 10px 4px; margin-inline-start: -4px;
  color: var(--orr-navy); font-size: 15px; font-weight: 700; line-height: 1.3;
  text-decoration: none; background: none; border: 0;
}
.orr-invite__cta:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .orr-invite__inner { padding-top: 16px; }
  .orr-invite__cta { min-height: 40px; padding-block: 8px; }
}

/* Public view */
body.orr-view {
  margin: 0; min-height: 100vh; background: var(--orr-cream); color: var(--orr-text);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-text-size-adjust: 100%;
}
.orr-view *, .orr-view *::before, .orr-view *::after { box-sizing: border-box; }
.orr-skip { position: absolute; inset-inline-start: 8px; top: -60px; padding: 10px 14px; background: var(--orr-navy); color: var(--orr-cream); border-radius: 8px; z-index: 10; }
.orr-skip:focus { top: 8px; }
.orr-top { background: var(--orr-navy); color: var(--orr-cream); }
.orr-top__inner { max-width: 640px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.orr-brand { color: var(--orr-cream); font-weight: 800; font-size: 18px; text-decoration: none; }
.orr-lang { color: var(--orr-cream); font-weight: 700; padding: 8px 12px; border: 1px solid rgba(247,245,240,.5); border-radius: 999px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.orr-view .orr-top a:focus-visible { outline-color: var(--orr-cream); }
.orr-main { width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; }
.orr-back { display: inline-block; margin-bottom: 14px; color: var(--orr-navy); font-weight: 600; }
.orr-card { background: var(--orr-surface); border: 1px solid var(--orr-line); border-radius: 16px; padding: 24px 20px; }
.orr-h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; color: var(--orr-navy); }
.orr-intro { margin: 0 0 20px; color: var(--orr-muted); }

.orr-summary { border: 2px solid var(--orr-error); background: #FCEDEB; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; color: var(--orr-error); }
.orr-summary__h { margin: 0 0 6px; font-weight: 700; }
.orr-summary ul { margin: 0; padding-inline-start: 20px; }
.orr-summary a { color: var(--orr-error); font-weight: 600; }

.orr-field { margin-bottom: 18px; }
.orr-label { display: block; font-weight: 700; color: var(--orr-navy); margin-bottom: 4px; }
.orr-tag { font-weight: 400; font-size: 14px; color: var(--orr-muted); }
.orr-hint { margin: 0 0 6px; font-size: 14px; color: var(--orr-muted); }
.orr-error { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--orr-error); }
.orr-input {
  display: block; width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--orr-text); background: #FFFDF8;
  border: 1.5px solid #8A8F9C; border-radius: 10px;
}
.orr-input.orr-ltr { direction: ltr; text-align: left; }
[dir="rtl"] .orr-input.orr-ltr { text-align: right; }
.orr-field--error .orr-input { border-color: var(--orr-error); border-width: 2px; }
.orr-privacy { margin: 4px 0 18px; font-size: 14px; color: var(--orr-muted); }
.orr-btn--submit { width: 100%; }

.orr-success { text-align: center; }
.orr-success__msg { margin: 0 0 20px; font-size: 17px; }

/* Honeypot: visually hidden, out of tab order */
.orr-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

@media (max-width: 420px) {
  .orr-card { padding: 20px 14px; }
  .orr-h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .orr-view * { transition: none !important; } }
