.popups {
  width: 100%;
}

.popup__tooltip {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 6px 12px 4px 12px;
  border-radius: 4px;
  font-size: 1.4rem;
  white-space: nowrap;
  z-index: 5000;
  pointer-events: none; /* Prevent interfering with cursor. */
}




.popup__dialog {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  z-index: 2000;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0px 6px 7px #666;
  background-color: #fff;
}


.popup__dialog.popup--responsive{
  top: 50%;left: 50%;
  transform: translate(-50%, -50%);
}
.popup__dialog.popup--overflow{
  max-height: calc(-30px + 100vh);
  overflow: auto;
}
.dynamic-popup-placeholder > *,
.dynamic-popup-placeholder > .page__blocker {
  z-index: 9999;
}
.dialog {
  width: 350px;
}

.dialog.dialog--lg {
  max-width: 100%;
  width: 1960px;
}
.dialog.dialog--md {
  max-width: 100%;
  width: 600px;
}
.dialog--head {
  width: 100%;
  padding-bottom: 10px;
  overflow: hidden;
}
.head_title {
  font-size: 2.4rem;
  font-weight: 500;
  overflow: hidden;
}
.head_title_overflow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.head_title_warning {
  font-size: 2.4rem;
  font-weight: 500;
  color: #ff0000;
}
.head_title_warning.is-normal-title {
  color: #4e61ed;
}

.head_title__icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}
.head_close {
  width: 37px;
  height: 40px;
  position: absolute;
  top: 14px;
  right: 12px;
  background-size: 1.0em;
  background-repeat: no-repeat;
  background-position: 0.8em center;
  background-image: url("../img/close-cross-regular.svg");
  cursor: pointer;
}
.head_close:hover {
  background-image: url("../img/close-cross-hover.svg");
  border-radius: 6px;
  background-color: #edeffd;
}




.origional--note {
  padding-bottom: 20px;
  font-size: 1.6rem;
  width: 780px;
  padding-right: 20px;
}




.dialog--message {
  padding-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 500;
}
.dialog--optns_left {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.dialog--optns_split {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.dialog--optns_center {
  width: 100%;
  display: flex;
  justify-content: center;
}
.dialog--optns_right {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

button.pop--optns_cancel {
  min-width: 100px;
  padding: 6px 12px;
  border: 1px solid #4e61ed;
  background-color: #fff;
}
button.pop--optns_cancel:hover {
  box-shadow: 0px 3px 5px #ccc;
}

button.pop--optns_action {
  min-width: 100px;
  padding: 6px 12px;
  background-color: #4e61ed;
  color: #fff;
}
button.pop--optns_action:hover {
  background-color: #2e44ea;
  box-shadow: 0px 3px 5px #999;
}
button.pop--optns_action:disabled {
  cursor: default;
  opacity: 0.4;
}
button.pop--optns_action:disabled:hover {
  background-color: #4e61ed;
  box-shadow: none;
}

button.pop--optns_delete {
  min-width: 100px;
  padding: 8px 12px;
  background-color: #4e61ed;
  color: #fff;
}
button.pop--optns_delete:hover {
  background-color: #2e44ea;
  box-shadow: 0px 3px 5px #999;
}

.dialog--input {
  width: 100%;
  padding-bottom: 20px;
}
.dialog--iptlabel {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.pop_input {
  width: 100%;
  padding: 7px;
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 7px;
  border: 1px solid #bfbfbf;
}




.popup__spinner {
  position: absolute;
  overflow: hidden;
  z-index: 2000;
}
.spinner_primary {
  width: 174px;
  height: 174px;
  position: relative;
  animation: spin 1.1s linear infinite;
  -webkit-animation: spin 1.1s linear infinite;
  -moz-animation: spin 1.1s linear infinite;
}
@keyframes spin {100% {transform: rotateZ(360deg);}}
.prim_path {
  stroke-dasharray: 170;
  stroke-dashoffset: 20;
}




.note--template--title {
  padding: 10px;
  margin-top: 5px;
  border-radius: 4px;
  cursor: pointer;
}
.note--template--title:hover {
  background-color: #edeffd;
}

.import-help-flex {
  display: flex;
  gap: 30px;
}
.import-help-flex .import-help-col {
  flex: 1;
  padding: 15px;
}

.ai--flashcard--content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.ai--flashcard--content .loading--gif img{
  height: 35px;
}

/* Bypass Popup checkbox in new Popups/Dialogs module */
input.bypass_popup_cb:checked ~ .show_if_unchecked, 
input.bypass_popup_cb:not(:checked) ~ .show_if_checked {
  display: none;
}

/* Import Notebook popup */
.import_notebook_methods {
  display: block;
}
.import_notebook_methods .rn_svg_icon,
.selected_import_method .rn_svg_icon{
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  /* position: relative;
  top: -0.1em; */
}

.import_notebook_methods .import-form-help,
.selected_import_method .import-form-help {
  display: none;
  margin: 15px auto 0;
  max-width: calc(100% - 20px);
  font-size: 14px;
}
.selected_import_method .import-form-help {
  display: block;
  max-width: 100%;
}
.import_notebook_method .method_header,
.selected_import_method .method_header{
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #222;
}
.import_notebook_method .method_content p,
.selected_import_method .method_content p{font-size: inherit;}
.import_notebook_method .method_content,
.selected_import_method .method_content{
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.import_notebook_methods input[type="radio"] {
  opacity: 0;
  position: absolute;
  left: -999em;
  visibility: hidden;
}

.import_notebook_methods input[type="radio"]+label .import-form-help{
  max-width: 100%;
  margin-top: 15px;
}
.import_notebook_methods input[type="radio"]+label {
  display: block;
  border: 1px solid #ddd;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  cursor:pointer;
  margin-top: 15px;
  transition: all .2s ease;
}

.import_notebook_methods input[type="radio"]+label:hover {   
  border-color: #4e61ed;
}

.import_notebook_methods input[type="radio"]:checked+label {
  border-color: #4e61ed;
}
.import_notebook_methods input[type="radio"]:checked+label .method_header{
  color: #4e61ed;
}
.import_notebook_methods input[type="radio"]:checked+label .import-form-help:not(.step2-only),
.import_notebook_methods input[type="radio"]:checked+label+.import-form-help{
  display: block;
}
.selected_import_method{
  margin-top: 30px;
}
.selected_import_method,
.selected_import_method + .dialog-import-form{
  margin-bottom: 30px;
}
.selected_import_method .method_header{
  font-size: 26px;
  gap: .4em;
}
.selected_import_method .method_content{
  font-size: 16px;
  margin-top: 1em;
}