/* Localization interaction fixtures and missions (localization_bare layout).
   Logical properties only, so the same rules lay out the RTL (ar) pages. */

.l10n-app { background: #f8fafc; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif; color: #111827; }
.l10n-app-main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.l10n-page h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.l10n-page h3 { margin-block: 0 0.75rem; }

.l10n-form .l10n-field { margin-block-end: 0.9rem; }
.l10n-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.l10n-form label, .l10n-form .l10n-label { display: block; font-weight: 600; margin-block-end: 0.25rem; }
.l10n-form input:not([type=checkbox]):not([type=radio]) {
  width: 100%; box-sizing: border-box; padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1; border-radius: 6px; font: inherit;
}
.l10n-checks label { font-weight: 400; }
.su-hint, .su-help, .mc-hint { margin: 0.25rem 0 0; font-size: 0.85rem; color: #4b5563; }
.su-error, .mb-error, .mc-error, .ca-promo-error { margin: 0.25rem 0 0; font-size: 0.85rem; color: #b91c1c; }
.su-strength { margin: 0.25rem 0 0; font-size: 0.85rem; }

.l10n-btn {
  display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; font: inherit; cursor: pointer;
}
.l10n-btn--primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.l10n-btn--danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.l10n-btn:disabled { opacity: 0.5; cursor: default; }
.l10n-link { background: none; border: none; padding: 0; color: #1d4ed8; text-decoration: underline; cursor: pointer; font: inherit; }
.controls { margin-block-start: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.l10n-toast, .l10n-snackbar {
  position: fixed; inset-block-end: 1.25rem; inset-inline-start: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 0.7rem 1.1rem; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); z-index: 20;
}
[dir=rtl] .l10n-toast, [dir=rtl] .l10n-snackbar { transform: translateX(50%); }
.l10n-snackbar { inset-block-end: 4.5rem; display: flex; gap: 1rem; align-items: center; }
.l10n-snackbar .l10n-link { color: #93c5fd; }
.l10n-toast[hidden], .l10n-snackbar[hidden] { display: none; }

/* Sign-up */
.su-tip-wrap { position: relative; display: inline-block; margin-inline-start: 0.35rem; }
.su-tip-button { inline-size: 1.4rem; block-size: 1.4rem; border-radius: 50%; border: 1px solid #94a3b8; background: #fff; cursor: help; font-size: 0.8rem; }
.su-tooltip {
  position: absolute; inset-block-start: 1.8rem; inset-inline-start: 0; inline-size: 18rem;
  background: #111827; color: #fff; font-weight: 400; font-size: 0.85rem; padding: 0.5rem 0.7rem; border-radius: 6px; z-index: 5;
}
.su-country { position: relative; }
.su-country-button { inline-size: 100%; text-align: start; padding: 0.5rem 0.6rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; font: inherit; cursor: pointer; }
.su-country-list { position: absolute; inset-inline: 0; margin: 0.2rem 0 0; padding: 0.25rem 0; list-style: none; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; z-index: 5; }
.su-country-option { padding: 0.4rem 0.7rem; cursor: pointer; }
.su-country-option:hover, .su-country-option:focus { background: #eef2ff; }
.su-success { color: #166534; }

/* Cart */
.ca-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0.75rem; align-items: center; padding-block: 0.6rem; border-block-end: 1px dashed #e5e7eb; }
.ca-item:last-child { border-block-end: none; }
.ca-item[hidden] { display: none; }
.ca-item-main { display: flex; flex-direction: column; gap: 0.15rem; }
.ca-sku, .ca-weight { font-size: 0.82rem; color: #4b5563; }
.ca-qty { display: flex; align-items: center; gap: 0.35rem; }
.ca-step { inline-size: 1.8rem; block-size: 1.8rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer; }
.ca-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ca-promo input { padding: 0.45rem 0.6rem; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.ca-promo .ca-promo-error { flex-basis: 100%; }
.ca-total { font-size: 1.05rem; }

/* Dashboard */
.db-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.db-notif { position: relative; }
.db-notif-panel { position: absolute; inset-inline-end: 0; inline-size: 16rem; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.6rem 0.9rem; z-index: 5; }
.db-tabs { display: flex; gap: 0.25rem; border-block-end: 1px solid #e5e7eb; margin-block-end: 1rem; }
.db-tab { padding: 0.5rem 0.9rem; border: none; background: none; font: inherit; cursor: pointer; border-block-end: 3px solid transparent; }
.db-tab--active { border-block-end-color: #2563eb; font-weight: 600; }
.db-table { inline-size: 100%; border-collapse: collapse; }
.db-table th, .db-table td { text-align: start; padding: 0.4rem; border-block-end: 1px solid #e5e7eb; }
.db-faq-question { display: block; inline-size: 100%; text-align: start; padding: 0.5rem 0; border: none; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.db-faq-answer { margin: 0 0 0.5rem; }
.db-dialog { border: 1px solid #cbd5e1; border-radius: 10px; padding: 1.25rem 1.5rem; max-inline-size: 26rem; }
.db-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }

/* Missions */
.mission-brief { background: #fefce8; border-color: #fde68a; }
.mb-calendar { max-inline-size: 22rem; }
.mb-calendar-head { display: flex; justify-content: space-between; align-items: center; margin-block-end: 0.5rem; }
.mb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; text-align: center; }
.mb-weekday { font-size: 0.8rem; font-weight: 600; color: #4b5563; }
.mb-day { padding: 0.35rem 0; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; }
.mb-day[aria-pressed=true] { background: #2563eb; color: #fff; border-color: #2563eb; }
.mb-options, .mc-options { border: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.mb-options legend, .mc-options legend { font-weight: 600; margin-block-end: 0.35rem; }
.mc-options { flex-direction: column; }
.mb-done, .mc-done { font-weight: 600; color: #166534; }
