/* =====================================================================
   PixLink — checkout (produk.php, bayar.php), Cek Pesanan (pesanan.php) & invoice pesanan.
   Mobile-first, palet cerah (krem/peach/terakota), hijau hanya aksen kecil.
   ===================================================================== */
.ck { display: grid; gap: 14px; margin-top: 14px; }
.ck-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin: 0 0 14px; }
.ck-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: #FFF6EB;
  background: linear-gradient(135deg, #C58C6D, #a8704f); box-shadow: 0 6px 14px rgba(168,112,79,.3); }
.ck-more { border: 1px dashed rgba(197,140,109,.4); border-radius: 16px; padding: 10px 14px; }
.ck-more > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; }
.ck-more > summary::-webkit-details-marker { display: none; }
.ck-more[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.ck-more > summary .bi-chevron-down { transition: transform .3s; }

/* metode bayar */
.ck-methods { display: grid; gap: 10px; }
.ck-method { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 12px; border-radius: 18px; cursor: pointer;
  background: rgba(255,255,255,.6); border: 1.5px solid rgba(197,140,109,.2); transition: border-color .25s, box-shadow .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.ck-method:hover { transform: translateY(-2px); }
.ck-method input { position: absolute; opacity: 0; pointer-events: none; }
.ck-method .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #8f5a3c; background: #F6E3D6; }
.ck-method .tx { flex: 1; min-width: 0; line-height: 1.3; }
.ck-method .tx b { display: block; font-size: .95rem; }
.ck-method .tx small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.ck-tag { flex: none; align-self: flex-start; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; color: #fff; background: #6B705C; }
.ck-tag.soft { color: #8f5a3c; background: #F6E3D6; }
.ck-tick { position: absolute; right: 12px; bottom: 10px; font-size: 1.1rem; color: #C58C6D; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.ck-method.on { border-color: #C58C6D; background: #fff; box-shadow: 0 0 0 4px rgba(197,140,109,.14), 0 12px 26px rgba(143,90,60,.12); }
.ck-method.on .ic { color: #FFF6EB; background: linear-gradient(135deg, #C58C6D, #a8704f); }
.ck-method.on .ck-tick { opacity: 1; transform: none; }
.tried .ck-methods:has(input:invalid) .ck-method { border-color: #d9534f; }

/* paket langganan (bayar.php) */
.ck-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ck-plan { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 18px; cursor: pointer; background: rgba(255,255,255,.6); border: 1.5px solid rgba(197,140,109,.2); transition: all .25s; }
.ck-plan input { position: absolute; opacity: 0; }
.ck-plan .pr { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; } .ck-plan .pr small { font-size: .7rem; font-weight: 600; opacity: .7; }
.ck-plan.on { border-color: #C58C6D; background: #fff; box-shadow: 0 0 0 4px rgba(197,140,109,.14); }

/* voucher + ringkasan */
.ck-voucher { display: flex; gap: 8px; }
.ck-voucher .form-control { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ck-voucher .btn { flex: none; padding-inline: 1.2rem; }
.ck-vmsg { font-size: .82rem; min-height: 1.2em; margin: 8px 2px 0; }
.ck-vmsg.ok { color: #4f6b3a; } .ck-vmsg.ok::before { content: "✓ "; font-weight: 800; }
.ck-vmsg.err { color: #b0413e; }
.ck-sum { margin: 14px 0 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,246,235,.75); border: 1px solid rgba(197,140,109,.18); }
.ck-sum > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.ck-sum dt { font-weight: 500; color: var(--muted); } .ck-sum dd { margin: 0; font-weight: 700; }
.ck-disc dd { color: #4f6b3a; }
.ck-total { border-top: 1px dashed rgba(197,140,109,.4); margin-top: 6px; padding-top: 10px !important; }
.ck-total dt { color: var(--text); font-weight: 700; } .ck-total dd { font-size: 1.3rem; letter-spacing: -.02em; }
.ck-total dd.bump { animation: ppBump .45s cubic-bezier(.34,1.56,.64,1); transform-origin: 100% 50%; }
.pp-track { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }

/* ================= Cek Pesanan ================= */
.od-main { max-width: 680px; padding-bottom: 60px; }
.od-search { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 20px; }
.od-search > i { color: var(--muted); font-size: 1.05rem; }
.od-search .form-control { border: 0; background: transparent; box-shadow: none; padding-left: 4px; font-weight: 600; min-width: 0; }
.od-search .btn { flex: none; }
.od-search.sm { background: rgba(255,255,255,.7); border: 1px solid rgba(197,140,109,.25); margin-top: 6px; }
.od-sec { margin-top: 16px; }
.od-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 0 0 12px; }
.od-pad { padding: 18px; border-radius: 24px; }
.od-list { display: grid; gap: 8px; }
.od-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; color: var(--text); text-decoration: none; }
.od-row > div { flex: 1; min-width: 0; line-height: 1.3; } .od-row b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .od-row small { display: block; font-size: .76rem; }
.od-row .ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #8f5a3c; background: #F6E3D6; }
.od-row .st { flex: none; font-size: .68rem; }
a.od-row:hover { color: var(--text); transform: translateY(-2px); }

.od-head { padding: 18px; border-radius: 26px; margin-top: 8px; }
.od-head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.od-kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: #8f5a3c; }
.od-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; }
.od-code b { font-size: clamp(1.25rem, 6vw, 1.6rem); letter-spacing: .06em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.od-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(197,140,109,.35); }
.od-total span { color: var(--muted); font-size: .88rem; } .od-total b { font-size: 1.35rem; letter-spacing: -.02em; }

.od-steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; padding: 0; margin: 18px 0 4px; }
.od-steps::before { content: ""; position: absolute; top: 18px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 3px; border-radius: 3px; background: rgba(107,112,92,.16); }
.od-steps::after { content: ""; position: absolute; top: 18px; left: calc(50% / var(--n)); height: 3px; border-radius: 3px; background: linear-gradient(90deg, #6B705C, #C58C6D);
  width: calc((100% - 100% / var(--n)) * var(--p) / (var(--n) - 1)); transition: width 1s cubic-bezier(.2,.75,.2,1); }
.od-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.od-steps .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid rgba(107,112,92,.22); color: var(--muted); }
.od-steps small { font-size: .7rem; line-height: 1.2; color: var(--muted); font-weight: 600; }
.od-steps li.done .dot { background: #6B705C; border-color: #6B705C; color: #FFF6EB; }
.od-steps li.on .dot { background: linear-gradient(135deg, #C58C6D, #a8704f); border-color: transparent; color: #FFF6EB; animation: flowPulse 2.4s ease-in-out infinite; box-shadow: 0 0 0 5px rgba(197,140,109,.18); }
.od-steps li.on small { color: var(--text); }
.od-steps li.bad .dot { background: #b0413e; border-color: #b0413e; color: #fff; }

.od-amount { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: rgba(255,246,235,.8); margin-bottom: 14px; }
.od-amount small { width: 100%; color: var(--muted); font-size: .74rem; } .od-amount b { font-size: 1.5rem; letter-spacing: -.02em; margin-right: auto; }
.od-qris { display: grid; gap: 10px; justify-items: center; text-align: left; margin-bottom: 14px; }
.od-qris img { width: min(260px, 80vw); border-radius: 16px; background: #fff; padding: 10px; box-shadow: 0 14px 30px rgba(143,90,60,.16); }
.od-qris ol { margin: 0; padding-left: 18px; justify-self: stretch; }
.od-bank { white-space: normal; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(197,140,109,.25); font-weight: 600; margin-bottom: 8px; }
.od-upload { display: grid; gap: 10px; margin-top: 10px; }
.od-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; border-radius: 18px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(197,140,109,.45); background: rgba(255,255,255,.55); transition: border-color .25s, background .25s; }
.od-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.od-drop > i { font-size: 1.8rem; color: #C58C6D; }
.od-drop.has { border-style: solid; border-color: #6B705C; background: #fff; }
.od-file { font-size: .82rem; font-weight: 700; color: #4f6b3a; word-break: break-all; }
.od-wait { display: flex; gap: 14px; align-items: flex-start; }
.od-pulse { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #FFF6EB; background: linear-gradient(135deg, #C58C6D, #a8704f); animation: flowPulse 2.4s ease-in-out infinite; }
.od-pulse.ok { background: #6B705C; }
.od-proof { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.7); color: var(--text); font-size: .82rem; }
.od-proof img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.od-creds { display: grid; gap: 0; margin: 0 0 14px; }
.od-creds > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(197,140,109,.25); }
.od-creds > div:last-child { border-bottom: 0; }
.od-creds dt { color: var(--muted); font-weight: 500; font-size: .86rem; flex: none; } .od-creds dd { margin: 0; text-align: right; word-break: break-word; display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.od-account { border: 1.5px solid rgba(107,112,92,.35); background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(241,227,211,.6)); }
.od-pass { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.od-log { list-style: none; margin: 0; padding: 0; }
.od-log li { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.od-log li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: rgba(197,140,109,.25); }
.od-log li:last-child::before { display: none; }
.od-log .dot { width: 14px; height: 14px; flex: none; margin-top: 3px; border-radius: 50%; background: #DDBEA9; border: 3px solid #FFF6EB; box-shadow: 0 0 0 1px rgba(197,140,109,.4); }
.od-log li.now .dot { background: #C58C6D; box-shadow: 0 0 0 4px rgba(197,140,109,.2); }
.od-log b { display: block; font-size: .9rem; } .od-log small { display: block; font-size: .78rem; line-height: 1.35; }

/* ================= Invoice ================= */
.px-invoice { background: #efe7dc; padding: 16px; }
.inv-tools { display: flex; justify-content: space-between; gap: 8px; max-width: 780px; margin: 0 auto 12px; }
.inv-paper { max-width: 780px; margin: 0 auto; background: #fff; color: #2b2c24; border-radius: 18px; padding: clamp(20px, 5vw, 44px); box-shadow: 0 24px 60px rgba(80,60,40,.15); }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid #F1E3D3; }
.inv-logo { width: min(180px, 40vw); }
.inv-head h1 { font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: .12em; margin: 0; }
.inv-stamp { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 8px; border: 2px solid #c58c6d; color: #a8704f; font-weight: 800; letter-spacing: .12em; font-size: .78rem; }
.inv-stamp.paid { border-color: #6B705C; color: #4f5343; }
.inv-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; }
.inv-meta > div { display: flex; flex-direction: column; gap: 1px; } .inv-meta small { color: #8a8d7c; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.inv-meta .text-end { align-items: flex-end; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.inv-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: #8a8d7c; padding: 10px 0; border-bottom: 1px solid #F1E3D3; }
.inv-table td { padding: 12px 0; border-bottom: 1px solid #F1E3D3; vertical-align: top; }
.inv-table tfoot td { border: 0; padding: 6px 0; } .inv-table tfoot td:first-child { padding-right: 18px; }
.inv-table .tot td { font-size: 1.2rem; font-weight: 800; padding-top: 12px; border-top: 2px solid #2b2c24; }
@media print { .px-invoice { background: #fff; padding: 0; } .inv-tools { display: none; } .inv-paper { box-shadow: none; border-radius: 0; } }
html[data-theme="dark"] .ck-method, html[data-theme="dark"] .ck-plan, html[data-theme="dark"] .od-drop { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .ck-method.on, html[data-theme="dark"] .ck-plan.on, html[data-theme="dark"] .od-bank, html[data-theme="dark"] .od-steps .dot { background: rgba(255,255,255,.1); }
