/* Search field (Elementor widget "Lesson Search Field"): defaults only; the widget's style controls win. */
.ozo-fsearch { position: relative; display: inline-block; }
/* Button look comes from Elementor's button style controls; only the two-line layout is here. */
.ozo-fsearch__button { position: relative; text-align: left; white-space: nowrap; }
.ozo-fsearch__button .elementor-button-content-wrapper { flex-direction: column; align-items: flex-start; gap: 0; }
.ozo-fsearch__sub { font-size: .75em; font-weight: normal; }
.ozo-fsearch-sub-never .ozo-fsearch__sub { display: none; }
.ozo-fsearch-sub-open .ozo-fsearch__sub { display: none; }
.ozo-fsearch-sub-open .ozo-fsearch__button.is-open .ozo-fsearch__sub { display: block; }

.ozo-fsearch__panel {
	position: absolute; top: 100%; left: 0; z-index: 99; width: 450px; max-width: calc(100vw - 32px); margin-top: 0; padding: 20px;
	background: #fff; border-radius: 12px; box-shadow: rgba(0, 0, 0, .2) 0 5px 15px; box-sizing: border-box; white-space: normal; cursor: default;
}
.ozo-fsearch__panel[hidden] { display: none; }
.ozo-fsearch-align-right .ozo-fsearch__panel { left: auto; right: 0; }
.ozo-fsearch .ozo-fsearch__input {
	display: block; width: 100%; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid #c9ced3; border-radius: 8px; outline: 0; background: #fff;
	color: inherit; font: inherit; font-size: 16px; box-shadow: none; box-sizing: border-box; height: auto; line-height: 1.3;
}
.ozo-fsearch .ozo-fsearch__input:focus { border-color: #275de1; }
.ozo-fsearch .ozo-fsearch__input::placeholder { color: inherit; opacity: .55; }

.ozo-fsearch__recent { margin-top: 14px; }
.ozo-fsearch__recent[hidden] { display: none; }
.ozo-fsearch__recent-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 0 8px 4px; }
.ozo-fsearch__recent-title { font-weight: 600; opacity: .7; }
.ozo-fsearch__recent-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.ozo-fsearch__recent-row { display: flex; align-items: center; border-radius: 8px; }
.ozo-fsearch__recent-row:hover, .ozo-fsearch__recent-row:focus-within { background: rgba(0, 0, 0, .05); }
.ozo-fsearch .ozo-fsearch__recent-item {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0; border: 0; border-radius: 8px; background: none;
	color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: none;
}
.ozo-fsearch__recent-icon { flex: 0 0 auto; width: 16px; height: 16px; opacity: .55; }
.ozo-fsearch__recent-text { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ozo-fsearch .ozo-fsearch__remove, .ozo-fsearch .ozo-fsearch__clear {
	flex: 0 0 auto; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; box-shadow: none; opacity: .6;
}
.ozo-fsearch .ozo-fsearch__remove { padding: 4px 10px; font-size: 18px; line-height: 1; }
.ozo-fsearch .ozo-fsearch__clear { padding: 2px 4px; font-size: 13px; text-decoration: underline; }
.ozo-fsearch .ozo-fsearch__remove:hover, .ozo-fsearch .ozo-fsearch__clear:hover { opacity: 1; background: none; }
.ozo-fsearch__button:focus-visible, .ozo-fsearch .ozo-fsearch__recent-item:focus-visible, .ozo-fsearch .ozo-fsearch__remove:focus-visible, .ozo-fsearch .ozo-fsearch__clear:focus-visible { outline: 2px solid #275de1; outline-offset: 2px; }

/* Drop-down entrance: a short fade and settle. Uses the individual translate / scale properties so it never fights the transform the script sets to keep the panel on screen. */
@keyframes ozo-panel-in { from { opacity: 0; translate: 0 -6px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.ozo-fsearch__panel:not([hidden]) { transform-origin: top center; animation: ozo-panel-in 160ms ease-out; }
@media (prefers-reduced-motion: reduce) { .ozo-fsearch__panel:not([hidden]) { animation: none; } }
