@import url('../pages/lorex.css');

body.ic-lorex-general .ic-header,
body.ic-lorex-general .ic-footer,
body.ic-lorex-general .ic-tabbar,
body.ic-lorex-general .ic-tabbar-dock,
body.ic-lorex-general .ic-site-footer {
  display: none !important;
}

body.ic-lorex-general {
  padding-bottom: 0 !important;
}

body.ic-lorex-general .ic-site > main {
  flex: 1 1 auto;
  min-height: 0;
}

.ic-lorex-general-tool {
  height: 100dvh;
  max-height: 100dvh;
}

.ic-lorex-general-head {
  padding-inline: 10px 8px;
}

.ic-lorex-general-head .ic-lorex-header-title {
  padding-inline: 96px 112px;
}

.ic-lorex-general-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 0;
  background: transparent;
  z-index: 2;
}

.ic-lorex-general-menu-icon {
  background-color: #2d3a4a;
  width: 22px;
  height: 22px;
}

.ic-lorex-general-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
  z-index: 2;
}

.ic-lorex-general-diamond,
.ic-lorex-general-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
}

.ic-lorex-general-head .ic-lorex-close {
  padding: 6px;
}

.ic-lorex-general-head .ic-lorex-close-icon {
  width: 20px;
  height: 20px;
}

.ic-lorex-welcome--standalone .ic-lorex-welcome-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
  margin: 0 0 8px;
}

.ic-lorex-msg-image {
  display: block;
  max-width: 220px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.ic-lorex-msg-doc {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(78, 145, 230, 0.12);
  font-size: 10px;
  color: #4e91e6;
}

.ic-lorex-sessions-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.ic-lorex-sessions-drawer[hidden] {
  display: none !important;
}

.ic-lorex-sessions-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 28, 40, 0.35);
}

.ic-lorex-sessions-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(82vw, 320px);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(45, 58, 74, 0.12);
}

.ic-lorex-sessions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px 10px;
  border-bottom: 1px solid #ececec;
}

.ic-lorex-sessions-head h2 {
  margin: 0;
  font-size: 13px;
  color: #2d3a4a;
}

.ic-lorex-sessions-new {
  border: 0;
  background: #f3f8fe;
  color: #4e91e6;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 10px;
}

.ic-lorex-sessions-status {
  padding: 10px 14px;
  font-size: 11px;
  color: #8090a8;
}

.ic-lorex-sessions-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 12px;
}

.ic-lorex-session-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: right;
}

.ic-lorex-session-item.is-active {
  background: #f3f8fe;
}

.ic-lorex-session-title {
  font-size: 12px;
  color: #2d3a4a;
  line-height: 1.5;
}

.ic-lorex-session-date {
  font-size: 10px;
  color: #9aa6b8;
}

.ic-lorex-sessions-empty {
  margin: 24px 12px;
  text-align: center;
  font-size: 11px;
  color: #9aa6b8;
}

.ic-lorex-sessions-more {
  margin: 0 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #f0f2f5;
  color: #2d3a4a;
  padding: 10px;
  font-size: 11px;
}

.ic-lorex-limit-box .ic-lorex-upgrade-btn {
  border: 0;
  cursor: pointer;
}

@media (min-width: 801px) {
  .ic-lorex-sessions-drawer {
    left: 50%;
    right: auto;
    width: min(100%, 430px);
    transform: translateX(-50%);
  }
}
