/* YALC Summer Schedule — front-end styles.
   All rules are scoped under .yalc-schedule and class names are yalc-
   prefixed so nothing collides with the active theme. */

.yalc-schedule{
  --yss-card:#ffffff; --yss-ink:#1f2933; --yss-muted:#6b7785;
  --yss-line:#e3e8ee; --yss-bg:#f4f6f8; --yss-brand:#1971c2;
  --yss-brand-dk:#15589c; --yss-accent:#e8590c; --yss-ok:#2b8a3e;
  --yss-shadow:0 1px 3px rgba(16,24,40,.07),0 1px 2px rgba(16,24,40,.04);
  color:var(--yss-ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
    "Helvetica Neue","PingFang TC","Microsoft JhengHei",sans-serif;
  font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.yalc-schedule *,.yalc-schedule *::before,.yalc-schedule *::after{box-sizing:border-box;}

.yalc-schedule .yalc-boot,
.yalc-schedule .yalc-notice{
  background:var(--yss-card);border:1px solid var(--yss-line);
  border-radius:10px;padding:22px;text-align:center;color:var(--yss-muted);
}

/* ----- filter bar ----- */
.yalc-schedule .yss-filters{
  background:var(--yss-card);border:1px solid var(--yss-line);
  border-radius:12px;box-shadow:var(--yss-shadow);
  padding:14px 16px;margin:0 0 6px;
  position:sticky;top:0;z-index:20;
}
.yalc-schedule .yss-frow{display:flex;flex-wrap:wrap;gap:14px 18px;align-items:flex-end;}
.yalc-schedule .yss-fld{display:flex;flex-direction:column;gap:5px;}
.yalc-schedule .yss-fld label{
  font-size:11px;font-weight:700;color:var(--yss-muted);
  text-transform:uppercase;letter-spacing:.05em;
}
.yalc-schedule .yss-fld input,
.yalc-schedule .yss-fld select{
  font-family:inherit;font-size:14px;color:var(--yss-ink);
  border:1px solid var(--yss-line);border-radius:8px;padding:8px 10px;
  background:#fff;min-height:38px;margin:0;
}
.yalc-schedule .yss-fld input{width:120px;}
/* search grows to fill the row, and gets a full-width line on small screens */
.yalc-schedule .yss-fsearch{flex:1 1 240px;min-width:200px;}
.yalc-schedule .yss-fsearch input{width:100%;}
.yalc-schedule .yss-fld select{min-width:158px;cursor:pointer;}
.yalc-schedule .yss-fld input:focus,
.yalc-schedule .yss-fld select:focus{
  outline:2px solid var(--yss-brand);outline-offset:-1px;border-color:var(--yss-brand);
}
.yalc-schedule .yss-seg{display:flex;border:1px solid var(--yss-line);border-radius:8px;overflow:hidden;}
.yalc-schedule .yss-seg button{
  border:0;background:#fff;font-family:inherit;font-size:13px;font-weight:600;
  color:var(--yss-muted);padding:8px 12px;cursor:pointer;min-height:38px;
  border-right:1px solid var(--yss-line);
}
.yalc-schedule .yss-seg button:last-child{border-right:0;}
.yalc-schedule .yss-seg button.yss-on{background:var(--yss-brand);color:#fff;}
.yalc-schedule .yss-clear{margin-left:auto;}
.yalc-schedule .yss-clear button{
  border:1px solid var(--yss-line);background:#fff;color:var(--yss-muted);
  font-family:inherit;font-size:13px;font-weight:600;padding:9px 14px;
  border-radius:8px;cursor:pointer;min-height:38px;
}
.yalc-schedule .yss-clear button:hover{color:var(--yss-accent);border-color:var(--yss-accent);}

/* ----- student selector ----- */
.yalc-schedule .yss-student-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:#eef6fd;border:1px solid #cfe5fa;border-radius:10px;
  padding:11px 14px;margin-bottom:12px;
}
.yalc-schedule .yss-student-label{font-weight:700;font-size:14px;color:var(--yss-brand-dk);}
.yalc-schedule .yss-student-sel{
  font-family:inherit;font-size:14px;font-weight:600;color:var(--yss-ink);
  border:1px solid var(--yss-brand);border-radius:8px;padding:8px 12px;
  background:#fff;min-height:38px;cursor:pointer;min-width:220px;margin:0;
}
.yalc-schedule .yss-student-sel:focus{outline:2px solid var(--yss-brand);outline-offset:-1px;}
.yalc-schedule .yss-student-row.yss-flash{animation:yss-flash 1s ease;}
@keyframes yss-flash{
  0%,100%{background:#eef6fd;border-color:#cfe5fa;}
  35%,65%{background:#ffe8cc;border-color:var(--yss-accent);}
}

/* ----- count line ----- */
.yalc-schedule .yss-count{padding:14px 2px 2px;font-size:13px;color:var(--yss-muted);font-weight:600;}

/* ----- week sections ----- */
.yalc-schedule .yss-wk-h{display:flex;align-items:center;gap:10px;margin:22px 0 12px;}
.yalc-schedule .yss-wk-h .yss-num{
  background:var(--yss-brand);color:#fff;font-weight:700;font-size:14px;
  width:30px;height:30px;border-radius:8px;display:flex;align-items:center;
  justify-content:center;flex-shrink:0;
}
.yalc-schedule .yss-wk-h h3{font-size:17px;font-weight:700;margin:0;padding:0;border:0;}
.yalc-schedule .yss-wk-h .yss-ct{
  font-size:12px;color:var(--yss-muted);font-weight:600;background:var(--yss-card);
  border:1px solid var(--yss-line);padding:2px 9px;border-radius:20px;
}
.yalc-schedule .yss-wk-h .yss-ln{flex:1;height:1px;background:var(--yss-line);}

/* ----- slot card ----- */
.yalc-schedule .yss-slot{
  background:var(--yss-card);border:1px solid var(--yss-line);border-radius:11px;
  box-shadow:var(--yss-shadow);padding:14px 16px;margin-bottom:10px;
  display:grid;grid-template-columns:5px 1fr auto;gap:0 16px;align-items:center;
}
.yalc-schedule .yss-bar{width:5px;align-self:stretch;border-radius:4px;min-height:54px;}
.yalc-schedule .yss-main{min-width:0;}
.yalc-schedule .yss-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:3px;}
.yalc-schedule .yss-cat{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;}
.yalc-schedule .yss-age{font-size:11px;font-weight:700;color:#fff;padding:1px 8px;border-radius:20px;}
.yalc-schedule .yss-name{font-size:15px;font-weight:700;letter-spacing:-.01em;}
.yalc-schedule .yss-theme{font-size:13px;color:var(--yss-muted);margin-top:1px;}
.yalc-schedule .yss-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:7px;font-size:12.5px;color:var(--yss-muted);}
.yalc-schedule .yss-meta b{color:var(--yss-ink);font-weight:600;}
.yalc-schedule .yss-meta .yss-ic{opacity:.6;margin-right:3px;}
/* course name links through to the product page for full details */
.yalc-schedule .yss-name-link{
  color:inherit;text-decoration:none;
}
.yalc-schedule .yss-name-link:hover,
.yalc-schedule .yss-name-link:focus{
  text-decoration:underline;text-underline-offset:2px;
}
/* class code — quiet, but readable in a screenshot */
.yalc-schedule .yss-code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11.5px;letter-spacing:.02em;color:var(--yss-muted);
  background:var(--yss-bg);border:1px solid var(--yss-line);
  padding:1px 7px;border-radius:5px;
}
.yalc-schedule .yss-buy{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0;}
.yalc-schedule .yss-price{font-size:18px;font-weight:800;color:var(--yss-ink);}
.yalc-schedule .yss-price span{font-size:12px;font-weight:600;color:var(--yss-muted);}
.yalc-schedule .yss-book{
  border:0;background:var(--yss-accent);color:#fff;font-family:inherit;
  font-size:13px;font-weight:700;padding:9px 18px;border-radius:8px;
  cursor:pointer;white-space:nowrap;transition:background .12s,transform .05s;
}
.yalc-schedule .yss-book:hover{background:#d24f06;}
.yalc-schedule .yss-book:active{transform:scale(.97);}
.yalc-schedule .yss-book.yss-in{background:var(--yss-ok);}
.yalc-schedule .yss-book.yss-in:hover{background:#c92a2a;}
.yalc-schedule .yss-book.yss-busy{opacity:.6;pointer-events:none;}

/* sold-out slots */
.yalc-schedule .yss-slot.yss-out{opacity:.62;}
.yalc-schedule .yss-soldout{
  display:inline-block;background:#e9ecef;color:var(--yss-muted);
  font-size:13px;font-weight:700;padding:9px 18px;border-radius:8px;
  white-space:nowrap;
}

/* ----- empty state ----- */
.yalc-schedule .yss-empty{text-align:center;padding:54px 20px;color:var(--yss-muted);}
.yalc-schedule .yss-empty .yss-big{font-size:32px;margin-bottom:8px;}

/* ----- cart bar ----- */
.yalc-schedule .yss-cart{
  position:fixed;left:0;right:0;bottom:0;z-index:9990;
  background:var(--yss-card);border-top:1px solid var(--yss-line);
  box-shadow:0 -2px 12px rgba(16,24,40,.09);
}
.yalc-schedule .yss-cart-inner{max-width:1120px;margin:0 auto;padding:0 20px;}
.yalc-schedule .yss-cart-row{display:flex;align-items:center;gap:16px;padding:12px 0;}
.yalc-schedule .yss-cart-sum{font-size:14px;font-weight:600;color:var(--yss-muted);}
.yalc-schedule .yss-cart-sum b{color:var(--yss-ink);font-size:15px;}
.yalc-schedule .yss-cart-total{margin-left:auto;font-size:14px;color:var(--yss-muted);font-weight:600;}
.yalc-schedule .yss-cart-total b{font-size:22px;color:var(--yss-ink);font-weight:800;margin-left:6px;}
.yalc-schedule .yss-cart-btns{display:flex;gap:8px;}
.yalc-schedule .yss-cart-btns button{
  font-family:inherit;font-weight:700;font-size:13px;border-radius:8px;
  cursor:pointer;padding:10px 16px;border:1px solid var(--yss-line);
}
.yalc-schedule .yss-toggle{background:#fff;color:var(--yss-brand);}
.yalc-schedule .yss-checkout{background:var(--yss-brand);color:#fff;border-color:var(--yss-brand);}
.yalc-schedule .yss-checkout:hover{background:var(--yss-brand-dk);}
.yalc-schedule .yss-checkout:disabled{background:#cbd2da;border-color:#cbd2da;cursor:not-allowed;}
.yalc-schedule .yss-cart-list{
  display:none;border-top:1px dashed var(--yss-line);
  max-height:230px;overflow-y:auto;padding:6px 0;
}
.yalc-schedule .yss-cart-list.yss-open{display:block;}
.yalc-schedule .yss-ci{
  display:flex;align-items:center;gap:10px;padding:8px 0;
  border-bottom:1px solid var(--yss-line);font-size:13px;
}
.yalc-schedule .yss-ci:last-child{border-bottom:0;}
.yalc-schedule .yss-ci .yss-nm{flex:1;min-width:0;}
.yalc-schedule .yss-ci .yss-nm b{font-weight:700;}
.yalc-schedule .yss-ci .yss-nm span{color:var(--yss-muted);}
.yalc-schedule .yss-ci-kid{color:var(--yss-brand-dk);font-weight:700;margin-left:6px;white-space:nowrap;}
.yalc-schedule .yss-ci .yss-pr{font-weight:700;}
.yalc-schedule .yss-ci .yss-rm{
  border:0;background:#fbe9e7;color:#c92a2a;width:24px;height:24px;
  border-radius:6px;cursor:pointer;font-weight:800;font-size:14px;line-height:1;
}
.yalc-schedule .yss-cart-empty{color:var(--yss-muted);font-size:13px;padding:14px 0;text-align:center;}

/* spacer so the fixed cart bar never hides the last slot */
.yalc-schedule .yss-spacer{height:84px;}

/* feedback toast */
.yalc-schedule .yss-toast{
  position:fixed;left:50%;bottom:92px;transform:translateX(-50%);
  background:#1f2933;color:#fff;font-size:13px;font-weight:600;
  padding:9px 16px;border-radius:8px;z-index:9991;opacity:0;
  transition:opacity .2s;pointer-events:none;max-width:90vw;
}
.yalc-schedule .yss-toast.yss-show{opacity:1;}

/* ----- login modal ----- */
.yalc-schedule .yss-modal{
  display:none;position:fixed;inset:0;z-index:9995;
  align-items:center;justify-content:center;padding:20px;
}
.yalc-schedule .yss-modal.yss-show{display:flex;}
.yalc-schedule .yss-modal-bg{position:absolute;inset:0;background:rgba(16,24,40,.55);}
.yalc-schedule .yss-modal-card{
  position:relative;background:#fff;border-radius:14px;
  box-shadow:0 12px 40px rgba(16,24,40,.28);
  width:100%;max-width:440px;padding:20px;
}
.yalc-schedule .yss-modal-x{
  position:absolute;top:10px;right:12px;border:0;background:transparent;
  font-size:24px;line-height:1;color:var(--yss-muted);cursor:pointer;
  width:32px;height:32px;border-radius:8px;
}
.yalc-schedule .yss-modal-x:hover{background:var(--yss-bg);color:var(--yss-ink);}
.yalc-schedule .yss-modal-box{
  border:2px dashed var(--yss-brand);border-radius:12px;
  padding:26px 22px;text-align:center;
}
.yalc-schedule .yss-modal-icon{font-size:30px;margin-bottom:6px;line-height:1;}
.yalc-schedule .yss-modal-h{
  font-size:18px;font-weight:800;color:var(--yss-ink);
  margin:0 0 8px;padding:0;border:0;
}
.yalc-schedule .yss-modal-p{font-size:14px;color:var(--yss-muted);margin:0 0 16px;}
.yalc-schedule .yss-modal-go{
  display:inline-block;background:var(--yss-brand);color:#fff;
  font-weight:700;font-size:14px;text-decoration:none;
  padding:11px 26px;border-radius:8px;
}
.yalc-schedule .yss-modal-go:hover{background:var(--yss-brand-dk);color:#fff;}

@media(max-width:680px){
  .yalc-schedule .yss-slot{grid-template-columns:5px 1fr;gap:10px 12px;}
  .yalc-schedule .yss-buy{grid-column:2;flex-direction:row;justify-content:space-between;align-items:center;width:100%;}
  .yalc-schedule .yss-fld input{width:96px;}
  .yalc-schedule .yss-clear{margin-left:0;}
  .yalc-schedule .yss-cart-row{flex-wrap:wrap;gap:10px;}
  .yalc-schedule .yss-cart-total{margin-left:0;}
}
