/* Easy Furniture FAQ (Priority 4): help panel + public help pages. Logical properties, so one file serves LTR and RTL.
   Accent #FF9900 is used for shapes only (it fails contrast for text); text stays in the theme's dark grey. */
.ef-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- help button and panel ---------- */
/* end side (right in English, left in Arabic), above the theme's back-to-top button (#goToTop, same corner, 40 px) */
.ef-help { position: fixed; inset-inline-end: 20px; bottom: 72px; z-index: 900; font-size: 14px; line-height: 1.45; color: #333; }
.ef-help--raised { bottom: 136px; }
.ef-help--admin { z-index: 1040; }
.ef-help__launcher { display: flex; align-items: center; gap: 8px; height: 56px; min-width: 56px; padding: 0 16px; border: 0; border-radius: 28px;
  background: #FF9900; color: #1f1f1f; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ef-help__launcher:focus-visible, .ef-help button:focus-visible, .ef-help a:focus-visible, .ef-help input:focus-visible { outline: 3px solid #1f1f1f; outline-offset: 2px; }
.ef-help__label { white-space: nowrap; }
.ef-help.is-open .ef-help__launcher { display: none; }
/* an open panel sits above the sticky add-to-cart bar (1000); full-screen on phones above the site header */
.ef-help.is-open { z-index: 1045; }
.ef-help__panel { position: absolute; inset-inline-end: 0; bottom: 0; width: 380px; height: 560px; max-height: calc(100vh - var(--ef-help-bottom, 72px) - 20px);
  display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.28); overflow: hidden; }
.ef-help__panel[hidden] { display: none; }
.ef-help__head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #2b2b2b; color: #fff; }
.ef-help__title { flex: 1; margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.ef-help__icon-btn { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ef-help__icon-btn:hover { background: rgba(255,255,255,.12); }
.ef-help__body { flex: 1; overflow-y: auto; padding: 12px; background: #f7f7f7; }
.ef-help__form { position: relative; display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e5e5e5; background: #fff; }
.ef-help__input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.ef-help__send { height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: #2b2b2b; color: #fff; font-weight: 700; cursor: pointer; }
.ef-help__suggest { position: absolute; inset-inline: 10px; bottom: 56px; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.ef-suggest__item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.ef-suggest__item:hover, .ef-suggest__item.is-active { background: #fff4e0; }

.ef-msg { max-width: 92%; margin-bottom: 10px; padding: 9px 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); overflow-wrap: anywhere; }
.ef-msg--you { margin-inline-start: auto; background: #2b2b2b; color: #fff; }
.ef-msg--note { color: #8a4b00; background: #fff4e0; }
.ef-answer__q { font-weight: 700; margin-bottom: 4px; }
.ef-answer__text { white-space: pre-line; }
.ef-link { display: inline-block; margin-top: 6px; color: #1f1f1f; font-weight: 700; text-decoration: underline; }
.ef-related { margin-top: 8px; padding-top: 6px; border-top: 1px solid #eee; }
.ef-related__title { font-size: 12px; font-weight: 700; color: #666; margin-bottom: 4px; }
.ef-related__item { display: block; padding: 3px 0; color: #1f1f1f; text-decoration: underline; }
.ef-chip { display: inline-block; margin: 4px 4px 0 0; padding: 5px 10px; border: 1px solid #d8d8d8; border-radius: 16px; background: #fff; color: #333; font-size: 13px; cursor: pointer; text-align: start; }
.ef-chip:hover { border-color: #FF9900; }
.ef-chip--block { display: block; width: 100%; border-radius: 8px; }
.ef-chip--muted { cursor: default; background: #f3f3f3; font-size: 12px; }
.ef-feedback { margin-top: 8px; font-size: 13px; color: #555; }
.ef-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ef-btn { display: inline-block; padding: 7px 12px; border-radius: 6px; background: #2b2b2b; color: #fff !important; font-weight: 700; text-decoration: none; }
.ef-btn--ghost { background: #fff; color: #1f1f1f !important; border: 1px solid #bbb; }

@media (max-width: 767px) {
  .ef-help { inset-inline-end: 12px; bottom: 72px; }
  .ef-help--raised { bottom: 128px; }
  .ef-help__label { display: none; }
  .ef-help__launcher { padding: 0; width: 56px; justify-content: center; }
  .ef-help.is-open { inset: 0; z-index: 2147483000; }
  .ef-help__panel { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: no-preference) {
  .ef-help__panel { animation: ef-pop .16s ease-out; }
  @keyframes ef-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media print { .ef-help { display: none; } }

/* ---------- footer link ---------- */
.ef-footer-help { text-align: center; padding: 8px 0; }
.ef-footer-help a { font-weight: 700; text-decoration: underline; }

/* ---------- public help pages ---------- */
.ef-faq { color: #333; }
.ef-faq .page-title h1 { margin-bottom: 6px; }
.ef-faq__lead { color: #555; margin-bottom: 18px; }
.ef-faq__search { display: flex; gap: 8px; max-width: 720px; margin: 0 auto 24px; position: relative; }
.ef-faq__search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.ef-faq__search button { height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: #2b2b2b; color: #fff; font-weight: 700; cursor: pointer; }
.ef-faq__search .ef-help__suggest { inset-inline: 0; bottom: auto; top: 50px; z-index: 20; }
.ef-faq__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.ef-faq__tile { display: block; padding: 16px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; color: #333; text-decoration: none; }
.ef-faq__tile:hover, .ef-faq__tile:focus-visible { border-color: #FF9900; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ef-faq__tile b { display: block; font-size: 16px; margin-bottom: 4px; }
.ef-faq__tile span { color: #666; font-size: 13px; }
.ef-faq__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ef-faq__list { list-style: none; margin: 0; padding: 0; }
.ef-faq__list li { padding: 9px 0; border-bottom: 1px solid #eee; }
.ef-faq__list a { color: #1f1f1f; text-decoration: none; }
.ef-faq__list a:hover { text-decoration: underline; }
.ef-faq h2 { font-size: 18px; margin: 0 0 10px; }
.ef-faq__band { display: inline-block; margin-inline-end: 8px; padding: 2px 8px; border-radius: 10px; background: #f1f1f1; font-size: 12px; color: #444; }
.ef-faq__band--Exact, .ef-faq__band--Strong { background: #e7f4e8; color: #22592a; }
.ef-faq__empty { padding: 16px; border-radius: 10px; background: #fff7ea; margin-bottom: 20px; }
.ef-faq__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding: 16px; border-radius: 10px; background: #f7f7f7; }
.ef-faq__crumbs { font-size: 13px; color: #666; margin-bottom: 10px; }
.ef-faq__crumbs a { color: #444; }
.ef-faq__answer { white-space: pre-line; font-size: 16px; line-height: 1.7; margin: 14px 0 20px; }
.ef-faq__chip { display: inline-block; padding: 3px 10px; border-radius: 12px; background: #f1f1f1; font-size: 12px; color: #555; margin-bottom: 8px; }
.ef-faq__shots { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 22px; }
.ef-faq__shots figure { margin: 0; max-width: 320px; }
.ef-faq__shots img { width: 100%; height: auto; border: 1px solid #e3e3e3; border-radius: 8px; }
.ef-faq__shots figcaption { font-size: 12px; color: #666; margin-top: 4px; }
.ef-faq__feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.ef-faq__meta { font-size: 12px; color: #777; margin-top: 18px; }
@media (max-width: 767px) { .ef-faq__cols { grid-template-columns: 1fr; } .ef-faq__tiles { grid-template-columns: 1fr 1fr; } }
/* Priority 5: support requests (My account and the admin thread) */
.ef-sup__lead { color: #555; margin-bottom: 14px; }
.ef-sup__new { display: inline-block; margin-bottom: 16px; }
.ef-sup__note, .ef-sup__ok { padding: 12px 14px; border-radius: 8px; background: #fff7ea; margin-bottom: 16px; }
.ef-sup__ok { background: #e7f4e8; color: #22592a; }
.ef-sup__table td, .ef-sup__table th { vertical-align: top; }
.ef-sup__status { display: inline-block; padding: 2px 9px; border-radius: 10px; background: #f1f1f1; font-size: 12px; color: #444; white-space: nowrap; }
.ef-sup__status--40, .ef-sup__status--50 { background: #e8f0fb; color: #1f4f8a; }
.ef-sup__status--60 { background: #e7f4e8; color: #22592a; }
.ef-sup__status--10, .ef-sup__status--80 { background: #fff2dc; color: #7a4b00; }
.ef-sup__handoff { padding: 14px; border-radius: 10px; background: #f7f7f7; margin-bottom: 20px; }
.ef-sup__handoff p { margin: 6px 0 10px; color: #555; }
.ef-sup__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ef-sup__row select { max-width: 100%; }
.ef-sup__form .inputs { margin-bottom: 14px; }
.ef-sup__form textarea, .ef-sup__form input[type=text], .ef-sup__form select { width: 100%; max-width: 640px; box-sizing: border-box; }
.ef-sup__hint { display: block; font-size: 12px; color: #777; margin-top: 4px; }
.ef-sup__back { margin-inline-start: 14px; }
.ef-sup__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 18px; }
.ef-sup__facts dt { color: #666; font-weight: normal; }
.ef-sup__facts dd { margin: 0; }
.ef-sup__thread { list-style: none; margin: 0 0 20px; padding: 0; }
.ef-sup__msg { border: 1px solid #e6e6e6; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.ef-sup__msg--me { background: #f8fbff; border-color: #d7e5f6; }
.ef-sup__msg--note { background: #fffaf0; border-style: dashed; border-color: #e8c98a; }
.ef-sup__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #777; margin-bottom: 6px; }
.ef-sup__meta b { color: #333; }
.ef-sup__tag { padding: 0 8px; border-radius: 8px; background: #f3e1b9; color: #6b4a00; }
.ef-sup__body { white-space: pre-line; line-height: 1.6; overflow-wrap: anywhere; }
.ef-sup__files { margin: 8px 0 0; padding-inline-start: 18px; font-size: 13px; }
.ef-sup__inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }