/* 화면 아래 떠 있는 맞춤 안내 바 (2026-11-21) + 구매 바 위 안내 한 줄 (2026-11-23). 틀은 oneteach_dock.py, 동작은 dock-20261123.js.
   선으로 가르지 않고 그림자로 띄운다. 색은 흰 면 + 브랜드 오렌지(#ff5100) 한 가지. */
.ot-dock{position:fixed;z-index:56;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));box-sizing:border-box;
  width:min(760px,calc(100% - 48px));display:flex;align-items:center;gap:6px;padding:11px 14px 11px 24px;border-radius:24px;
  background:#fff;color:#16233a;font-family:inherit;word-break:keep-all;line-break:strict;
  box-shadow:0 0 0 1px #16233a0d,0 2px 4px #16233a12,0 12px 28px #16233a24,0 32px 64px #16233a1f;
  opacity:0;transform:translate(-50%,calc(100% + 48px));
  transition:transform .55s cubic-bezier(.2,.9,.25,1.12),opacity .28s ease}
.ot-dock[hidden]{display:none}
.ot-dock.otd-on{opacity:1;transform:translate(-50%,0)}
.ot-dock *{box-sizing:border-box}

.otd-link{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;border-radius:16px;-webkit-tap-highlight-color:transparent}
.otd-link:focus-visible,.otd-close:focus-visible,.otd-dots button:focus-visible{outline:3px solid #ff510066;outline-offset:3px}
.otd-copy{flex:1 1 auto;min-width:0;display:flex;align-items:center;transition:opacity .18s ease,transform .18s ease}
.otd-badge{flex:none;min-width:46px;padding:5px 10px;border-radius:999px;background:#ff5100;color:#fff;font-size:13px;font-weight:800;line-height:1.2;text-align:center;letter-spacing:-.01em;white-space:nowrap;animation:otd-pulse 2.4s ease-in-out infinite}
.otd-badge[hidden]{display:none}
.otd-text{min-width:0;display:grid;gap:3px}
.otd-title{font-size:17px;font-weight:800;line-height:1.3;letter-spacing:-.02em;color:#16233a;text-wrap:balance}
.otd-sub{font-size:13.5px;font-weight:500;line-height:1.35;color:#5c6a80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.otd-sub:empty{display:none}
.otd-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;min-width:132px;padding:0 20px;border-radius:16px;
  background:#ff5100;color:#fff;font-size:16px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;box-shadow:0 6px 16px #ff510040;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
.otd-btn svg{width:12px;height:12px;flex:none;transition:transform .18s ease}
.otd-label{transition:opacity .18s ease}
@media(hover:hover){.otd-link:hover .otd-btn{background:#f04a00;transform:translateY(-1px);box-shadow:0 9px 20px #ff51004d}.otd-link:hover .otd-btn svg{transform:translateX(3px)}}
.otd-link:active .otd-btn{transform:translateY(1px);box-shadow:0 3px 8px #ff510040}

/* 카드가 바뀔 때: 글이 위로 빠지고 아래에서 올라온다 */
.otd-out .otd-copy{opacity:0;transform:translateY(-9px)}
.otd-out .otd-label{opacity:0}
.otd-in .otd-copy{animation:otd-rise .4s cubic-bezier(.2,.8,.2,1) both}
.otd-in .otd-btn svg{animation:otd-nudge .5s ease .12s both}
@keyframes otd-rise{from{opacity:0;transform:translateY(11px)}to{opacity:1;transform:none}}
@keyframes otd-nudge{0%{transform:none}45%{transform:translateX(4px)}100%{transform:none}}
@keyframes otd-pulse{0%,100%{box-shadow:0 0 0 0 #ff510055}55%{box-shadow:0 0 0 7px #ff510000}}

.otd-dots{flex:none;display:flex;align-items:center;gap:2px;margin-left:8px}
.otd-dots button{appearance:none;border:0;background:none;padding:9px 4px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.otd-dots button::before{content:"";display:block;width:6px;height:6px;border-radius:50%;background:#c9d1dd;transition:width .25s ease,background-color .25s ease}
.otd-dots button[aria-current="true"]::before{width:16px;border-radius:3px;background:#ff5100}
.otd-close{flex:none;appearance:none;border:0;display:grid;place-items:center;width:34px;height:34px;margin-left:2px;border-radius:50%;background:none;color:#8a95a8;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .18s ease,color .18s ease}
.otd-close svg{width:13px;height:13px}
@media(hover:hover){.otd-close:hover{background:#eef2f7;color:#16233a}}

/* 문의 버튼은 바 위로 올린다(홈·후기의 기존 규칙과 같은 자리) */
body.ot-dock-on .csw-launch{bottom:calc(var(--ot-dock-h,76px) + 36px + env(safe-area-inset-bottom))!important}
body.ot-dock-on .csw-teaser{bottom:calc(var(--ot-dock-h,76px) + 108px + env(safe-area-inset-bottom))!important}

@media(max-width:900px){.otd-more{display:none}}
@media(max-width:640px){
  .ot-dock{width:calc(100% - 20px);bottom:calc(12px + env(safe-area-inset-bottom));padding:9px 9px 9px 16px;gap:0;border-radius:20px}
  .otd-link{gap:10px}
  /* 남은 날 표시는 왼쪽 위 모서리에 얹어 제목 자리를 넓힌다 */
  .otd-badge{position:absolute;top:-11px;left:14px;min-width:0;padding:4px 10px;font-size:12px;box-shadow:0 0 0 2px #fff,0 3px 8px #16233a26;animation:none}
  .otd-title{font-size:15px;line-height:1.28}
  .otd-sub{font-size:12px}
  .otd-btn{min-height:46px;min-width:0;padding:0 14px;gap:6px;font-size:14.5px;border-radius:14px}
  .otd-dots{display:none}
  /* 닫기는 모서리에 얹어 글 자리를 넓힌다 */
  .otd-close{position:absolute;top:-11px;right:-5px;width:26px;height:26px;margin:0;background:#fff;color:#6b778c;box-shadow:0 0 0 1px #16233a0f,0 3px 8px #16233a26}
  .otd-close::before{content:"";position:absolute;inset:-9px}
  .otd-close svg{width:10px;height:10px}
}
@media(max-width:359px){
  .ot-dock{padding-left:13px}
  .otd-title{font-size:14px}
  .otd-btn{padding:0 11px;font-size:13.5px}
  .otd-btn svg{display:none}
}
/* 홈 가격표를 보는 동안(기존 연출)에는 비킨다 */
body.hp-focus .ot-dock{opacity:0;visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){
  .ot-dock{transition:none;transform:translate(-50%,0)}
  .otd-copy,.otd-label,.otd-btn,.otd-btn svg,.otd-dots button::before{transition:none}
  .otd-badge,.otd-in .otd-copy,.otd-in .otd-btn svg{animation:none}
  .otd-dots{display:flex}
}
@media print{.ot-dock{display:none!important}}

/* ───────── 구매 바(.cro-bar) 위에 얹는 안내 한 줄 (2026-11-23) ─────────
   바의 크기·여백은 그대로 두고, 바 위 8px에 작은 알약을 띄운다. */
.cro-bar .cro-bar-inner{position:relative}
.otd-line{position:absolute;left:0;bottom:calc(100% + 18px);box-sizing:border-box;max-width:100%;height:38px;display:flex;align-items:center;padding:0 4px 0 6px;border-radius:999px;
  background:#fff;color:#16233a;box-shadow:0 0 0 1px #16233a0d,0 2px 4px #16233a12,0 8px 22px #16233a26;font-size:13.5px;font-weight:700;line-height:1;letter-spacing:-.01em;white-space:nowrap;word-break:keep-all;
  animation:otd-line-in .5s cubic-bezier(.2,.9,.25,1.12) .3s both}
.otd-line *{box-sizing:border-box}
.otd-line-body{min-width:0;height:100%;display:flex;align-items:center;gap:8px;padding:0 6px 0 2px;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
.otd-line-body.is-note{padding-left:10px;cursor:default}
.otd-line-body.is-note .otd-line-go{display:none}
.otd-line-badge{flex:none;padding:5px 9px;border-radius:999px;background:#ff5100;color:#fff;font-size:12px;font-weight:800}
.otd-line-badge[hidden]{display:none}
.otd-line-badge[hidden]+.otd-line-text{padding-left:8px}
.otd-line-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
.otd-line-more{font-weight:500;color:#5c6a80}
.otd-line-go{flex:none;width:11px;height:11px;color:#ff5100;transition:transform .18s ease}
@media(hover:hover){.otd-line-body[href]:hover .otd-line-go{transform:translateX(3px)}}
.otd-line-close{flex:none;appearance:none;border:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:none;color:#8a95a8;cursor:pointer;-webkit-tap-highlight-color:transparent}
.otd-line-close svg{width:10px;height:10px}
@media(hover:hover){.otd-line-close:hover{background:#eef2f7;color:#16233a}}
.otd-line-body:focus-visible,.otd-line-close:focus-visible{outline:3px solid #ff510066;outline-offset:2px;border-radius:999px}
.otd-line.is-swap .otd-line-body{animation:otd-rise .4s cubic-bezier(.2,.8,.2,1) both}
@keyframes otd-line-in{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
/* 오류 안내(토스트)가 뜬 동안에는 비킨다 */
body:has(.toast.on) .otd-line{visibility:hidden}
@media(max-width:640px){
  .otd-line{font-size:13px}
  .otd-line-more{display:none}
  /* 좁은 화면에서는 한 줄이 문의 버튼 자리까지 닿는다. 문의 버튼을 그 위로 올린다. */
  body.cro-bar-on.otd-line-on .csw-launch{bottom:calc(132px + env(safe-area-inset-bottom))!important}
  body.cro-bar-on.otd-line-on .csw-teaser{bottom:calc(204px + env(safe-area-inset-bottom))!important}
}
/* 낮은 화면(가로로 든 휴대폰)에서는 띄우지 않는다 */
@media(max-height:480px){.otd-line{display:none}}
@media(prefers-reduced-motion:reduce){.otd-line,.otd-line.is-swap .otd-line-body{animation:none}.otd-line-go{transition:none}}
@media print{.otd-line{display:none!important}}
