/* Toko Buku Mandiri: gaya netral yang mewarisi font dan warna tema. */
.bsm-box { margin: 2em 0; padding: 1.25em; border: 1px solid rgba(128,128,128,.35); border-radius: 6px; }
.bsm-box h3 { margin-top: 0; }
.bsm-form [hidden] { display: none !important; }
.bsm-form label { display: block; font-weight: 600; }
.bsm-form input[type="text"],
.bsm-form input[type="email"],
.bsm-form input[type="tel"],
.bsm-form input[type="date"],
.bsm-form input[type="number"],
.bsm-form textarea { display: block; width: 100%; max-width: 32em; margin-top: .25em; box-sizing: border-box; font: inherit; }
.bsm-form input[type="number"] { max-width: 8em; }
.bsm-form small { display: block; font-weight: 400; opacity: .75; margin-top: .25em; }
.bsm-types { border: 0; padding: 0; margin: 0 0 1em; }
.bsm-types legend { font-weight: 600; margin-bottom: .5em; padding: 0; }
.bsm-type { display: flex !important; align-items: center; gap: .6em; padding: .6em .75em; margin-bottom: .4em; border: 1px solid rgba(128,128,128,.35); border-radius: 4px; font-weight: 400 !important; cursor: pointer; }
.bsm-type span { flex: 1; }
.bsm-type:has(input:checked) { border-color: currentColor; }
.bsm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bsm-total { font-size: 1.15em; margin-bottom: .25em; }
.bsm-note { opacity: .8; font-size: .92em; margin: .25em 0; }
.bsm-msg { margin: 1em 0; padding: .75em 1em; border-left: 4px solid #b32d2e; background: rgba(179,45,46,.08); }
.bsm-btn { display: inline-block; padding: .7em 1.4em; font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 4px; background: #1d2327; color: #fff; text-decoration: none; }
.bsm-btn:hover, .bsm-btn:focus { opacity: .88; color: #fff; }
.bsm-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bsm-btn[disabled] { opacity: .5; cursor: wait; }

/* Daftar buku */
.bsm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5em; margin: 1.5em 0; }
.bsm-card-img img { width: 100%; height: auto; display: block; }
.bsm-card-title { font-size: 1.05em; margin: .6em 0 .2em; }
.bsm-card-price { margin: 0; font-weight: 600; }
.bsm-card-formats { margin: 0; opacity: .75; font-size: .9em; }

/* Halaman status */
.bsm-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.bsm-table th, .bsm-table td { text-align: left; padding: .5em .6em; border-bottom: 1px solid rgba(128,128,128,.25); vertical-align: top; }
.bsm-table th { width: 38%; font-weight: 600; }
.bsm-steps li { margin-bottom: .35em; }
.bsm-qris img { max-width: 320px; width: 100%; height: auto; display: block; margin: 1em 0; }
.bsm-badge { display: inline-block; padding: .2em .7em; border-radius: 3px; font-size: .9em; font-weight: 600; background: #e5e5e5; color: #1d2327; }
.bsm-s-pending { background: #fcf0c0; }
.bsm-s-ready, .bsm-s-shipped { background: #cfe8ff; }
.bsm-s-done { background: #cdecd3; }
.bsm-s-expired, .bsm-s-cancelled { background: #f1d0d0; }
