/* محصور في نافذة الموافقة فقط، دون تعديل CSS القالب العام */
.f95-consent[hidden], .f95-consent [hidden] { display: none !important; }
.f95-consent {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  inset-inline-start: 16px;
  width: min(510px, calc(100vw - 32px));
  z-index: 2147483000;
  font-family: Cairo, Tahoma, Arial, sans-serif;
  color: #17323d;
  direction: rtl;
  text-align: right;
  line-height: 1.65;
}
.f95-consent, .f95-consent * { box-sizing: border-box; }
.f95-consent__card {
  background: #fff;
  border: 1px solid #dce7e8;
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(10, 36, 49, .20);
  padding: clamp(16px, 3vw, 24px);
  max-height: min(85vh, 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.f95-consent__heading { display: flex; align-items: center; gap: 13px; }
.f95-consent__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 25px; background: #f3f8f8; border-radius: 14px; }
.f95-consent__heading h2 { margin: 0; color: #17323d; font-size: clamp(18px, 3.5vw, 21px); font-weight: 700; }
.f95-consent__heading p { margin: 3px 0 0; font-size: 12px; color: #5c6e74; }
.f95-consent__intro { color: #334f58; font-size: 14px; margin: 15px 0 12px; line-height: 1.95; }
.f95-consent__links { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-bottom: 14px; }
.f95-consent__links a { color: #0b6370; text-decoration: underline; text-underline-offset: 3px; }
.f95-consent__links a:hover { color: #17323d; }
.f95-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.f95-consent__button { font: inherit; font-size: 14px; font-weight: 700; border-radius: 10px; min-height: 43px; padding: 8px 12px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.f95-consent__button--primary { background: #17323d; color: #fff; border: 1px solid #17323d; }
.f95-consent__button--primary:hover { background: #28515d; color: #fff; }
.f95-consent__button--outline { background: #fff; color: #17323d; border: 1px solid #b1c6cc; }
.f95-consent__button--outline:hover { background: #f0f7f8; }
.f95-consent__button--text { background: transparent; color: #345761; border: 1px solid transparent; grid-column: 1/-1; min-height: 34px; }
.f95-consent__button--text:hover { background: #eef5f6; }
.f95-consent__button:focus-visible, .f95-consent__links a:focus-visible, .f95-consent__item input:focus-visible { outline: 3px solid #2196a7; outline-offset: 3px; }
.f95-consent__preferences { display: none; padding: 4px 0 15px; }
.f95-consent--settings .f95-consent__preferences { display: block; }
.f95-consent--settings .f95-consent__actions--basic { display: none; }
.f95-consent:not(.f95-consent--settings) .f95-consent__actions--advanced { display: none; }
.f95-consent__item { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid #e5eeee; padding: 11px 0; margin: 0; cursor: pointer; }
.f95-consent__item:first-child { cursor: default; }
.f95-consent__item span:first-child, .f95-consent__item > div { min-width: 0; flex: 1; }
.f95-consent__item strong { display: block; color: #17323d; font-size: 14px; font-weight: 700; }
.f95-consent__item small { display: block; font-size: 11px; color: #607981; line-height: 1.6; }
.f95-consent__item input { inline-size: 21px; block-size: 21px; accent-color: #17323d; flex: none; cursor: pointer; }
.f95-consent__always { flex: none; font-size: 11px; color: #237c66; background: #ecf8f3; padding: 5px 9px; border-radius: 8px; white-space: nowrap; }
.f95-consent__error { color: #aa2939; font-size: 12px; margin: 10px 0; }
@media (max-width: 575px) {
  .f95-consent { inset-inline-start: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px)); width: calc(100vw - 20px); }
  .f95-consent__card { border-radius: 16px; padding: 15px; max-height: 76vh; }
  .f95-consent__intro { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .f95-consent__button { transition: none; } }
