/* Open eLMS — Ocean + Raspberry layer for the embedded course store page
   (library.openelms.com/public/course/business, shown in an iframe on business-courses/).
   The website CSS cannot reach inside the iframe, so this goes in the store page's own styles. */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');
body,button,input,select,.btn{font-family:'Source Sans 3',system-ui,sans-serif!important}
body{color:#182025!important}
.course-card-title{color:#182025!important;font-weight:700!important}
/* Buy for life = main action: Raspberry gradient, flat Berry hover */
.btn-licence:not(.btn-licence--secondary){background:linear-gradient(135deg,#C2295C 0%,#C2295C 30%,#692947 100%)!important;background-size:130% 100%!important;background-color:#692947!important;border-color:transparent!important;color:#fff!important;transition:box-shadow .2s!important}
.btn-licence:not(.btn-licence--secondary):hover{background:#692947!important;background-image:none!important;box-shadow:0 6px 18px rgba(194,41,92,.28)!important}
/* Annual licence = second option: Deep Ocean */
body .btn-licence.btn-licence--secondary{background:#102932!important;border-color:#102932!important;color:#fff!important;transition:box-shadow .2s!important}
body .btn-licence.btn-licence--secondary:hover{background:#18383F!important;border-color:#18383F!important;box-shadow:0 6px 18px rgba(16,41,50,.25)!important}
/* Search: Deep Ocean, same as the annual-licence button. Active view toggles (Modules/Lessons, grid/list): Raspberry */
.btn-store-search{background:#102932!important;border-color:#102932!important;color:#fff!important;transition:box-shadow .2s!important}
.btn-store-search:hover{background:#18383F!important;border-color:#18383F!important;box-shadow:0 6px 18px rgba(16,41,50,.25)!important}
.course-view-btn.active{background:#C2295C!important;border-color:#C2295C!important;color:#fff!important}
.course-view-btn:not(.active):hover{background:#ECF3F4!important}
.cart-badge{background:#C2295C!important}
.form-control:focus,.form-select:focus{border-color:#157F7C!important;box-shadow:0 0 0 3px rgba(21,127,124,.18)!important}

/* Dropdowns (2026): white rounded box, slim chevron, Raspberry focus; open list = rounded panel, max 12 rows then scroll, Raspberry highlight + ✓.
   Uses the customisable <select> (Chrome/Edge); other browsers keep their native list. */
@supports (appearance: base-select){
select,select::picker(select){appearance:base-select!important}
select{background-image:none!important;display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;white-space:nowrap;background:#fff!important;border:1px solid #D5DCDF!important;border-radius:10px!important;padding:9px 14px!important;color:#182025!important;font:inherit!important;cursor:pointer;transition:border-color .15s,box-shadow .15s}
select:hover{border-color:#9AA6AC!important}
select:focus-visible,select:open{border-color:#C2295C!important;box-shadow:0 0 0 3px rgba(194,41,92,.15)!important;outline:none!important}
select::picker-icon{content:"";flex:none;margin-left:auto;width:8px;height:8px;border-right:2px solid #576166;border-bottom:2px solid #576166;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
select:open::picker-icon{transform:translateY(2px) rotate(225deg);border-color:#C2295C}
::picker(select){max-height:calc(12 * 38px + 12px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#C9D1D5 transparent;border:1px solid #E3E9EB;border-radius:12px;padding:6px;margin-block:6px;background:#fff;box-shadow:0 12px 32px rgba(16,41,50,.16)}
option{padding:9px 12px;line-height:20px;border-radius:8px;color:#182025;font:inherit;gap:8px}
option:hover,option:focus-visible{background:#C2295C;color:#fff;outline:none}
option:checked{font-weight:600;color:#C2295C}
option:checked:hover,option:checked:focus-visible{color:#fff}
option::checkmark{color:currentColor}
}

/* Course modules list (lessonModulesModal): a centred panel like our dropdowns (max ~12 rows), Indigo "Preview" pills. One scrollbar only: the list; the panel fits the visible window (course.js pins the modal to it). */
#lessonModulesModal.show{display:flex!important;align-items:flex-start;justify-content:center;overflow:hidden!important}
#lessonModulesModal .modal-dialog,#lessonModulesModal .modal-dialog.modal-fullscreen{display:flex;width:calc(100% - 32px)!important;max-width:760px!important;height:auto!important;max-height:calc(100% - 112px);margin:88px auto 24px!important;min-height:0!important}
/* Phones (course.js): the site nav is hidden while the list is open, so no 88px gap for it. */
#lessonModulesModal.lesson-modules-phone .modal-dialog{max-height:calc(100% - 32px);margin:16px auto!important}
#lessonModulesModal .modal-content{display:flex;flex-direction:column;border:1px solid #E3E9EB!important;border-radius:16px!important;box-shadow:0 18px 48px rgba(16,41,50,.22)!important;overflow:hidden;height:auto!important;max-height:100%!important}
#lessonModulesModal .modal-header{background:#fff!important;border-bottom:1px solid #E3E9EB!important;padding:16px 20px!important}
#lessonModulesModal .modal-title{font-family:'Source Serif 4',Georgia,serif!important;font-weight:700!important;color:#102932!important;font-size:1.2rem!important}
#lessonModulesModal .modal-body{flex:1 1 auto;min-height:0;padding:8px!important;max-height:calc(12 * 62px + 16px);overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#C9D1D5 transparent}
#lessonModulesModal #lessonModulesList{max-height:none!important;overflow:visible!important}
#lessonModulesList .list-group-item{border:0!important;border-radius:10px!important;padding:8px 12px!important;color:#182025!important;background:#fff!important;transition:background-color .15s}
#lessonModulesList .list-group-item:hover{background:#ECF3F4!important}
#lessonModulesList .preview-module-btn{background:linear-gradient(135deg,#4E5CBC 0%,#4E5CBC 30%,#2F4377 100%)!important;background-size:130% 100%!important;background-color:#2F4377!important;border:0!important;border-radius:999px!important;color:#fff!important;font-weight:600!important;padding:6px 16px!important;transition:box-shadow .2s!important;white-space:nowrap}
#lessonModulesList .preview-module-btn:hover{background:#2F4377!important;background-image:none!important;box-shadow:0 6px 16px rgba(78,92,188,.28)!important}
#lessonModulesList .preview-module-btn,#lessonModulesList .preview-unavailable-label{flex-shrink:0;min-width:150px;justify-content:center;text-align:center}
#lessonModulesList .preview-unavailable-label{display:inline-block;color:#576166!important;font-size:12px!important;background:#ECF3F4;border-radius:999px;padding:4px 12px;white-space:nowrap}
