/**
 * Student Notes uses the shared learning bar, LP buttons, forms and messages.
 * All layout adjustments below are scoped to Notes; system styles stay unchanged.
 *
 * @since 4.4.9.2
 */
:root {
  --lp-cotainer-max-with: var(--lp-container-max-width);
}

.wp-block-group {
  --lp-container-max-width: var(--wp--style--global--wide-size);
}

mark.lp-note-hl {
  padding: 0;
  background: var(--lp-notes-highlight-color, rgba(14, 165, 233, 0.16));
  color: inherit;
}
mark.lp-note-hl.is-active {
  background: var(--lp-notes-highlight-active-color, rgba(14, 165, 233, 0.34));
}

.lp-notes .lp-button.lp-notes__selection-btn {
  position: fixed;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 6px 15px;
  border: none;
  border-radius: var(--lp-border-radius, 5px);
  background: var(--lp-primary-color, #ffb606);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.lp-notes .lp-button.lp-notes__selection-btn:hover {
  background: var(--lp-primary-color, #ffb606);
  color: #fff;
  opacity: 1;
}
.lp-notes .lp-button.lp-notes__selection-btn:focus-visible {
  outline: 2px solid var(--lp-primary-color, #ffb606);
  outline-offset: 2px;
}
.lp-notes .lp-button.lp-notes__selection-btn[hidden] {
  display: none;
}

.lp-notes__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-addon-content-bar .lp-notes__view-all {
  white-space: nowrap;
  margin-inline-end: 8px;
  font-size: calc(var(--lp-font-size-base, 1em) * 0.9);
  font-weight: 400;
  line-height: 1.4;
}
.lp-addon-content-bar .lp-notes__view-all[aria-disabled=true] {
  opacity: 0.5;
  cursor: default;
}

.lp-addon-content-bar[data-learning-bar-item=notes] .lp-addon-content-bar__left {
  flex: 1;
  min-width: 0;
}

.lp-notes__all {
  text-align: start;
  color: var(--lp-color-base, #333);
  font-size: var(--lp-font-size-base, 1em);
}
.lp-notes__all .lp-notes__list {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
}
.lp-notes__all .lp-notes__lesson {
  flex-shrink: 0;
  border: 1px solid var(--lp-border-color, #E1E1E1);
  border-radius: var(--lp-border-radius, 5px);
  background: var(--lp-color-white, #fff);
  overflow: hidden;
}
.lp-notes__all .lp-notes__lesson-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin: 0;
  list-style: none;
  font-size: inherit;
  font-weight: var(--lp-font-weight-link, 600);
  cursor: pointer;
  background: var(--lp-white-grey, #F1F2F8);
  overflow-wrap: anywhere;
}
.lp-notes__all .lp-notes__lesson-title::-webkit-details-marker {
  display: none;
}
.lp-notes__all .lp-notes__lesson[open] > .lp-notes__lesson-title .lp-icon-angle-down {
  transform: rotate(180deg);
}
.lp-notes__all .lp-notes__lesson-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}
.lp-notes__all .lp-notes__card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-notes__all .lp-notes__card-date {
  color: var(--lp-color-meta, #8a8a8a);
  font-size: calc(var(--lp-font-size-base, 1em) * 0.82);
}
.lp-notes__all .lp-notes__card-quote {
  border-inline-start-color: var(--lp-primary-color, #ffb606);
  background: var(--lp-white-grey, #F1F2F8);
}

.lp-notes__body,
.lp-notes__list,
.lp-notes__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-notes__all.lp-profile-notes .lp-notes__list {
  max-height: none;
}
.lp-notes__all.lp-profile-notes .lp-profile-notes__context {
  overflow-wrap: anywhere;
  font-weight: var(--lp-font-weight-link, 600);
}

.lp-addon-content-bar[data-learning-bar-item=notes] .lp-addon-content-bar__content {
  padding: 20px;
  overflow: auto;
}

.lp-addon-content-bar .lp-notes__body {
  flex: none;
}

.lp-notes__help {
  align-items: flex-start;
  padding-right: 40px;
}
.lp-notes__help p {
  margin: 0;
}

.lp-notes__help .lp-notes__help-hint {
  margin-top: 8px;
}

.lp-notes__help-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
}

.lp-button.lp-notes__add {
  width: 100%;
  min-height: 37px;
  padding: 8px 12px;
  font-size: calc(var(--lp-font-size-base, 1em) * 0.9);
  line-height: 19px;
}

.lp-notes__form {
  padding: 0;
  border: 0;
  background: transparent;
}

.lp-notes__card {
  padding: 16px;
  border: 1px solid var(--lp-border-color, #E1E1E1);
  border-radius: var(--lp-border-radius, 5px);
  background: var(--lp-color-white, #fff);
}

.lp-notes__form-content {
  min-height: 88px;
  font-family: inherit;
  resize: vertical;
}

.lp-notes__form-actions,
.lp-notes__card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-notes__card-actions .lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.lp-notes__card-actions .lp-button:focus-visible {
  outline: 2px solid var(--lp-primary-color, #ffb606);
  outline-offset: 2px;
}

.lp-notes__form-quote,
.lp-notes__card-quote {
  margin: 0;
  padding: 12px;
  border: 0;
  border-left: 3px solid var(--lp-border-color, #E1E1E1);
  background: var(--lp-notes-highlight-color, rgba(14, 165, 233, 0.16));
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.lp-notes__form-quote::before, .lp-notes__form-quote::after,
.lp-notes__card-quote::before,
.lp-notes__card-quote::after {
  content: none;
}

.lp-notes__form-quote {
  max-height: 96px;
  margin-bottom: 12px;
  overflow-y: auto;
}

.lp-notes__card {
  gap: 8px;
}
.lp-notes__card.is-active, .lp-notes__card:focus-visible {
  border-color: var(--lp-primary-color, #ffb606);
}
.lp-notes__card:focus {
  outline: none;
}
.lp-notes__card.is-highlight {
  cursor: pointer;
}

.lp-notes__card-content {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.lp-notes__card-content:empty {
  display: none;
}

.lp-notes__card-orphaned {
  margin: 0;
}

.lp-notes [hidden],
.lp-notes__body [hidden],
.lp-notes__all [hidden] {
  display: none;
}