/* RemiMat – sklep, konto, płatności (uzupełnienie site.css) */
:root {
  --primary: var(--accent-ink);
  --primary-soft: var(--accent-soft);
  --danger-soft: #FDECEA;
  --warn: #B4730B;
  --warn-soft: #FDF3DF;
}
.shop { min-height: 60vh; padding-bottom: 40px; }
.demo-note { background: var(--bg-2); color: var(--muted); font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }


.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip-paid { background: var(--success-soft); color: var(--success); }
.chip-unpaid { background: var(--warn-soft); color: var(--warn); }
.chip-overdue { background: var(--danger); color: #fff; }
.chip-neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.chip-primary { background: var(--accent-soft); color: var(--accent-ink); }

.avatar { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; object-fit: cover; flex-shrink: 0; }
.cover { --t: color-mix(in srgb, var(--c) 22%, #7C86D9); border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--t) 70%, #fff), color-mix(in srgb, var(--t) 80%, #0E1A3A)); }
.cover .ic { width: 42%; height: 42%; }
/* okładka tymczasowa (produkt bez zdjęcia) */
.cover-temp { flex-direction: column; gap: 2px; align-content: center; grid-auto-rows: min-content; }
.cover-temp .ic { width: 34px; height: 34px; margin-bottom: 4px; opacity: .9; }
.cover-temp b { font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cover-temp span { font-size: 12px; font-weight: 600; opacity: .85; }
.cover-img { overflow: hidden; background: var(--accent-soft); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }

/* hero sklepu */
.shop-hero { margin: 40px 0 0; border-radius: 28px; background: radial-gradient(600px 360px at 0% 0%, rgba(122, 90, 240, .08), transparent 60%), #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; }
.shop-hero__txt { padding: 56px; align-self: center; }
.shop-hero h1 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.shop-hero h1 .accent { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-hero p { font-size: 17px; margin-top: 16px; max-width: 480px; }
.shop-hero__img { position: relative; min-height: 360px; background: var(--bg-2); }
.shop-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.shop-filter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.shop-filter button { min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.shop-filter button:hover { border-color: var(--line-strong); }
.shop-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 860px) { .shop-hero { grid-template-columns: 1fr; margin-top: 24px; } .shop-hero__txt { padding: 28px; } .shop-hero__img { min-height: 240px; order: -1; } .shop-filter { grid-template-columns: 1fr 1fr; } }
.pcard-when { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.pcard-when .ic { width: 15px; height: 15px; }
.pcard-author { margin-top: -6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.pcard-access { font-size: 12px; color: var(--muted); margin-top: -6px; }
.locker-search { display: flex; gap: 8px; }
.locker-search input, .locker-filter { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; font-size: 15px; }
.locker-search input:focus, .locker-filter:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#lockerResults { margin-top: 10px; }
.locker-filter { margin-bottom: 8px; }
.locker-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.locker-item { display: flex; gap: 10px; align-items: baseline; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font-size: 14px; color: var(--text); cursor: pointer; }
.locker-item:hover { border-color: var(--accent); background: var(--accent-softer); }
.locker-item b { flex-shrink: 0; color: var(--ink); }
.locker-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--accent-2); border-radius: 12px; background: var(--accent-softer); }
.locker-picked .grow { flex: 1; min-width: 0; }
.locker-picked .t { font-weight: 700; color: var(--ink); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 56px 0 20px; text-align: left; }
.sec-head h2 { font-size: 26px; }
.sec-head p { color: var(--muted); margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.pcard .cover { width: 100%; height: 150px; border-radius: 16px; }
.pcard h3 { font-size: 16px; line-height: 1.35; }
.pcard p { font-size: 14px; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--ink); display: inline-flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.price s { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 16px; }
.page-title { font-size: 32px; margin: 40px 0 22px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.line:last-child { border-bottom: 0; }
.line .grow { flex: 1; min-width: 160px; }
.line .t { font-weight: 600; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.qty button { border: 0; background: none; width: 32px; height: 32px; cursor: pointer; display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.icon-btn { border: 0; background: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--bg); color: var(--danger); }

.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 800; color: var(--ink); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; font-size: 15px; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text); cursor: pointer; }
.terms-check input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-ink); }
.terms-check a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.form-error { color: var(--danger); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.form-error:empty { display: none; }

.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; margin-bottom: 10px; }
.choice input { accent-color: var(--accent-ink); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-softer); }
.choice .grow { flex: 1; }
.choice .t { font-weight: 700; color: var(--ink); }
.choice-extra { margin: -2px 0 14px 46px; }
@media (max-width: 520px) { .choice-extra { margin-left: 0; } }

.blik-input { letter-spacing: .5em; font-size: 22px !important; font-weight: 800; text-align: center; }
.banks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.banks label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; font-weight: 700; font-size: 13px; cursor: pointer; }
.banks input { display: none; }
.banks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

.gateway { border: 2px dashed var(--accent-2); background: repeating-linear-gradient(-45deg, #FAFBFF, #FAFBFF 12px, #F1F3FD 12px, #F1F3FD 24px); border-radius: 18px; padding: 22px; margin-top: 18px; }
.gw-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 8px; }
.gw-label .ic { width: 15px; height: 15px; }
.gateway p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.gateway .btn + .btn { margin-top: 10px; }

.result { text-align: center; padding: 48px 24px; max-width: 620px; margin: 48px auto; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.result-icon .ic { width: 40px; height: 40px; }
.result-icon.ok { background: var(--success-soft); color: var(--success); }
.result-icon.err { background: var(--danger-soft); color: var(--danger); }
.result h1 { font-size: 28px; }
.result p { color: var(--muted); margin-top: 10px; }
.unlocked { text-align: left; margin: 22px 0; }
.unlocked .line > .ic { color: var(--success); }
.result-note { margin: 22px 0 4px; }
.result-help { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.result-help a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.auth { max-width: 440px; margin: 48px auto; }
.auth h1 { font-size: 26px; margin-bottom: 6px; }

.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.slots { white-space: pre-line; font-size: 14px; background: var(--success-soft); color: #1F5E3B; border-radius: 12px; padding: 10px 12px; margin-top: 12px; }

.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .live-grid { grid-template-columns: 1fr; } }
.live { border-radius: 22px; padding: 28px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0E1A3A)); }
.live h2 { font-size: 24px; margin: 10px 0; color: #fff; }
.live p { opacity: .92; }
.live-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.live-meta span { background: rgba(255, 255, 255, .18); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.live-meta .ic { width: 16px; height: 16px; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { padding: 12px; text-align: center; border-bottom: 1px solid var(--line); }
.schedule th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.schedule td.on { font-weight: 700; color: var(--accent-ink); }
.card:has(.schedule) { overflow-x: auto; }

.alert { display: flex; gap: 12px; align-items: center; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.alert-info { background: var(--accent-soft); color: var(--accent-deep); }
.alert-danger { background: var(--danger-soft); color: #7F1D1D; }
.alert .grow { flex: 1; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 15px; border-radius: 10px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.row-overdue { background: var(--danger-soft); border-radius: 12px; padding-left: 10px !important; padding-right: 10px !important; box-shadow: inset 4px 0 0 var(--danger); }
