/* DigitalIN cookie consent. Accept and reject are the same size, weight and
   colour on purpose: a refusal that is harder to click is not a free choice. */

/* Matches the original site's notice: a dark card in the bottom corner with a
   tinted cookie chip, three pill buttons and a small round dismiss. */
.dglc-banner {
  /* physical right, not inline-end: the site is RTL, where inline-end is left */
  position: fixed; bottom: 20px; right: 20px; left: auto;
  z-index: 2147482900; width: min(448px, calc(100vw - 24px));
  padding: 20px; border-radius: 16px;
  background: #1a1b30;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  color: #fff; direction: rtl; text-align: right;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
  animation: dglc-in .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes dglc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dglc-banner { animation: none; } }
.dglc-banner--top { bottom: auto; top: 20px; }
.dglc-banner[hidden] { display: none; }

.dglc-banner__in { display: flex; align-items: flex-start; gap: 12px; }
.dglc-banner__icon {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: rgba(231,15,87,.15); color: var(--dglc-accent, #E70F57);
  display: flex; align-items: center; justify-content: center;
}
.dglc-banner__body { min-width: 0; width: 100%; }
.dglc-banner__title { margin: 0 0 4px; font-size: 16px; font-weight: 900; line-height: 1.3; }
.dglc-banner__text { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.7); }
.dglc-banner__text a { color: inherit; text-decoration: underline; }
.dglc-banner__text a:hover { color: #fff; }

.dglc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dglc-btn {
  border-radius: 999px; padding: 10px 20px; cursor: pointer;
  font-size: 14px; font-weight: 700; line-height: 1.4; border: 1px solid transparent;
}
.dglc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 767px) {
  .dglc-banner { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 16px; }
  .dglc-actions .dglc-btn { flex: 1 1 auto; }
}

