/* TAC Learning store: one-off courses and resources */
.store-top{gap:16px}
.store-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.basket-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-left:4px;border-radius:99px;background:var(--pink,#ed4f97);color:#fff;font-size:12px;font-weight:800;box-sizing:border-box}
.store-main{max-width:1180px;margin:0 auto;padding:40px 28px 80px;box-sizing:border-box}
.store-narrow{max-width:760px}
.store-main h1{font-size:clamp(28px,4vw,40px);line-height:1.1;letter-spacing:-.02em;margin:0 0 10px}
.store-intro{max-width:720px;margin-bottom:12px}
.store-intro p{color:var(--muted,#71677b);font-size:18px;margin:0}
.store-section{font-size:20px;margin:36px 0 14px}
.store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.store-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line,#ded4e8);border-radius:18px;overflow:hidden}
.store-card-link{display:block;color:inherit;text-decoration:none;flex:1}
.store-card-link:hover h3,.store-card-link:focus-visible h3{text-decoration:underline}
.store-cover{aspect-ratio:16/9;background:var(--lav,#f6f1fb);display:grid;place-items:center;overflow:hidden}
.store-cover img{width:100%;height:100%;object-fit:cover}
.store-cover span{font-weight:800;letter-spacing:.02em;color:var(--purple,#45206b);opacity:.55;font-size:15px}
.store-cover-course{background:linear-gradient(135deg,#efe4fa,#fde8f2)}
.store-cover-resource{background:linear-gradient(135deg,#e3f4ee,#eef0fb)}
.store-card-body{padding:16px 18px 6px}
.store-kind{margin:0 0 4px;font-size:13px;font-weight:800;color:var(--purple,#45206b)}
.store-card h3{margin:0 0 6px;font-size:18px;line-height:1.25}
.store-summary{margin:0;color:var(--muted,#71677b);font-size:15px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.store-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px 16px}
.store-price{font-size:19px}
.store-view{font-weight:800;color:var(--purple,#45206b)}
.store-owned{display:inline-block;font-size:13px;font-weight:800;padding:6px 11px;border-radius:99px;background:#e3f4ee;color:var(--green,#157a62)}
.store-empty{margin-top:28px;padding:36px;border:2px dashed var(--line,#ded4e8);border-radius:18px;text-align:center}
.store-empty h2{margin:0 0 6px;font-size:20px}

.store-detail{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}
.store-back{display:inline-block;margin-bottom:18px;font-weight:700;color:var(--purple,#45206b);text-decoration:none}
.store-lead{font-size:19px;color:#4b3f5a;line-height:1.5;margin:0 0 20px;max-width:62ch}
.store-detail-image{width:100%;max-height:420px;object-fit:cover;border-radius:18px;margin:6px 0 20px}
.store-description p{line-height:1.7;max-width:68ch;margin:0 0 14px}
.store-detail h2{font-size:19px;margin:28px 0 10px}
.store-modules{margin:0;padding-left:22px;line-height:1.9}
.store-file{color:var(--muted,#71677b);font-weight:700}
.store-buy{position:sticky;top:96px;padding:22px;background:#fff;border:1px solid var(--line,#ded4e8);border-radius:18px;box-shadow:0 14px 38px rgba(50,29,72,.08)}
.store-buy-price{font-size:32px;font-weight:850;margin:0}
.store-buy-note{margin:2px 0 16px;color:var(--muted,#71677b)}
.store-buy .primary,.store-buy button.primary{display:block;width:100%;text-align:center;box-sizing:border-box;font:inherit;font-weight:800;padding:13px 16px;cursor:pointer}
.store-buy form{margin:0}
.store-promises{margin:16px 0 0;padding:14px 0 0 18px;border-top:1px solid var(--line,#ded4e8);color:#4b3f5a;font-size:14px;line-height:1.8}

.basket-list{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--line,#ded4e8)}
.basket-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line,#ded4e8)}
.basket-list a{font-weight:800;color:var(--ink,#25153d)}
.basket-list small,.library-row small{display:block;color:var(--muted,#71677b);margin-top:2px}
.basket-list form{margin:0}
.link-button{border:0;background:none;padding:4px;color:#8d1d3a;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}
.basket-total{display:flex;justify-content:space-between;font-size:20px;margin:16px 0 24px}
.checkout-form{display:grid;gap:8px;padding:22px;background:#fff;border:1px solid var(--line,#ded4e8);border-radius:18px}
.checkout-form h2{margin:0;font-size:19px}
.checkout-form label{font-weight:750;margin-top:6px}
.checkout-form input[type=email],.checkout-form input:not([type]){border:1px solid #cabdd5;border-radius:12px;padding:12px;font:inherit}
.check-line{display:flex;gap:10px;align-items:flex-start;font-weight:600!important;margin-top:10px!important}
.check-line input{margin-top:4px}
.checkout-help,.checkout-note,.checkout-account{color:#4b3f5a;line-height:1.55;margin:0}
.checkout-note{font-size:14px;color:var(--muted,#71677b);text-align:center}
.checkout-button{margin-top:12px;padding:14px;font:inherit;font-weight:800;cursor:pointer}
.store-problem{padding:12px 16px;border-radius:12px;background:#fdecef;color:#9b1c44;font-weight:700}
.store-thanks p{font-size:17px;line-height:1.6}
.library-list{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}
.library-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:#fff;border:1px solid var(--line,#ded4e8);border-radius:16px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Admin */
.store-admin-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line,#ded4e8);border-radius:14px;overflow:hidden}
.store-admin-table th,.store-admin-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line,#ded4e8);vertical-align:top}
.store-admin-table th{font-size:13px;color:var(--muted,#71677b)}
.status-tag{display:inline-block;font-size:12px;font-weight:800;padding:3px 9px;border-radius:99px;background:#eee7f5;color:var(--purple,#45206b)}
.status-tag.published,.status-tag.paid{background:#e3f4ee;color:var(--green,#157a62)}
.status-tag.retired,.status-tag.cancelled{background:#eee;color:#555}
.store-admin-form{display:grid;gap:10px;max-width:640px}
.store-admin-form label{font-weight:750}
.store-admin-form input,.store-admin-form select,.store-admin-form textarea{border:1px solid #cabdd5;border-radius:12px;padding:11px;font:inherit;box-sizing:border-box;width:100%}
.store-admin-form .row-fields{display:grid;grid-template-columns:1fr 140px;gap:12px}
.store-admin-form .hint{color:var(--muted,#71677b);font-size:14px;margin:-4px 0 4px}

@media(max-width:860px){
  .store-detail{grid-template-columns:1fr}
  .store-buy{position:static}
}
@media(max-width:560px){
  .store-main{padding:26px 16px 60px}
  .store-actions .top-action{padding:7px 9px;font-size:12px}
  .basket-list li{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}
  .basket-list form{grid-column:1/-1}
  .library-row{flex-direction:column;align-items:flex-start}
  .store-admin-form .row-fields{grid-template-columns:1fr}
}
.store-admin-cover{max-width:280px;border-radius:12px}
.store-shop{font-weight:700;color:#4b3f5a}
.store-book-note{list-style:none;padding-left:0}
/* Free resources admin */
.lead-link { width: 100%; padding: 10px 12px; border: 1px solid #d9cfe5; border-radius: 10px; font: inherit; background: #faf7fd; }
.lead-summary td:first-child { width: 55%; }
.lead-bar { display: inline-block; width: 120px; height: 8px; border-radius: 999px; background: #efe8f8; vertical-align: middle; overflow: hidden; }
.lead-bar-fill { display: block; height: 100%; background: #45206b; width: 0; }
.lead-pct-10 { width: 10%; } .lead-pct-20 { width: 20%; } .lead-pct-30 { width: 30%; } .lead-pct-40 { width: 40%; } .lead-pct-50 { width: 50%; }
.lead-pct-60 { width: 60%; } .lead-pct-70 { width: 70%; } .lead-pct-80 { width: 80%; } .lead-pct-90 { width: 90%; } .lead-pct-100 { width: 100%; }
.survey-question { margin: 0 0 12px; }
.survey-question.blank { border-style: dashed; opacity: .9; }
.survey-question-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 6px; }
.survey-editor label.inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.survey-editor label.inline input[type=number] { width: 70px; }
.survey-list td small { color: #71677b; }
.survey-add { margin: 4px 0 18px; } .survey-add-button { font-weight: 800; }

/* Oak admin: try one lesson */
.oak-try{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.75rem 0}
.oak-try label{flex-basis:100%;font-weight:600}
.oak-try input[type=text]{flex:1 1 22rem;min-width:0;padding:.55rem .7rem;border:1px solid #c9c4e8;border-radius:8px;font:inherit}
.store-admin-table td form{display:inline-block;margin-top:.35rem}
.oak-try select{padding:.5rem .6rem;border:1px solid #c9c4e8;border-radius:8px;font:inherit;background:#fff}
.oak-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:1.25rem;margin:1rem 0;align-items:start}
.oak-units,.oak-lessons{border:1px solid #e3e0f5;border-radius:10px;padding:.85rem;max-height:30rem;overflow:auto;background:#fff}
.oak-units a{display:block;padding:.35rem .5rem;border-radius:6px;color:inherit;text-decoration:none}
.oak-units a:hover,.oak-units a:focus-visible{background:#f4f2ff}
.oak-units a.is-current{background:#efedff;font-weight:600}
.oak-year{display:block;margin:.75rem 0 .25rem;color:#6b6790;font-weight:600}
.oak-lesson-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.45rem 0;border-bottom:1px solid #f0eef8}
.oak-lesson-row form{margin:0}
@media (max-width:760px){.oak-picker{grid-template-columns:1fr}}
/* Phones: the shop links sit in one row under the logo and scroll sideways, instead of stacking three rows high. */
@media (max-width:640px){
  .store-top{flex-wrap:wrap;row-gap:10px}
  .store-actions{width:100%;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none;padding-bottom:2px}
  .store-actions::-webkit-scrollbar{display:none}
  .store-actions .top-action{flex:0 0 auto;white-space:nowrap}
}
/* Free resource admin: survey edit button and cover picture fields. */
.lead-survey-edit{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0 4px}
.lead-survey-edit small{flex:1;min-width:220px}
.lead-picture{border:1px solid #e3d9ec;border-radius:12px;padding:12px 16px 16px;margin:14px 0;display:grid;gap:6px}
.lead-picture legend{font-weight:700;padding:0 6px}
.lead-picture legend small{font-weight:500;color:#8a7d93}
.lead-picture-preview{max-width:150px;height:auto;border-radius:10px;border:1px solid #e3d9ec}
.lead-picture .secondary{justify-self:start}
.top-action.top-upgrade{background:linear-gradient(135deg,#6d3fd6,#c13f8c);color:#fff;border-color:transparent;font-weight:700}
