/* V4.7.0 — Halaman status pesanan pembeli (gaya TikTok Shop, identitas Ahlinya Parfum). */
.ap-order { --o-ink: #16140f; --o-muted: #77705f; --o-line: #ebe7de; --o-gold: #c9a227; --o-teal: #0f8f83; --o-red: #d0312d;
	max-width: 640px; margin: 0 auto; color: var(--o-ink); font-size: 14px; }
.woocommerce-order-received .ap-woocommerce-content, .woocommerce-order-received .entry-content,
.woocommerce-view-order .woocommerce-MyAccount-content, .ap-order-wrap { color: var(--o-ink); }
.woocommerce-order-received .wp-block-woocommerce-checkout, .woocommerce-order-received .ap-woocommerce-content { background: transparent !important; padding: 0 !important; }
.ap-order a { color: inherit; }

.ap-order-hero { margin: 0 0 -14px; padding: 18px 18px 30px; border-radius: 16px 16px 0 0; background: linear-gradient(135deg, #fff6dc, #f3f7f2); }
.ap-order-hero--stop { background: linear-gradient(135deg, #fde9e8, #f7f2f2); }
.ap-order-hero--wait { background: linear-gradient(135deg, #fff1d6, #f8f4ec); }
.ap-order-title { margin: 0 0 4px; color: var(--o-ink); font-size: 22px; font-weight: 800; line-height: 1.25; }
.ap-order-sub { margin: 0; color: #4b463b; font-size: 14px; }
.ap-order-sub b { color: var(--o-teal); }

.ap-order-card { position: relative; margin: 0 0 8px; padding: 16px; border-radius: 14px; background: #fff; color: var(--o-ink); box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.ap-order-card h2 { margin: 0 0 10px; color: var(--o-ink); font-size: 15px; font-weight: 800; }

/* Progres */
.ap-order-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 14px; padding: 0; list-style: none; }
.ap-order-steps::before, .ap-order-steps::after { content: ""; position: absolute; top: 13px; left: 12.5%; height: 4px; border-radius: 4px; }
.ap-order-steps::before { right: 12.5%; background: #ece8df; }
.ap-order-steps::after { width: calc(75% * var(--ap-step) / 3); background: #bfe5df; }
.ap-order-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.ap-order-dot { width: 10px; height: 10px; margin-top: 10px; border-radius: 50%; background: #c9c3b6; }
.ap-order-step.is-done .ap-order-dot { background: #8ccfc6; }
.ap-order-step.is-current .ap-order-dot { width: 30px; height: 30px; margin-top: 0; border: 4px solid #d9f1ed; background: var(--o-teal); box-shadow: 0 0 0 1px #bfe5df; }
.ap-order-step-label { color: #a39d90; font-size: 12px; line-height: 1.3; }
.ap-order-step.is-done .ap-order-step-label, .ap-order-step.is-current .ap-order-step-label { color: var(--o-teal); font-weight: 600; }
.ap-order-note { display: flex; gap: 8px; margin: 0 0 14px; color: var(--o-teal); line-height: 1.5; }
.ap-order-hero--stop + .ap-order-progress-card .ap-order-note { color: var(--o-red); }
.ap-order-resi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #f6f4ef; }
.ap-order-resi span { width: 100%; color: var(--o-muted); font-size: 12px; }
.ap-order-resi strong { font-size: 15px; letter-spacing: .3px; }
.ap-order-address { display: flex; gap: 10px; color: var(--o-muted); }
.ap-order-address svg { flex: 0 0 auto; margin-top: 2px; color: #a39d90; }
.ap-order-address strong { margin-right: 6px; color: var(--o-ink); font-size: 15px; }
.ap-order-address p { margin: 4px 0 0; line-height: 1.5; }

/* Produk */
.ap-order-shop { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ap-order-shop img { width: 34px; height: 34px; border-radius: 50%; background: #16140f; object-fit: cover; }
.ap-order-shop strong { font-size: 15px; }
.ap-order-shop-tag { padding: 1px 6px; border-radius: 4px; background: #fff3cf; color: #7a5e08; font-size: 11px; font-weight: 700; }
.ap-order-item { display: flex; gap: 12px; padding: 8px 0; }
.ap-order-item + .ap-order-item { border-top: 1px solid var(--o-line); }
.ap-order-item-img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 8px; background: #faf8f4; object-fit: cover; }
.ap-order-item-info { display: grid; align-content: start; gap: 3px; flex: 1; min-width: 0; }
.ap-order-item-info a, .ap-order-item-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.ap-order-item-info small { color: var(--o-muted); }
.ap-order-item-price { display: grid; justify-items: end; align-content: start; gap: 3px; }
.ap-order-item-price small { color: var(--o-muted); }

/* Meta & total */
.ap-order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.ap-order-row > span:first-child { color: var(--o-muted); }
.ap-order-total summary { cursor: pointer; list-style: none; }
.ap-order-total summary::-webkit-details-marker { display: none; }
.ap-order-paymethod { display: inline-flex; align-items: center; gap: 6px; color: var(--o-ink) !important; }
.ap-order-cod { padding: 1px 5px; border-radius: 4px; background: #22a06b; color: #fff; font-size: 11px; }
.ap-order-caret { display: inline-block; color: var(--o-muted); transition: transform .15s; }
.ap-order-total[open] .ap-order-caret { transform: rotate(180deg); }
.ap-order-breakdown { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: #f6f4ef; }
.ap-order-breakdown div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.ap-order-breakdown dt { color: var(--o-muted); }
.ap-order-breakdown dd { margin: 0; text-align: right; }
.ap-order-breakdown div:last-child { font-weight: 800; }
.ap-copy { margin-left: 4px; padding: 2px 8px; border: 1px solid #d8d0bf; border-radius: 6px; background: #fff; color: var(--o-ink); font-size: 12px; cursor: pointer; }
.ap-copy.is-copied { border-color: var(--o-teal); color: var(--o-teal); }

/* Riwayat */
.ap-order-timeline ol { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--o-line); }
.ap-order-timeline li { position: relative; padding: 0 0 12px 12px; }
.ap-order-timeline li::before { content: ""; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #c9c3b6; }
.ap-order-timeline li:first-child::before { background: var(--o-teal); }
.ap-order-timeline time { color: var(--o-muted); font-size: 12px; }
.ap-order-timeline p { margin: 2px 0 0; }

/* Tautan bantuan */
.ap-order-links { padding-top: 4px; padding-bottom: 4px; }
.ap-order-link { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--o-line); color: var(--o-ink); text-decoration: none; }
.ap-order-link:last-child { border-bottom: 0; }
.ap-order-link span { flex: 1; font-size: 15px; }
.ap-order-link i { color: #b9b2a3; font-size: 20px; font-style: normal; }
.ap-order-hint { margin: 4px 4px 12px; color: #cfc6b2; font-size: 13px; line-height: 1.5; }
.ap-order-hint a { color: var(--o-gold) !important; font-weight: 700; }

/* Tombol bawah */
.ap-order-actions { display: grid; gap: 10px; margin: 6px 0 20px; }
.ap-order-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 18px; border: 0; border-radius: 99px; background: #ece9e3; color: var(--o-ink) !important; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ap-order-btn--primary { background: var(--o-gold); }
.ap-order-btn--danger { background: var(--o-red); color: #fff !important; }
.ap-order-cancel-confirm { padding: 14px; border-radius: 14px; background: #fff; text-align: center; }
.ap-order-cancel-confirm p { margin: 0 0 10px; font-weight: 700; }
.ap-order-cancel-confirm div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Instruksi pembayaran gateway (mis. rekening bank) */
.ap-order-payinfo, .ap-order-payinfo * { color: var(--o-ink); }
.ap-order-payinfo h2, .ap-order-payinfo h3 { font-size: 15px; }
.ap-order-payinfo ul { margin: 0; padding: 0; list-style: none; }
.ap-order-payinfo li { padding: 4px 0; }

/* Form Lacak Pesanan */
.woocommerce form.track_order { max-width: 640px; margin: 0 auto 16px; padding: 18px; border-radius: 14px; background: #fff; color: #16140f; }
.woocommerce form.track_order p, .woocommerce form.track_order label { color: #16140f; }
.woocommerce form.track_order input.input-text { width: 100%; min-height: 44px; border: 1px solid #d8d0bf; border-radius: 8px; padding: 8px 10px; background: #fff; color: #16140f; }
.woocommerce form.track_order button { min-height: 46px; border: 0; border-radius: 99px; padding: 10px 22px; background: #c9a227; color: #16140f; font-weight: 800; }

@media (min-width: 761px) {
	.ap-order-title { font-size: 26px; }
}

/* Judul halaman bawaan ("Pesanan diterima") disembunyikan: status sudah tampil di kartu. */
.woocommerce-order-received .ap-standard-page > header { display: none; }
.woocommerce-order-received .ap-page-space { padding-top: 16px; }

/* V4.7.1 — Form verifikasi email pembeli tamu (fitur keamanan WooCommerce). */
.woocommerce-verify-email { max-width: 520px; margin: 24px auto; padding: 20px; border-radius: 14px; background: #fff; color: #16140f; }
.woocommerce-verify-email p, .woocommerce-verify-email label { color: #16140f; line-height: 1.6; }
.woocommerce-verify-email a { color: #8a6d10; }
.woocommerce-verify-email input.input-text { width: 100%; min-height: 46px; border: 1px solid #d8d0bf; border-radius: 8px; padding: 0 12px; background: #fff; color: #16140f; font: inherit; }
.woocommerce-verify-email button { min-height: 46px; padding: 0 24px; border: 0; border-radius: 99px; background: #c9a227 !important; color: #16140f !important; font-weight: 800; }