.dglc-modal {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(10,8,24,.55);
  display: grid; place-items: center; padding: 18px;
  font: 15px/1.6 system-ui, "Segoe UI", Arial, sans-serif; direction: rtl; text-align: right;
}
.dglc-modal[hidden] { display: none; }
.dglc-modal__box {
  background: #fff; color: #14121f; border-radius: 16px; width: min(560px, 100%);
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
}
.dglc-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e8e6ef;
}
.dglc-modal__head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.dglc-x { border: 0; background: #f2f1f6; width: 32px; height: 32px; border-radius: 8px; font-size: 22px; cursor: pointer; }
.dglc-modal__body { padding: 8px 20px; overflow-y: auto; }
.dglc-modal__foot {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid #e8e6ef;
}

.dglc-cat { padding: 14px 0; border-bottom: 1px solid #f0eef5; }
.dglc-cat:last-child { border-bottom: 0; }
.dglc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dglc-cat__name { font-weight: 700; }
.dglc-cat__desc { margin: 6px 0 0; font-size: 13px; color: #5c5972; }
.dglc-always { font-size: 12px; color: #6b6880; background: #f2f1f6; padding: 4px 10px; border-radius: 999px; }

.dglc-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.dglc-switch input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; cursor: pointer; }
.dglc-switch__ui { width: 40px; height: 24px; border-radius: 999px; background: #cfcddb; position: relative; transition: background .2s; flex: 0 0 auto; }
.dglc-switch__ui::after {
  content: ""; position: absolute; inset-block: 3px; inset-inline-end: 3px; width: 18px;
  border-radius: 50%; background: #fff; transition: inset-inline-end .2s;
}
.dglc-switch input:checked + .dglc-switch__ui { background: var(--dglc-accent, #E70F57); }
.dglc-switch input:checked + .dglc-switch__ui::after { inset-inline-end: 19px; }
.dglc-switch input:disabled + .dglc-switch__ui { background: #9c99ae; }
.dglc-switch input:focus-visible + .dglc-switch__ui { outline: 3px solid #0b57d0; outline-offset: 2px; }

.dglc-reopen {
  position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 2147482800;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cfcddb;
  background: #fff; color: #14121f; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.dglc-reopen[hidden] { display: none; }
.dglc-reopen-inline { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

.dglc-blocked {
  border: 1px dashed #b9b6c8; border-radius: 12px; padding: 20px; text-align: center;
  background: #f7f6fa; color: #3b3950; font: 14px/1.6 system-ui, sans-serif;
}
.dglc-blocked p { margin: 0 0 12px; }
.dglc-unblock {
  border: 0; background: var(--dglc-accent, #E70F57); color: #fff;
  border-radius: 999px; padding: 10px 20px; cursor: pointer; font: 700 14px/1 inherit;
}

@media (max-width: 640px) {
  .dglc-modal { padding: 12px; }
  .dglc-modal__box { border-radius: 14px; }
  .dglc-modal__head { padding: 12px 14px; }
  .dglc-modal__body { padding: 4px 14px; }
  .dglc-modal__foot { padding: 10px 14px; gap: 6px; }
  .dglc-modal .dglc-btn { flex: 1 1 auto; padding: 9px 10px !important; font-size: 12.5px !important; }
  .dglc-cat { padding: 11px 0; }
  .dglc-cat__desc { font-size: 12px; }
}
@media print { .dglc-banner, .dglc-modal, .dglc-reopen { display: none !important; } }


/* ------------------------------------------------------------------
   Theme armour. Accept and reject must stay visually equal, and a host
   theme's global `button` rule was repainting both plus the ghost
   variant. Consent controls are pinned so the choice stays honest.
   ------------------------------------------------------------------ */
.dglc-banner .dglc-btn, .dglc-modal .dglc-btn {
  font-family: inherit !important; text-transform: none !important;
  letter-spacing: normal !important; box-shadow: none !important; text-shadow: none !important;
}
.dglc-banner, .dglc-banner__title, .dglc-banner__text, .dglc-banner .dglc-btn {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}
.dglc-banner .dglc-banner__title { font-size: 16px !important; line-height: 1.3 !important; margin: 0 0 4px !important; }
.dglc-banner .dglc-banner__text  { font-size: 14px !important; line-height: 1.65 !important; margin: 0 !important; }
.dglc-banner .dglc-btn { border-radius: 999px !important; padding: 10px 20px !important;
  font-size: 14px !important; font-weight: 700 !important; min-height: 0 !important;
  width: auto !important; text-transform: none !important; letter-spacing: normal !important;
  box-shadow: none !important; text-shadow: none !important; font-family: inherit !important; }
/* accept and refuse carry the same size, weight and shape; only the fill differs */
.dglc-banner .dglc-btn--yes {
  background: var(--dglc-accent, #E70F57) !important; color: #fff !important;
  border: 1px solid var(--dglc-accent, #E70F57) !important;
}
.dglc-banner .dglc-btn--no {
  background: rgba(255,255,255,.1) !important; color: #fff !important;
  border: 1px solid transparent !important;
}
.dglc-banner .dglc-btn--line {
  background: transparent !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}
.dglc-banner .dglc-banner, .dglc-banner .dglc-banner__title, .dglc-banner .dglc-banner__text,
.dglc-banner .dglc-banner__text a { color: #fff !important; }

.dglc-modal .dglc-btn { border-radius: 999px !important; min-height: 0 !important;
  padding: 10px 16px !important; font-size: 13.5px !important; width: auto !important; }
.dglc-modal .dglc-btn--primary {
  background: var(--dglc-accent, #E70F57) !important; color: #fff !important;
  border: 1px solid var(--dglc-accent, #E70F57) !important;
}
.dglc-modal .dglc-btn--ghost {
  background: #fff !important; color: #14121f !important; border: 1px solid #cfcddb !important;
}
/* the site paints every heading white, which erased the dialog's own title */
.dglc-modal, .dglc-modal__head h2, .dglc-modal .dglc-cat__name { color: #14121f !important; }
.dglc-modal .dglc-cat__desc, .dglc-modal .dglc-always { color: #5c5972 !important; }
.dglc-modal__head h2 { font-size: 17px !important; margin: 0 !important; text-align: right !important; }
.dglc-modal .dglc-x { background: #f2f1f6 !important; color: #14121f !important; border: 0 !important;
  border-radius: 8px !important; width: 32px !important; height: 32px !important;
  padding: 0 !important; min-height: 0 !important; font-size: 22px !important; }
.dglc-blocked .dglc-unblock {
  background: var(--dglc-accent, #E70F57) !important; color: #fff !important; border: 0 !important;
}
.dglc-modal .dglc-switch__ui { background: #cfcddb !important; border: 0 !important; }
.dglc-modal .dglc-switch input:checked + .dglc-switch__ui { background: var(--dglc-accent, #E70F57) !important; }
.dglc-modal .dglc-switch input:disabled + .dglc-switch__ui { background: #9c99ae !important; }
.dglc-reopen { background: #fff !important; color: #14121f !important; border: 1px solid #cfcddb !important; }
