/* شريط الموافقة على الكوكيز + لوحة وضع التجربة */
.rq-consent {
  /* يسار الشاشة دائماً: زر واتساب ثابت على اليمين */
  position: fixed; z-index: 2147483000; left: 16px; bottom: 16px;
  max-width: 420px; padding: 16px 18px; border-radius: 16px;
  background: #fff; color: #23463b; box-shadow: 0 12px 40px rgba(16, 60, 45, 0.22);
  border: 1px solid #dfe9e5; font-family: inherit; font-size: 14px; line-height: 1.7;
  animation: rq-consent-in 0.35s ease-out;
}
.rq-consent p { margin: 0 0 12px; }
.rq-consent a { color: #1d7044; font-weight: 700; text-decoration: underline; }
.rq-consent-actions { display: flex; gap: 8px; }
.rq-consent button {
  flex: 1; padding: 9px 14px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;
  border: 1px solid #1d7044;
}
.rq-consent-yes { background: #1d7044; color: #fff; }
.rq-consent-no { background: #fff; color: #1d7044; }
.rq-consent button:focus-visible { outline: 3px solid #9fd8bd; outline-offset: 2px; }
@keyframes rq-consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 640px) {
  .rq-consent { left: 10px; right: 10px; bottom: 10px; max-width: none; font-size: 13px; padding: 14px; }
  /* الجوال: الشريط بعرض الشاشة، وزر واتساب يطلع فوقه لحين الاختيار */
  .rq-consent-open .wa-btn { bottom: calc(var(--rq-consent-h, 150px) + 22px); transition: bottom 0.3s; }
}
@media (prefers-reduced-motion: reduce) { .rq-consent { animation: none; } }

.rq-tdebug {
  position: fixed; z-index: 2147483001; top: 12px; inset-inline-end: 12px; width: 320px; max-height: 50vh; overflow: auto;
  padding: 10px 12px; border-radius: 12px; background: rgba(18, 40, 33, 0.94); color: #e6fff3;
  font: 12px/1.6 Consolas, monospace; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.rq-tdebug b { display: block; margin-bottom: 4px; color: #8ff0bf; font-family: inherit; }
.rq-tdebug ol { margin: 0; padding-inline-start: 18px; }
.rq-tdebug li { overflow-wrap: anywhere; }
