/* Akun, checkout, pesanan, struk (dipakai pelanggan dan admin) */
.topbar-r a, .tb-link { color: inherit; opacity: .9; } .topbar-r a:hover, .tb-link:hover { opacity: 1; text-decoration: underline; }
.tb-link { background: none; border: 0; padding: 0; font-size: inherit; cursor: pointer; }
.topbar-r form { display: inline; }

.form { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: .9375rem; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 400; color: var(--text); font-size: 16px; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.fld.bad input, .fld.bad textarea, .fld.bad select { border-color: var(--red); }
.fld em { font-style: normal; font-weight: 600; color: var(--red); font-size: .8125rem; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; } .chk input { accent-color: var(--brand); width: 18px; height: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth { display: grid; place-items: start center; padding-block: clamp(28px, 6vw, 72px); }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); background: #fff; }
.auth-alt { text-align: center; } .auth-alt a { color: var(--brand-d); font-weight: 700; }
.demo { font-size: .8125rem; color: var(--muted); padding: 10px 12px; background: var(--soft); border-radius: 10px; }
.demo code { background: #fff; padding: 1px 6px; border-radius: 6px; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 18px; }
.co-main { display: grid; gap: 20px; }
.box-t { font-size: 1.0625rem; color: var(--ink); margin-bottom: 10px; }
.opt.pay { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 8px; }
.opt.pay:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mini-lines { display: grid; gap: 8px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines small { color: var(--muted); }
.mini-lines.big li { padding-block: 8px; border-bottom: 1px solid var(--line); }
.pay-note { padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; font-size: .9375rem; }
.summary form { display: grid; }

.st { font-style: normal; display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: .8125rem; font-weight: 800; background: var(--soft); color: var(--ink); white-space: nowrap; }
.st-pending { background: #FFF3D6; color: #8A5A00; } .st-paid, .st-pay-paid { background: #DDF3FF; color: #0B5C86; }
.st-packed { background: #EBE6FF; color: #4B34B8; } .st-shipped { background: #E0ECFF; color: #1F4FC4; }
.st-done { background: #DDF6E8; color: #0D7A50; } .st-cancelled, .st-pay-void, .st-pay-refunded { background: #FDE8E8; color: #B42318; }
.st-pay-unpaid { background: #FFF3D6; color: #8A5A00; }

.account > .h1, .order-page .ord-head { margin-bottom: 18px; }
.account .h2 { margin: 28px 0 14px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.acc-head strong { display: block; font-size: 1.125rem; color: var(--ink); } .acc-head span { color: var(--muted); }
.orders { display: grid; gap: 10px; }
.orders a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; transition: .2s; }
.orders a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.orders strong { display: block; color: var(--ink); } .orders small { color: var(--muted); }
.o-r { display: grid; justify-items: end; gap: 4px; }
.ord-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; counter-reset: s; }
.track li { display: grid; justify-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--muted); text-align: center; position: relative; }
.track li span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); border: 2px solid var(--line); z-index: 1; }
.track li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li.on { color: var(--ink); } .track li.on span { background: var(--brand); border-color: var(--brand); color: #fff; } .track li.on::before { background: var(--brand); }

/* Struk */
.print-body { background: var(--soft); padding: 24px 12px; }
.receipt { width: min(420px, 100%); margin: 0 auto; padding: 28px 24px 22px; background: #fff; border-radius: 6px; box-shadow: var(--shadow); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8125rem; color: #111; }
.receipt header { text-align: center; display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 2px dashed #bbb; }
.r-brand { font-size: 1.5rem; letter-spacing: -.02em; font-family: "Jakarta", sans-serif; }
.r-meta { display: grid; gap: 2px; padding-block: 12px; border-bottom: 2px dashed #bbb; }
.receipt table { width: 100%; border-collapse: collapse; margin-block: 10px; }
.receipt th { text-align: left; font-size: .6875rem; text-transform: uppercase; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.receipt th:not(:first-child), .receipt td:not(:first-child) { text-align: right; padding-left: 8px; white-space: nowrap; }
.receipt td { padding-block: 5px; vertical-align: top; } .receipt td small { display: block; color: #777; }
.receipt dl { display: grid; gap: 4px; padding-top: 10px; border-top: 2px dashed #bbb; }
.receipt dl div { display: flex; justify-content: space-between; } .receipt dl .total { font-size: 1rem; font-weight: 800; padding-top: 6px; }
.r-stamp { margin: 16px 0 6px; text-align: center; font-weight: 800; letter-spacing: .1em; padding: 8px; border: 2px solid #b42318; color: #b42318; transform: rotate(-2deg); }
.r-stamp.ok { border-color: #0d7a50; color: #0d7a50; }
.r-foot { text-align: center; color: #666; margin-top: 12px; }
.r-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; font-family: "Jakarta", sans-serif; }
@media print {
    .print-body { background: #fff; padding: 0; } .receipt { box-shadow: none; width: 80mm; padding: 4mm; } .r-actions { display: none; }
}

@media (max-width: 960px) { .co-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .row2 { grid-template-columns: 1fr; }
    .auth-card, .acc-head, .orders a { border-radius: 16px; } .auth-card { box-shadow: none; }
    .orders a { background: #fff; border: 0; } .acc-head { background: #fff; border: 0; }
    .page-checkout .box, .page-order .box { background: #fff; border: 0; border-radius: 16px; }
    .page-checkout .summary, .page-order .summary { background: #fff; }
    .track li { font-size: .6875rem; } .track li span { width: 28px; height: 28px; } .track li::before { top: 13px; }
}
@media (max-width: 760px) { .order-page, .checkout, .account { padding-top: 14px; } .ord-head { align-items: center; } .order-page .h1 { font-size: 1.25rem; } }

.acc-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.acc-forms .btn { justify-self: start; }
@media (max-width: 760px) { .acc-forms { grid-template-columns: 1fr; } .acc-forms .box { background: #fff; border: 0; } }
.art-img { object-fit: contain; width: 100%; height: 100%; border-radius: 8px; }

/* Masuk dengan Google / Facebook */
.social { display: grid; gap: 10px; }
.social .btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8125rem; font-weight: 800; color: #fff; }
.social-google .sico { background: #4285F4; } .social-facebook .sico { background: #1877F2; font-family: Georgia, serif; }
.social-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--muted); font-size: .8125rem; }
.social-or::before, .social-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
