/**
 * Style for Edit Quiz.
 *
 * @since 4.2.9
 * @version 1.0.0
 */
/**
* Style for the edit question page in LearnPress
* @since 4.2.9
* @version 1.0.0
*/
/**
* Style for the popup select item to add in LearnPress
*/
.lp-icon-angle-down {
  display: none;
  cursor: pointer;
}

.lp-icon-angle-up {
  display: inline-block;
  cursor: pointer;
}

.lp-collapse .lp-icon-angle-up {
  display: none;
}
.lp-collapse .lp-icon-angle-down {
  display: inline-block;
}

.lp-section-collapse {
  display: grid;
  padding: 12px;
  border: 1px solid #C3C4C7;
  border-top: none;
}

.lp-section-toggle.lp-collapse .lp-section-collapse {
  display: none;
}

.lp-trigger-toggle {
  display: flex;
  align-items: center;
}

/**
* Style for the popup alert, confirm
* @link https://sweetalert2.github.io/
* @since 4.2.9
* @version 1.0.0
*/
.swal2-container {
  z-index: 99999;
}

.swal2-popup {
  max-width: 850px;
}
.swal2-popup .content-title {
  margin: 0 0 20px 0;
  padding: 0;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
}
.swal2-popup .swal2-actions {
  width: 100%;
  padding: 0 30px;
}
.swal2-popup .swal2-actions button {
  flex: 1;
}
.swal2-popup .swal2-actions button.swal2-confirm {
  background-color: #E02200;
}
.swal2-popup .swal2-actions button.swal2-cancel {
  background-color: transparent;
  border: 1px solid #ccc;
  color: inherit;
}
.swal2-popup .swal2-warning {
  color: #E02200;
  border-color: transparent;
  background-color: rgba(223, 0, 0, 0.1019607843);
}
.swal2-popup .swal2-icon {
  width: 50px;
  height: 50px;
}
.swal2-popup .swal2-icon .swal2-icon-content {
  font-size: 0;
}
.swal2-popup .swal2-icon .swal2-icon-content::before {
  content: "\f071";
  font-family: "lp-icon";
  font-size: 24px;
  display: inline-block;
}
.swal2-popup .swal2-title {
  font-size: 1.5em;
}
.swal2-popup .swal2-html-container {
  font-size: 1em;
}
.swal2-popup .lp-tom-select.ts-wrapper .ts-dropdown {
  max-height: 200px;
  overflow: hidden;
}
.swal2-popup .swal2-close {
  background-color: unset !important;
  outline: none !important;
  color: rgb(204, 204, 204) !important;
}
.swal2-popup .swal2-close:hover {
  color: #f27474 !important;
}

.lp-icon-spinner {
  animation: rotation 2s infinite linear;
  font-size: 1.25rem;
  color: #2271b1 !important;
  display: none;
}

.lp-icon-drag {
  cursor: grab;
  line-height: 1;
}
.lp-icon-drag:active {
  cursor: grabbing;
}

/***** Main Question Edit Styles *****/
.lp-question-edit-main {
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: 20px;
  grid-template-columns: 1fr 1fr;
  /**
  * Style for the buttons
  */
}
.lp-question-edit-main [class*=lp-icon-] {
  font-size: 1.25rem;
  color: #787c82;
  cursor: pointer;
}
.lp-question-edit-main input {
  padding: 0;
  margin: 0;
}
.lp-question-edit-main input[type=text] {
  width: 100%;
  border: none;
  background: transparent;
  box-shadow: none;
}
.lp-question-edit-main .lp-question-fib-buttons button {
  display: flex !important;
  align-items: center;
  gap: 5px;
}
.lp-question-edit-main .lp-question-fib-buttons button.loading {
  pointer-events: none;
  opacity: 0.5 !important;
}
.lp-question-edit-main .lp-question-fib-buttons button.loading .lp-icon-spinner {
  display: inline-block;
}
.lp-question-edit-main .loading {
  pointer-events: none;
  opacity: 0.5 !important;
}
.lp-question-edit-main .loading .lp-icon-spinner {
  display: inline-block;
}
.lp-question-edit-main .lp-btn-edit-primary {
  border: none;
  background: #135e96;
  color: #fff;
}
.lp-question-edit-main .lp-btn-edit-primary:not(.active) {
  opacity: 0.5;
}
.lp-question-edit-main .lp-btn-edit-primary:hover, .lp-question-edit-main .lp-btn-edit-primary.active, .lp-question-edit-main .lp-btn-edit-primary.active:hover {
  background: #135E96;
  color: #fff;
  opacity: 1;
}

