/* 3.11.82: manual no-payment lessons in teacher cabinet, student cabinet and schedule. */
.sp-manual-free-lesson{display:grid;gap:15px;margin:20px;padding:22px;border:1px solid #d9c8e8;border-radius:20px;background:linear-gradient(135deg,#f6f0fa,#fff6e7)}
.sp-manual-free-heading{display:flex;align-items:center;gap:13px}.sp-manual-free-heading>span{display:grid;place-items:center;width:45px;height:45px;flex:0 0 45px;border-radius:15px;background:#8064a2;color:#fff;font-size:22px}.sp-manual-free-heading h3,.sp-manual-free-heading p{margin:0}.sp-manual-free-heading p{margin-top:3px;color:#5f6d72}
.sp-manual-free-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.sp-manual-free-lesson label{display:grid;gap:7px;color:#362549;font-weight:750}.sp-manual-free-lesson :is(input,select,textarea){width:100%;min-width:0;border:1px solid #d9c8e8!important;border-radius:13px!important;background:#fff!important;color:#172b28!important;box-shadow:none!important}.sp-manual-free-lesson button{width:max-content;border:0;background:#8064a2!important}
.sp-manual-free-label,.sp-calendar-manual-free{display:inline-flex;width:max-content;margin:6px 0 3px;padding:4px 8px;border-radius:999px;background:#e8e0f2;color:#543570;font-size:12px;font-weight:850}.sp-manual-free-note{display:block;margin-top:5px;color:#4f5d62;line-height:1.35}.sp-calendar-manual-note{max-width:100%;margin-top:3px;color:#543570;font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.student-slot-lesson:has(.sp-calendar-manual-free){background:#f3edf8!important;border-color:#8b6bb1!important;border-left-color:#8b6bb1!important}.sp-dashboard-lesson:has(.sp-manual-free-label){border-color:#c9b1dc!important;background:linear-gradient(135deg,#fff,#f6f0fa)!important}
@media(max-width:680px){.sp-manual-free-grid{grid-template-columns:1fr}.sp-manual-free-lesson{margin:14px;padding:17px}.sp-manual-free-lesson button{width:100%}}
.sp-manual-free-open{width:100%!important;margin:8px 0 4px!important;padding:13px 17px!important;border:0!important;border-radius:13px!important;background:#8064a2!important;color:#fff!important;font-weight:850!important}.sp-slot-action-separator{margin:12px 0!important;color:#746683!important;font-size:12px!important;text-align:center!important}.sp-manual-free-slot-dialog{position:relative;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:24px;overflow:auto;border:1px solid #d9c8e8;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(20,27,43,.2)}.sp-manual-free-slot-dialog>.sp-modal-close{position:absolute;z-index:2;top:13px;right:13px;display:grid;width:38px;height:38px;padding:0;place-items:center;border:0;border-radius:50%;background:#f1e8f7;color:#50316b;font-size:25px}.sp-manual-free-slot-dialog .sp-manual-free-lesson{margin:18px 0 0;padding:0;border:0;background:transparent}.sp-manual-free-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:13px;background:#f4eef8;color:#4f3568}.sp-manual-free-actions{display:flex;justify-content:flex-end;gap:10px}.sp-manual-free-actions button:first-child{background:#eee5f5!important;color:#50316b!important}.sp-manual-free-actions button:last-child{background:#8064a2!important;color:#fff!important}@media(max-width:600px){.sp-manual-free-slot-dialog{padding:20px 15px}.sp-manual-free-actions{display:grid;grid-template-columns:1fr 1fr}.sp-manual-free-actions button{width:100%!important}}

/* 3.12.19: compact, calm manual-lesson dialog that remains usable on phones/tablets. */
#sp-manual-free-slot-modal{padding:14px!important;box-sizing:border-box;backdrop-filter:blur(7px);background:rgba(27,20,35,.46)!important}
.sp-manual-free-slot-dialog{width:min(520px,100%)!important;max-height:calc(100dvh - 28px)!important;padding:26px!important;overflow:auto!important;border:1px solid #dfd1eb!important;border-radius:26px!important;background:linear-gradient(180deg,#fff 0,#fdfaff 100%)!important;box-shadow:0 26px 80px rgba(42,25,57,.28)!important}
.sp-manual-free-slot-dialog>.sp-modal-close{top:16px!important;right:16px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border:1px solid #dfd1eb!important;border-radius:50%!important;background:#f6f0fa!important;color:#51386a!important;line-height:1!important}
.sp-manual-free-slot-dialog .sp-manual-free-heading{padding-right:40px!important;align-items:flex-start!important}.sp-manual-free-slot-dialog .sp-manual-free-heading>span{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:14px!important}.sp-manual-free-slot-dialog .sp-manual-free-heading h3{font-size:22px!important;line-height:1.15!important;color:#213c37!important}.sp-manual-free-slot-dialog .sp-manual-free-heading p{max-width:390px!important;margin-top:7px!important;font-size:14px!important;line-height:1.42!important;color:#6d6474!important}
.sp-manual-free-slot-dialog .sp-manual-free-lesson{gap:13px!important;margin-top:20px!important}.sp-manual-free-slot-dialog .sp-manual-free-lesson label{gap:6px!important;font-size:13px!important;color:#4d3c59!important}.sp-manual-free-slot-dialog .sp-manual-free-lesson :is(select,textarea){min-height:46px!important;padding:11px 13px!important;border:1px solid #d9cce4!important;border-radius:14px!important;background:#fff!important;color:#233d38!important;font-size:15px!important;line-height:1.3!important}.sp-manual-free-slot-dialog .sp-manual-free-lesson textarea{min-height:68px!important;resize:vertical!important}.sp-manual-free-summary{padding:12px 14px!important;border:1px solid #eadff2!important;border-radius:14px!important;background:#f5eff9!important;color:#563a70!important}.sp-manual-free-summary strong{font-size:14px!important;text-transform:none!important}.sp-manual-free-summary span{font-weight:850!important}
.sp-manual-free-actions{display:grid!important;grid-template-columns:1fr 1.35fr!important;gap:10px!important;margin-top:3px!important}.sp-manual-free-actions button{display:flex!important;width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;padding:11px 14px!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:15px!important;font-size:14px!important;font-weight:850!important;line-height:1.2!important;white-space:normal!important}.sp-manual-free-actions button:first-child{background:#efe7f5!important;color:#543b69!important}.sp-manual-free-actions button:last-child{background:#8064a2!important;color:#fff!important}

/* The shared Elementor header outside the classroom must remain one compact row.
   Elementor containers default to flex-wrap:wrap on narrow screens, which used to
   push the user controls below the menu and make the header twice as tall. */
@media(max-width:900px){
  body .elementor-location-header>.elementor-element-fe11d85{
    display:flex!important;
    width:100%!important;
    min-height:68px!important;
    height:68px!important;
    padding:0!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
  }
  body .elementor-location-header .elementor-element-d70f6ef{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    width:min(100%,1180px)!important;
    min-width:0!important;
    min-height:68px!important;
    height:68px!important;
    margin:0 auto!important;
    padding:7px 14px!important;
    align-items:center!important;
    gap:10px!important;
    flex-wrap:nowrap!important;
  }
  body .elementor-location-header .elementor-element-19dd91e{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    align-items:flex-start!important;
  }
  body .elementor-location-header .elementor-element-19dd91e .elementor-menu-toggle{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body .elementor-location-header .elementor-element-75bdcc3{
    grid-column:2!important;
    grid-row:1!important;
    width:auto!important;
    min-width:0!important;
    height:44px!important;
    margin:0!important;
    align-self:center!important;
  }
  body .elementor-location-header .sp-user-menu-wrap{height:44px!important;gap:7px!important;flex-wrap:nowrap!important}
  body .elementor-location-header .sp-notification-centre,
  body .elementor-location-header .sp-user-menu,
  body .elementor-location-header .sp-notification-bell,
  body .elementor-location-header .sp-user-trigger,
  body .elementor-location-header .sp-user-avatar{
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    flex:0 0 44px!important;
  }
  body .elementor-location-header .sp-user-initials{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    flex-basis:40px!important;
    font-size:15px!important;
  }
  body .elementor-location-header .sp-notification-bell svg{width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important}
  body .elementor-location-header .sp-notification-panel{top:50px!important;right:0!important;max-width:calc(100vw - 20px)!important}
}
@media(max-width:420px){
  body .elementor-location-header .elementor-element-d70f6ef{padding-right:10px!important;padding-left:10px!important;gap:6px!important}
}
@media(max-width:600px){.sp-manual-free-slot-dialog{padding:20px 16px!important;border-radius:21px!important}.sp-manual-free-slot-dialog .sp-manual-free-heading h3{font-size:19px!important}.sp-manual-free-slot-dialog .sp-manual-free-heading p{font-size:13px!important}.sp-manual-free-actions{grid-template-columns:1fr!important}.sp-manual-free-actions button{min-height:45px!important}}

/* The theme styles first/last buttons as round icon controls. Keep form actions isolated. */
#sp-manual-free-slot-modal .sp-manual-free-slot-dialog .sp-manual-free-actions>.sp-manual-free-cancel,#sp-manual-free-slot-modal .sp-manual-free-slot-dialog .sp-manual-free-actions>.sp-manual-free-submit{position:static!important;display:flex!important;width:100%!important;height:auto!important;min-width:0!important;max-width:none!important;min-height:46px!important;margin:0!important;padding:11px 14px!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:14px!important;transform:none!important;appearance:none!important;box-shadow:none!important;overflow:visible!important;text-indent:0!important;font-size:14px!important;line-height:1.2!important;white-space:normal!important}
#sp-manual-free-slot-modal .sp-manual-free-slot-dialog .sp-manual-free-actions>.sp-manual-free-cancel{background:#efe7f5!important;color:#543b69!important}#sp-manual-free-slot-modal .sp-manual-free-slot-dialog .sp-manual-free-actions>.sp-manual-free-submit{background:#8064a2!important;color:#fff!important}
#sp-manual-free-slot-modal .sp-manual-free-actions>button::before,#sp-manual-free-slot-modal .sp-manual-free-actions>button::after{content:none!important;display:none!important}
@media(max-height:760px){.sp-manual-free-slot-dialog{padding-top:20px!important;padding-bottom:18px!important}.sp-manual-free-slot-dialog .sp-manual-free-heading p{display:none!important}.sp-manual-free-slot-dialog .sp-manual-free-lesson{gap:9px!important;margin-top:14px!important}.sp-manual-free-slot-dialog .sp-manual-free-lesson textarea{min-height:55px!important}.sp-manual-free-actions>button{min-height:43px!important}}

/* 3.12.21: final authority for the schedule dialog inside Elementor. */
body #sp-manual-free-slot-modal>#sp-manual-free-slot-modal-impossible,body #sp-manual-free-slot-modal>.sp-manual-free-slot-dialog{box-sizing:border-box!important;width:min(520px,100%)!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 28px)!important;padding:24px!important;overflow:auto!important;border:1px solid #dfd1eb!important;border-radius:26px!important;background:#fff!important;background-color:#fff!important;color:#213c37!important;opacity:1!important;box-shadow:0 26px 80px rgba(42,25,57,.28)!important}
body:has(.sp-classroom[data-sp-classroom]) .sp-classroom[data-sp-classroom] .sp-class-topbar{box-sizing:border-box!important;display:flex!important;min-width:0!important;min-height:64px!important;height:64px!important;padding:8px 12px!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:nowrap!important;overflow:visible!important}
body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>nav{display:flex!important;min-width:0!important;flex:1 1 auto!important;justify-content:center!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>nav::-webkit-scrollbar{display:none!important}
body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>nav{order:1!important}
body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>nav>button{min-height:40px!important;padding:8px 12px!important;flex:0 0 auto!important;white-space:nowrap!important;font-size:13px!important;line-height:1.15!important}
body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>.sp-class-top-actions{position:static!important;inset:auto!important;display:flex!important;min-width:max-content!important;margin:0!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}
body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>.sp-class-top-actions{order:2!important}
@media(max-width:760px){body:has(.sp-classroom[data-sp-classroom]) .sp-classroom[data-sp-classroom] .sp-class-topbar{padding:7px 8px!important}body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>nav{justify-content:flex-start!important}body:has(.sp-classroom[data-sp-classroom]) .sp-class-topbar>nav>button{min-height:38px!important;padding:7px 9px!important;font-size:12px!important}body:has(.sp-classroom[data-sp-classroom]) .sp-class-top-actions :is(.sp-class-student-cabinet,.sp-class-exit){width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important}.sp-class-presence-stack{padding-left:3px!important}}
