/**
* 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
*/
.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;
}

.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-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;
}