.question-edit-details .lp-section-collapse {
  padding: 0;
  border: 1px solid #dcdcde;
}

.lp-question-data-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

.lp-question-choice-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #dcdcde;
}

.lp-question-answer-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 5px;
  margin: 0;
  border: 1px solid #dcdcde;
  border-top: none;
}
.lp-question-answer-item:hover .lp-btn-delete-question-answer {
  display: inline-block;
}
.lp-question-answer-item.loading {
  pointer-events: none;
  opacity: 0.5 !important;
}
.lp-question-answer-item.loading .lp-icon-spinner {
  display: inline-block;
}
.lp-question-answer-item .lp-btn-delete-question-answer {
  display: none;
  cursor: pointer;
}
.lp-question-answer-item .lp-icon-drag {
  cursor: grab;
  line-height: 1;
}
.lp-question-answer-item .lp-icon-drag:active {
  cursor: grabbing;
}

.lp-question-answer-item-add-new {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 5px;
  margin: 0;
  border: 1px solid #dcdcde;
  border-top: none;
}
.lp-question-answer-item-add-new .lp-icon-plus {
  cursor: auto;
  margin-left: 5px;
}

.lp-question-field-settings {
  padding: 10px 20px;
  display: grid;
  gap: 5px;
}
.lp-question-field-settings input[type=text], .lp-question-field-settings input[type=number] {
  padding: 0 10px;
}

/***** Fill in the Blank Styles *****/
.lp-question-fib-blank-options {
  display: grid;
  gap: 5px;
}
.lp-question-fib-blank-options .lp-question-fib-option-match-case-wrap {
  display: grid;
  gap: 10px;
}
.lp-question-fib-blank-options .lp-question-fib-option-match-case-wrap.lp-hidden {
  display: grid !important;
  pointer-events: none;
  opacity: 0.5 !important;
}

