/* ElementsXT Command UI: cookie information + page navigation.
   No changes to recaptcha, account, downloads or any other site styles. */
.xt-scroll-rail {
  position: fixed;
  z-index: 40;
  right: 13px;
  top: 48%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid rgba(86, 166, 192, .36);
  background: linear-gradient(165deg, rgba(16, 41, 56, .96), rgba(5, 16, 27, .97));
  box-shadow: 0 12px 35px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(103, 221, 240, .14);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.xt-scroll-rail[hidden] { display: none !important; }
.xt-scroll-btn {
  width: 43px;
  height: 52px;
  border: 1px solid rgba(78, 171, 198, .42);
  background: rgba(17, 52, 72, .72);
  color: #a8e9f4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.xt-scroll-btn svg { width: 21px; height: 21px; display: block; }
.xt-scroll-btn span { font-size: 8px; letter-spacing: .16em; font-weight: 900; }
.xt-scroll-btn:hover:not(:disabled) { background: #21566c; border-color: #87e5f3; color: #fff; }
.xt-scroll-btn:focus-visible, .xt-cookie-btn:focus-visible, .xt-cookie-info-btn:focus-visible {
  outline: 2px solid #8befff;
  outline-offset: 3px;
}
.xt-scroll-btn:disabled { opacity: .34; cursor: default; }
.xt-scroll-rail .xt-rail-rule { height: 9px; width: 1px; background: #43899f; opacity: .78; }

.xt-cookie-notice {
  position: fixed;
  z-index: 55;
  bottom: 18px;
  left: max(18px, calc((100vw - 1310px) / 2));
  right: max(92px, calc((100vw - 1310px) / 2));
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 20px 23px;
  border: 1px solid rgba(91, 177, 208, .56);
  border-top: 2px solid #56d8ef;
  background: linear-gradient(110deg, rgba(11, 31, 45, .98), rgba(7, 18, 30, .985));
  box-shadow: 0 16px 56px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(179, 235, 245, .09);
  color: #eaf7fb;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.xt-cookie-notice[hidden] { display: none !important; }
.xt-cookie-crest {
  width: 46px; height: 49px; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #3a7890;
  background: #173648; color: #7ee7f7;
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
}
.xt-cookie-crest svg { width: 25px; height: 25px; }
.xt-cookie-copy { min-width: 0; flex: 1 1 auto; }
.xt-cookie-kicker {
  display: block; margin-bottom: 3px;
  color: #68d8e9; font-size: 10px; line-height: 1.6;
  font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
}
.xt-cookie-copy strong { display: block; font-size: 14px; letter-spacing: .085em; text-transform: uppercase; }
.xt-cookie-copy p { color: #bbced8; margin: 5px 0 0; max-width: 630px; font-size: 12px; line-height: 1.65; }
.xt-cookie-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.xt-cookie-btn,
.xt-cookie-info-btn {
  border: 1px solid #5c9db4; min-height: 43px; padding: 11px 16px;
  font: 900 11px/1.2 'Segoe UI', Arial, sans-serif;
  letter-spacing: .13em; text-transform: uppercase; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.xt-cookie-btn {
  min-width: 113px; background: linear-gradient(115deg, #8ce9f8, #3cb6db);
  border-color: #7be0ef; color: #071a27;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.xt-cookie-btn:hover { background: #c6f6ff; }
.xt-cookie-info-btn { background: #112c3e; color: #b9e5ef; }
.xt-cookie-info-btn:hover { background: #1e465c; border-color: #8be1ee; }

.xt-cookie-dialog {
  width: min(510px, calc(100vw - 30px));
  max-height: min(85vh, 600px);
  padding: 30px;
  margin: auto;
  overflow: auto;
  color: #eaf7fb;
  border: 1px solid #478fa8;
  border-top: 3px solid #69dced;
  background: linear-gradient(145deg, #122c3f, #071421);
  box-shadow: 0 24px 80px #000b;
}
.xt-cookie-dialog::backdrop { background: rgba(1, 9, 16, .78); }
.xt-cookie-dialog h2 { font-size: 24px; margin: 9px 0 17px; }
.xt-cookie-dialog p, .xt-cookie-dialog li { font-size: 13px; line-height: 1.75; color: #bdceda; }
.xt-cookie-dialog ul { padding-left: 20px; margin: 0 0 22px; }
.xt-cookie-dialog li + li { margin-top: 10px; }
.xt-cookie-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.xt-cookie-dialog a { color: #80e4f3; text-decoration: underline; text-underline-offset: 3px; }

@media(max-width: 900px) {
  .xt-cookie-notice { align-items: flex-start; flex-wrap: wrap; gap: 11px; padding: 19px; }
  .xt-cookie-actions { flex: 1 1 100%; justify-content: flex-end; }
}
@media(max-width: 620px) {
  .xt-scroll-rail { right: 6px; top: 47%; padding: 5px 4px; }
  .xt-scroll-btn { width: 34px; height: 43px; }
  .xt-scroll-btn svg { width: 18px; height: 18px; }
  .xt-scroll-btn span { font-size: 7px; }
  /* Keep Google's genuine reCAPTCHA badge unobstructed at the lower-right. */
  .xt-cookie-notice { left: 11px; right: 11px; bottom: 92px; max-height: calc(100dvh - 115px); overflow-y: auto; padding: 16px; }
  .xt-cookie-crest { display: none; }
  .xt-cookie-copy strong { font-size: 13px; }
  .xt-cookie-actions { justify-content: stretch; }
  .xt-cookie-actions button { flex: 1 1 0; min-width: 0; padding-inline: 6px; }
  .xt-cookie-dialog { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .xt-scroll-btn, .xt-cookie-btn, .xt-cookie-info-btn { transition: none; }
}
