/* SinarIlmu Keranjang + Dashboard Pembelian (v1.0.0) */

/* Tombol keranjang pada kartu */
.sbh .sbh-btn.scr-add{flex:0 0 44px;width:44px;min-width:44px;padding:0;background:#fff;border-color:#c9cfcf;color:#232f3e}
.sbh .sbh-act .sbh-btn.sbh-ic.scr-add{flex:0 0 44px;width:44px;padding:0}
.sbh .sbh-act .sbh-btn.sbh-ic.scr-add::after,.sbh .sbh-row .sbh-btn.sbh-ic.scr-add::after{content:none}
.sbh .sbh-btn.scr-add.sbh-s{flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0}
.sbh .sbh-btn.scr-add:hover:not(:disabled){background:#f4f6f6;border-color:#a9b0b0}
.sbh .sbh-btn.scr-add.on{background:#e7f7ee;border-color:#2e9e62;color:#0b6b3a}
.scr-prem .scr-add,.scr-prem .scr-fab{display:none!important}
.scr-hl{outline:3px solid #e47911;outline-offset:3px;border-radius:12px;animation:scrhl 1.2s ease 3}
@keyframes scrhl{50%{outline-color:rgba(228,121,17,.25)}}

/* Tombol melayang */
.scr-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:9990;display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 18px 0 14px;border:0;border-radius:999px;background:#232f3e;color:#fff;font:700 .95rem/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-shadow:0 8px 22px rgba(15,25,35,.32);cursor:pointer;-webkit-appearance:none;appearance:none}
.scr-fab[hidden]{display:none}
.scr-fab:hover{background:#37475a}
.scr-fab:focus-visible{outline:3px solid #e47911;outline-offset:3px}
.scr-fab-n{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#ffd814;color:#3b2600;font-size:.8rem}
.scr-fab-t{white-space:nowrap}
@media(max-width:380px){.scr-fab-t{display:none}}

/* Lapisan */
.scr-ov{position:fixed;inset:0;z-index:99990;display:flex;align-items:flex-end;justify-content:center;background:rgba(15,25,35,.55);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1f2933}
.scr-box{position:relative;display:flex;flex-direction:column;width:100%;max-width:520px;max-height:92vh;max-height:92dvh;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.28);overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px)}
@media(min-width:640px){
  .scr-ov{align-items:center;padding:20px}
  .scr-box{border-radius:18px;max-height:88vh}
  .scd-dash .scr-box{max-width:640px}
}
.scr-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 10px;border-bottom:1px solid #eaeded;flex:none}
.scr-h h3{margin:0;font-size:1.15rem;line-height:1.25;font-weight:800}
.scr-sub{margin:2px 0 0;font-size:.85rem;color:#5b6670;line-height:1.4}
.scr-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-6px -8px 0 0;border:0;border-radius:50%;background:transparent;color:#374151;cursor:pointer}
.scr-x:hover{background:#f1f3f4}
.scr-b{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 16px}
.scr-f{flex:none;display:flex;flex-direction:column;gap:8px;padding:12px 16px 14px;border-top:1px solid #eaeded;background:#fafbfb}

/* Tombol */
.scr-btn,.scd-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid #c9cfcf;border-radius:999px;background:#fff;color:#232f3e;font:700 .92rem/1 inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;text-decoration:none}
.scr-btn:hover:not(:disabled),.scd-btn:hover:not(:disabled){background:#f4f6f6;border-color:#a9b0b0}
.scr-btn:disabled,.scd-btn:disabled{opacity:.55;cursor:not-allowed}
.scr-btn.scr-pri,.scd-btn.scd-pri{background:#ffd814;border-color:#d9a400;color:#3b2600}
.scr-btn.scr-pri:hover:not(:disabled),.scd-btn.scd-pri:hover:not(:disabled){background:#ffe04a;border-color:#c99700}
.scr-btn:focus-visible,.scd-btn:focus-visible,.scr-link:focus-visible,.scr-rm:focus-visible,.scr-x:focus-visible{outline:3px solid #e47911;outline-offset:2px}
.scr-link{align-self:center;min-height:44px;padding:0 8px;border:0;background:transparent;color:#0b5cad;font:600 .88rem/1 inherit;font-family:inherit;text-decoration:underline;cursor:pointer}
.scr-link:hover{color:#08427d}

/* Daftar keranjang */
.scr-list{list-style:none;margin:0;padding:0}
.scr-it{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #eef0f0}
.scr-list-s .scr-it{grid-template-columns:minmax(0,1fr) auto}
.scr-it-t{min-width:0;font-size:.92rem;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.scr-it-p{font-size:.92rem;white-space:nowrap}
.scr-rm{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#b91c1c;cursor:pointer}
.scr-rm:hover{background:#fdecec}
.scr-tot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.95rem}
.scr-tot b{font-size:1.15rem}
.scr-tot-c{flex-direction:column;gap:2px;margin:10px 0 4px;text-align:center}
.scr-tot-c small{font-size:.8rem;color:#5b6670}
.scr-tot-c b{font-size:1.6rem;letter-spacing:.01em}
.scr-fine{margin:10px 0 0;font-size:.8rem;line-height:1.5;color:#5b6670}
.scr-note{margin:8px 0;padding:10px 12px;border-radius:10px;background:#f1f5f9;font-size:.88rem;line-height:1.45}
.scr-note.ok{background:#e7f7ee;color:#0b6b3a}
.scr-note.err{background:#fdecec;color:#9b1c1c}
.scr-nudge{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:12px;padding:10px 12px;border:1px dashed #d9a400;border-radius:12px;background:#fffbea;font-size:.85rem;line-height:1.45}
.scr-nudge .scr-link{align-self:flex-start;padding:0;min-height:36px}
.scr-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 8px 12px;text-align:center;color:#374151}
.scr-empty svg{color:#9aa4ab;margin-bottom:6px}
.scr-empty p{margin:0}
.scr-empty+.scr-btn{display:flex;margin:6px auto 0}

/* Bayar */
.scr-payb{display:flex;flex-direction:column}
.scr-payb .scr-btn{margin-top:10px}
.scr-qr{display:flex;align-items:center;justify-content:center;min-height:230px;margin:6px auto 0;padding:10px;border:1px solid #e1e5e7;border-radius:14px;background:#fff}
.scr-qr canvas,.scr-qr img{display:block;max-width:100%;height:auto}
.scr-cd{margin:6px 0 4px;text-align:center;font-weight:700;font-size:.9rem;color:#b45309}

/* Dashboard */
.scd-body{display:flex;flex-direction:column;gap:2px}
.scd-acct{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid #e1e5e7;border-radius:14px;background:#f8fafb}
.scd-u{display:block;font-size:1rem}
.scd-bd{display:inline-block;margin-top:4px;padding:3px 10px;border-radius:999px;background:#eef1f3;color:#374151;font-size:.78rem;font-weight:700}
.scd-bd.prem{background:#fff1b8;color:#5b3d00}
.scd-acts{display:flex;gap:8px;flex-wrap:wrap}
.scd-q{display:block;width:100%;height:44px;margin:10px 0 2px;padding:0 12px;border:2px solid #e47911;border-radius:10px;font-size:16px;box-sizing:border-box}
.scd-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.scd-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e1e5e7;border-radius:14px;background:#fff}
.scd-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.scd-t{font-size:.92rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.scd-m{font-size:.78rem;color:#5b6670}
.scd-chip{align-self:flex-start;margin-top:2px;padding:3px 9px;border-radius:999px;font-size:.74rem;font-weight:700;line-height:1.3}
.scd-chip.ok{background:#e7f7ee;color:#0b6b3a}
.scd-chip.off{background:#f1f3f4;color:#5b6670}
.scd-act{flex:none;display:flex;flex-direction:column;gap:6px;align-items:stretch}
.scd-row .sst-st{margin-top:2px}
@media(max-width:479px){
  .scd-row{flex-direction:column;align-items:stretch}
  .scd-act{flex-direction:row}
  .scd-act .scd-btn{flex:1}
}

/* Pemberitahuan singkat */
.scr-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:99999;max-width:min(92vw,420px);padding:11px 16px;border-radius:12px;background:#232f3e;color:#fff;font:600 .88rem/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.3);opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.scr-toast.on{opacity:1;transform:translate(-50%,0)}

@media(prefers-reduced-motion:reduce){.scr-toast{transition:none}.scr-hl{animation:none}}

/* v1.1.0: nomor WhatsApp, kode pesanan, pulihkan pembelian */
.scr-field{display:flex;flex-direction:column;gap:4px;margin-top:12px}
.scr-field label{font-size:.85rem;font-weight:700}
.scr-field small{font-size:.76rem;line-height:1.45;color:#5b6670}
.scr-in{display:block;width:100%;height:44px;padding:0 12px;border:2px solid #d5dadd;border-radius:10px;background:#fff;color:#1f2933;font:inherit;font-size:16px;box-sizing:border-box}
.scr-in:focus{outline:0;border-color:#e47911;box-shadow:0 0 0 3px rgba(228,121,17,.25)}
.scr-code{display:flex;flex-direction:column;align-items:center;gap:6px;margin:10px 0;padding:14px 12px;border:2px dashed #d9a400;border-radius:14px;background:#fffbea;text-align:center}
.scr-code small{font-size:.78rem;color:#5b6670;line-height:1.45}
.scr-code b{font-size:1.9rem;letter-spacing:.14em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#3b2600;user-select:all}
.scr-code .scd-acts{justify-content:center}
a.scr-btn{text-decoration:none}
.scd-rs{margin-top:10px;border:1px solid #e1e5e7;border-radius:14px;background:#fff}
.scd-rs summary{min-height:44px;display:flex;align-items:center;padding:0 14px;font-weight:700;font-size:.9rem;cursor:pointer;list-style:none}
.scd-rs summary::-webkit-details-marker{display:none}
.scd-rs summary::after{content:"+";margin-left:auto;font-size:1.2rem;color:#5b6670}
.scd-rs[open] summary::after{content:"\2212"}
.scd-rsb{display:flex;flex-direction:column;gap:8px;padding:0 14px 14px}
.scd-rsb .scr-note{margin:0}
