.ua-device-disconnect-alert {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(3, 8, 18, .72);
  backdrop-filter: blur(5px);
}

.ua-device-disconnect-alert.is-open { display: grid; }

.ua-device-disconnect-alert__card {
  direction: rtl;
  width: min(560px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 36px));
  overflow: hidden;
  color: #f8fafc;
  background: linear-gradient(145deg, #221019, #0b1728 72%);
  border: 1px solid rgba(255, 74, 95, .7);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .66), 0 0 42px rgba(255, 47, 75, .16);
  animation: uaDisconnectAlertIn .2s ease-out both;
}

.ua-device-disconnect-alert__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 92, 112, .24);
  background: rgba(136, 16, 36, .16);
}

.ua-device-disconnect-alert__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: #dc2947;
  box-shadow: 0 0 0 7px rgba(220, 41, 71, .12);
  font-size: 21px;
}

.ua-device-disconnect-alert__title { min-width: 0; }
.ua-device-disconnect-alert__title strong { display: block; margin: 0 0 3px; font-size: 18px; font-weight: 900; }
.ua-device-disconnect-alert__title small { display: block; color: #ffb7c2; font-size: 12px; font-weight: 750; }
.ua-device-disconnect-alert__close { width: 32px; height: 32px; border: 0; border-radius: 9px; color: #dbe7f6; background: rgba(255,255,255,.07); font-size: 20px; cursor: pointer; }
.ua-device-disconnect-alert__close:hover { color: #fff; background: #dc2947; }

.ua-device-disconnect-alert__body { padding: 15px 18px 8px; overflow: auto; max-height: calc(100vh - 220px); }
.ua-device-disconnect-alert__summary { margin: 0 0 12px; color: #e6edf7; font-size: 13px; line-height: 1.75; }
.ua-device-disconnect-alert__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ua-device-disconnect-alert__item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.045); }
.ua-device-disconnect-alert__item strong { display: block; overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ua-device-disconnect-alert__item small { display: block; margin-top: 2px; color: #9fb1c8; font-size: 11px; direction: ltr; text-align: right; }
.ua-device-disconnect-alert__type { padding: 4px 8px; border: 1px solid rgba(255, 94, 116, .34); border-radius: 999px; color: #ffbdc7; background: rgba(255, 56, 85, .09); font-size: 11px; font-weight: 850; white-space: nowrap; }
.ua-device-disconnect-alert__actions { display: flex; justify-content: flex-end; padding: 12px 18px 17px; }
.ua-device-disconnect-alert__ack { min-width: 138px; height: 38px; border: 1px solid #e94560; border-radius: 10px; color: #fff; background: #c8223e; font: 850 13px Tahoma, Arial, sans-serif; cursor: pointer; }
.ua-device-disconnect-alert__ack:hover { background: #e02e4b; }

.ua-connectivity-alert-setting {
  display: grid;
  grid-template-columns: 42px minmax(280px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, .28);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ua-theme-security-alert, #44151d) 52%, transparent);
}
.ua-connectivity-alert-setting__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #ff667e; background: rgba(255, 65, 92, .12); }
.ua-connectivity-alert-setting__copy h5 { margin: 0 0 3px; color: var(--ua-text, #edf4ff); font-size: 14px; font-weight: 900; }
.ua-connectivity-alert-setting__copy p { margin: 0; color: var(--ua-text-soft, #9daec2); font-size: 11.5px; line-height: 1.65; }
.ua-connectivity-alert-setting__toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; cursor: pointer; }
.ua-connectivity-alert-setting__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ua-connectivity-alert-setting__toggle span { position: relative; width: 38px; height: 21px; border: 1px solid rgba(148,163,184,.4); border-radius: 999px; background: #263449; transition: .18s ease; }
.ua-connectivity-alert-setting__toggle span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: #d5dfed; transition: .18s ease; }
.ua-connectivity-alert-setting__toggle input:checked + span { border-color: #ff4f68; background: #b91f3a; }
.ua-connectivity-alert-setting__toggle input:checked + span::after { transform: translateX(-17px); background: #fff; }
.ua-connectivity-alert-setting__toggle input:focus-visible + span { outline: 2px solid #69ccff; outline-offset: 2px; }
.ua-connectivity-alert-setting__toggle b { color: var(--ua-text, #edf4ff); font-size: 12px; }
.ua-connectivity-alert-setting__preview { white-space: nowrap; }
.ua-connectivity-alert-setting--live-data {
  margin-top: 10px;
  grid-template-columns: 42px minmax(280px, 1fr) auto;
  border-color: rgba(51, 196, 255, .24);
  background: color-mix(in srgb, var(--ua-theme-alert, #102b3f) 58%, transparent);
}
.ua-connectivity-alert-setting--live-data .ua-connectivity-alert-setting__icon { color: #62d8ff; background: rgba(51, 196, 255, .1); }
.ua-connectivity-alert-setting--live-data .ua-connectivity-alert-setting__toggle input:checked + span { border-color: #34b7df; background: #087f9d; }

@keyframes uaDisconnectAlertIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
  .ua-connectivity-alert-setting { grid-template-columns: 42px minmax(0, 1fr); }
  .ua-connectivity-alert-setting__toggle, .ua-connectivity-alert-setting__preview { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ua-device-disconnect-alert__card { animation: none; }
}
