/* Rally 1.1.24 RichText integration. */
.rallyflo-ela-richtext-target {
	display: none !important;
}


/* Rally 1.1.22: assessment responses and Notes are left-to-right.
 * Do not set text-align here; the RTE alignment controls must remain functional. */
.richText .richText-editor {
	direction: ltr;
	unicode-bidi: isolate;
	writing-mode: horizontal-tb;
}

.richText-toolbar a.richText-help {
	display: none !important;
}

.richText-toolbar .rally-richtext-clipboard-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 9px;
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
}

.richText-toolbar .rally-richtext-clipboard-item > a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rally-richtext-clipboard-status {
	display: block;
	min-height: 0;
	margin: 3px 6px 0;
	font-size: 11px;
	line-height: 1.3;
}

.rally-richtext-clipboard-status:empty {
	display: none;
}

.rally_quiz_start_btn_present .rally-note-review-icon {
	display: none;
	margin-left: 3px;
	font-size: 0.75em;
	line-height: 1;
	vertical-align: super;
}

/* Rally 1.1.20: keep the shared MathQuill keyboard out of Notes/RichText. */
#rallyflo-global-mathquill-popup.rally-drop-show {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	width: 100% !important;
	z-index: 999999 !important;
}

body.rallyNotesPopupOpen #rallyflo-global-mathquill-popup,
body.rallyNotesPopupOpen .rally-drop-show,
body.rallyNotesPopupOpen .rally-popup-div-parent {
	display: none !important;
}


/* Rally 1.1.24: student-controlled vertical resizing for ELA essay editors.
 * The vendor editor ships with a fixed 300px editing surface.  The Rally
 * integration owns resizing so the vendor library remains untouched. */
.richText.rally-richtext-essay-resizable .richText-editor {
    min-height: 180px;
    overflow-y: auto;
}

.richText.rally-richtext-essay-resizable .rally-richtext-resize-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 10px;
    border-top: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    background: #f7f7f7;
    color: #333;
    cursor: ns-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    font-size: 12px;
    line-height: 1.2;
}

.richText.rally-richtext-essay-resizable .rally-richtext-resize-handle::before {
    content: '';
    display: inline-block;
    width: 42px;
    height: 0;
    border-top: 3px double currentColor;
    opacity: 0.65;
}

.richText.rally-richtext-essay-resizable .rally-richtext-resize-handle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

body.rally-richtext-resizing,
body.rally-richtext-resizing * {
    cursor: ns-resize !important;
}