.lp-question-fib-blank-option-item .lp-question-fib-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #eee;
}
.lp-question-fib-blank-option-item .lp-question-fib-option-header .lp-icon-angle-down::before, .lp-question-fib-blank-option-item .lp-question-fib-option-header .lp-icon-angle-up::before {
  content: "\f142";
  width: 15px;
  text-align: center;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-question-fib-blank-option-item .lp-question-fib-option-detail {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #EEEEEE;
  border-top: none;
}
.lp-question-fib-blank-option-item .lp-question-fib-option-detail p {
  margin: 0;
  padding: 0;
}

.lp-question-fib-buttons {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  top: 1px;
}
.lp-question-fib-buttons .lp-btn-fib-clear-all-content {
  border: none;
}

.lp-question-type-new-wrap {
  display: flex;
  gap: 5px;
}
.lp-question-type-new-wrap .lp-btn-question-create-type {
  border: none;
  background: rgba(19, 94, 150, 0.5);
  color: #fff;
}
.lp-question-type-new-wrap .lp-btn-question-create-type:hover, .lp-question-type-new-wrap .lp-btn-question-create-type.active {
  background: rgb(19, 94, 150) !important;
  color: #fff !important;
}

/**
* Style for the popup select item to add in LearnPress
*/
.lp-select-items-popup {
  padding: 0 !important;
  grid-row: 1 !important;
  --swal2-close-button-font-size: 32px;
}
.lp-select-items-html-container {
  padding: 0 !important;
}

.lp-popup-items-to-select {
  text-align: left;
  font-size: 1rem;
  /**
  * Style for the buttons
  */
}
.lp-popup-items-to-select .lp-btn-edit-primary {
  border: none;
  background: #135e96;
  color: #fff;
}
.lp-popup-items-to-select .lp-btn-edit-primary:not(.active) {
  opacity: 0.5;
}
.lp-popup-items-to-select .lp-btn-edit-primary:hover, .lp-popup-items-to-select .lp-btn-edit-primary.active, .lp-popup-items-to-select .lp-btn-edit-primary.active:hover {
  background: #135E96;
  color: #fff;
  opacity: 1;
}
.lp-popup-items-to-select .header {
  position: relative;
}
.lp-popup-items-to-select .header .header-count-items-selected {
  border-bottom: 1px solid #C3C4C7;
  padding: 16px 20px;
}
.lp-popup-items-to-select .header .tabs {
  margin: 0;
  border-bottom: 1px solid #C3C4C7;
}
.lp-popup-items-to-select .header .tabs .tab {
  display: inline-block;
  position: relative;
  margin: 0;
}
.lp-popup-items-to-select .header .tabs .tab:not(:last-child)::before {
  position: absolute;
  top: 50%;
  right: 0;
  height: 44px;
  margin-top: -22px;
  border-right: 1px solid #C3C4C7;
  content: "";
}
.lp-popup-items-to-select .header .tabs .tab.active::after {
  display: inline-block;
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -6px;
  border: 1px solid #C3C4C7;
  border-right: 0;
  border-bottom: 0;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}
.lp-popup-items-to-select .header .tabs .tab.active a {
  color: #0073aa;
}
.lp-popup-items-to-select .header .tabs .tab a {
  display: inline-block;
  height: 44px;
  padding: 0 20px;
  color: #333;
  font-weight: 600;
  line-height: 2.75rem;
  text-decoration: none;
}
.lp-popup-items-to-select .header .tabs .tab a:focus {
  box-shadow: none;
}
.lp-popup-items-to-select .main {
  overflow: hidden;
  position: relative;
  padding: 20px;
  border-bottom: 1px solid #C3C4C7;
}
.lp-popup-items-to-select .main input.lp-search-title-item {
  width: 100%;
  font-size: 1rem;
  border: 1px solid #C3C4C7;
  margin-bottom: 10px;
}
.lp-popup-items-to-select .list-items, .lp-popup-items-to-select .list-items-selected {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 260px;
  max-height: 460px;
  margin: 0;
}
.lp-popup-items-to-select .list-items li, .lp-popup-items-to-select .list-items-selected li {
  margin: 0;
  cursor: pointer;
}
.lp-popup-items-to-select .list-items-selected li {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #999;
}
.lp-popup-items-to-select .list-items-selected li .item-type {
  padding: 0;
  font-size: inherit;
  color: inherit;
  line-height: unset;
}
.lp-popup-items-to-select .list-items-selected li .item-title {
  color: #333;
}
.lp-popup-items-to-select .list-items-selected li.selected {
  background-color: #F4FCFF;
}
.lp-popup-items-to-select .list-items-selected li:hover .dashicons-remove {
  opacity: 1;
}
.lp-popup-items-to-select .list-items-selected .dashicons-remove {
  color: #E74C3C;
  opacity: 0.6;
}
.lp-popup-items-to-select .pagination {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0 -10px -10px;
  align-items: center;
}
.lp-popup-items-to-select .pagination li {
  margin: 0;
  cursor: pointer;
}
.lp-popup-items-to-select .pagination li .page-numbers {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-popup-items-to-select .pagination li a {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.lp-popup-items-to-select .footer {
  padding: 16px 20px;
  display: flex;
  gap: 5px;
}

/**
* Style for the popup select item to add in LearnPress
*/
.lp-icon-angle-down {
  display: none;
  cursor: pointer;
}

.lp-icon-angle-up {
  display: inline-block;
  cursor: pointer;
}

.lp-collapse .lp-icon-angle-up {
  display: none;
}
.lp-collapse .lp-icon-angle-down {
  display: inline-block;
}

.lp-section-collapse {
  display: grid;
  padding: 12px;
  border: 1px solid #C3C4C7;
  border-top: none;
}

.lp-section-toggle.lp-collapse .lp-section-collapse {
  display: none;
}

.lp-trigger-toggle {
  display: flex;
  align-items: center;
}

.lp-edit-quiz-wrap {
  padding: 12px;
  /**
  * Style for the buttons
  */
  /*.lp-btn-add-question {
  	border: none !important;
  	background: rgba(19, 94, 150, 0.5) !important;
  	color: #fff !important;

  	&:hover, &.active {
  		background: rgba(19, 94, 150, 1) !important;
  		color: #fff !important;
  	}
  }*/
}
.lp-edit-quiz-wrap [class*=lp-icon-] {
  font-size: 1.25rem;
  color: #787c82;
}
.lp-edit-quiz-wrap input {
  padding: 0;
  margin: 0;
}
.lp-edit-quiz-wrap input[type=text] {
  width: 100%;
  border: none;
  font-size: 0.875rem;
  background: transparent;
  box-shadow: none;
}
.lp-edit-quiz-wrap .lp-icon-spinner {
  animation: rotation 2s infinite linear;
  font-size: 1.25rem;
  color: #2271B1;
  display: none;
}
.lp-edit-quiz-wrap .lp-icon-drag {
  cursor: grab;
  line-height: 1;
}
.lp-edit-quiz-wrap .lp-icon-drag:active {
  cursor: grabbing;
}
.lp-edit-quiz-wrap .lp-btn-edit-primary {
  border: none;
  background: #135e96;
  color: #fff;
}
.lp-edit-quiz-wrap .lp-btn-edit-primary:not(.active) {
  opacity: 0.5;
}
.lp-edit-quiz-wrap .lp-btn-edit-primary:hover, .lp-edit-quiz-wrap .lp-btn-edit-primary.active, .lp-edit-quiz-wrap .lp-btn-edit-primary.active:hover {
  background: #135E96;
  color: #fff;
  opacity: 1;
}
.lp-edit-quiz-wrap .heading {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-bottom: 15px;
  align-items: center;
  line-height: 1;
  gap: 5px;
  padding-right: 12px;
}
.lp-edit-quiz-wrap .heading .count-sections .one, .lp-edit-quiz-wrap .heading .count-sections .plural, .lp-edit-quiz-wrap .heading .total-items .one, .lp-edit-quiz-wrap .heading .total-items .plural {
  display: none;
}
.lp-edit-quiz-wrap .heading .count-sections[data-count="1"] .one, .lp-edit-quiz-wrap .heading .total-items[data-count="1"] .one {
  display: inline-block;
}
.lp-edit-quiz-wrap .heading .count-sections:not([data-count="1"]) .plural, .lp-edit-quiz-wrap .heading .total-items:not([data-count="1"]) .plural {
  display: inline-block;
}
.lp-edit-quiz-wrap .heading .total-items {
  margin-left: auto;
}
.lp-edit-quiz-wrap .heading h4 {
  margin: 0;
  font-size: 1em;
  font-weight: normal;
}
.lp-edit-quiz-wrap .lp-edit-list-questions {
  border: 1px solid #C3C4C7;
  border-bottom: none;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item {
  border-bottom: 1px solid #C3C4C7;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item.lp-collapse .lp-question-edit-main {
  display: none;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item.loading {
  pointer-events: none;
  opacity: 0.5 !important;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item.loading .lp-icon-spinner {
  display: inline-block;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item[data-question-type=fill_in_blanks] .lp-btn-update-question-answer {
  display: none;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item .lp-question-type-label {
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #efefef;
  padding: 5px;
  border-radius: 4px;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item .lp-btn-remove-question, .lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item .lp-btn-edit-question-title {
  font-size: 1.15rem;
  cursor: pointer;
  text-decoration: none;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item .lp-btn-update-question-title, .lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item .lp-btn-cancel-update-question-title {
  display: none;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item.editing .lp-btn-update-question-title, .lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item.editing .lp-btn-cancel-update-question-title {
  display: inline-block;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item.editing .lp-btn-edit-question-title, .lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item.editing .lp-btn-remove-question {
  display: none;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item .lp-btn-cancel-update-question-title {
  border: none;
  background: transparent;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item .lp-btn-cancel-update-question-title:hover {
  background: #f0f0f1;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-item:hover {
  /*.lp-btn-remove-question, .lp-btn-edit-question-title {
  	display: inline-block;
  }*/
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-head {
  display: flex;
  margin: 0;
  padding: 6px 10px;
  background: #F4FCFF;
  transition: background 200ms ease-out;
  align-items: center;
  gap: 5px;
}
.lp-edit-quiz-wrap .lp-edit-list-questions .lp-section-toggle.lp-collapse .lp-section-collapse {
  display: none;
}
.lp-edit-quiz-wrap .add-new-question {
  display: flex;
  margin: 0;
  padding: 6px 10px;
  background: #F4FCFF;
  transition: background 200ms ease-out;
  align-items: center;
  gap: 5px;
  border: 1px solid #C3C4C7;
  border-top: none;
}
.lp-edit-quiz-wrap .lp-question-edit-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .lp-edit-quiz-wrap .lp-edit-list-questions .lp-question-edit-main {
    display: grid;
    grid-template-columns: 1fr;
  }
}