body.lor-popup-open {
  overflow: hidden;
}

div.lor-popup-overlay,
div.lor-popup-overlay *,
div.lor-popup-overlay *:before,
div.lor-popup-overlay *:after {
  box-sizing: border-box;
}

div.lor-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: not-allowed;
}

div.lor-popup-overlay.is-open {
  display: flex;
}

div.lor-popup-window {
  width: min(640px, 100%);
  cursor: default;
}

div.lor-popup-inner {
  position: relative;
  width: 100%;
  min-height: 220px;
  max-height: min(78vh, 760px);
  background-color: var(--lor-color);
  padding: 0 0 55px 0;
  border-radius: 1px;
  box-shadow: 0 0 80px 0 rgba(0, 0, 0, 1);
  overflow: hidden;
}

div.lor-popup-header {
  display: flex;
  align-items: center;
  min-height: 36px;
}

div.lor-popup-header.is-hidden {
  display: none;
}

h2.lor-popup-title {
  margin: 0;
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  background-color: #ffffff;
  color: #666666;
  font-weight: normal;
  letter-spacing: -0.05em;
  font-size: 1.25em;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

div.lor-popup-message {
  position: absolute;
  top: 45px;
  left: 18px;
  right: 18px;
  bottom: 64px;
  overflow-y: auto;
  overflow-x: hidden;
}

div.lor-popup-header.is-hidden + div.lor-popup-message {
  top: 18px;
}

div.lor-popup-content {
  color: #ffffff;
  padding: 12px 0 0 0;
}

div.lor-popup-content h1,
div.lor-popup-content h2,
div.lor-popup-content h3,
div.lor-popup-content h4,
div.lor-popup-content p,
div.lor-popup-content li {
  color: #ffffff;
}

div.lor-popup-content p,
div.lor-popup-content li {
  line-height: 24px;
}

div.lor-popup-content > p,
div.lor-popup-content > ul,
div.lor-popup-content > ol {
  margin-right: 15px;
}

div.lor-popup-content p:first-child,
div.lor-popup-content ul:first-child,
div.lor-popup-content ol:first-child {
  margin-top: 0;
}

div.lor-popup-content p:last-child,
div.lor-popup-content ul:last-child,
div.lor-popup-content ol:last-child {
  margin-bottom: 0;
}

div.lor-popup-content ul,
div.lor-popup-content ol {
  margin: 10px 0 10px 30px;
  padding: 0;
}

div.lor-popup-content a,
div.lor-popup-content a:link,
div.lor-popup-content a:visited {
  color: #ffffff;
  text-decoration: underline;
}

div.lor-popup-content a:hover {
  color: var(--lor-color-dark);
}

ul.lor-popup-switches {
  position: absolute;
  right: 20px;
  bottom: 10px;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

li.lor-popup-switch {
  margin: 0 0 10px 5px;
}

button.lor-popup-bottom-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 50px;
  height: 50px;
  padding: 5px 10px;
  border: 0;
  background-color: #ffffff;
  color: #555555;
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
  line-height: 2.5em;
  border-radius: 2px !important;
}

button.lor-popup-bottom-close:hover,
button.lor-popup-bottom-close:focus {
  background-color: var(--lor-color-dark);
  color: #ffffff;
}

i.lor-popup-close-icon {
  color: #c61f26;
  font-weight: bold;
  line-height: 1;
  font-size: 2.05em;
  display: inline-block;
  min-width: 0.85em;
}

button.lor-popup-bottom-close:hover i.lor-popup-close-icon,
button.lor-popup-bottom-close:focus i.lor-popup-close-icon {
  color: #ffffff;
}

span.lor-popup-close-text {
  display: inline-block;
  position: relative;
  top: 0;
}

@media (max-width: 700px) {
  div.lor-popup-overlay {
    padding: 10px;
  }

  div.lor-popup-inner {
    min-height: 180px;
    max-height: min(88vh, 760px);
  }

  h2.lor-popup-title {
    font-size: 1.1em;
    white-space: normal;
    padding: 6px 12px;
  }

  div.lor-popup-message {
    left: 12px;
    right: 12px;
    bottom: 62px;
  }
}
