/* ==========================================================================
   Timepolar: tampilan situs mengikuti prototipe Toko Timepolar.
   Dimuat oleh mu-plugins/timepolar-tampilan.php setelah CSS Kadence dan WooCommerce.
   Hapus atau ganti nama file PHP itu untuk kembali ke tampilan Kadence biasa.

   Bagian:
   1. Token dan dasar
   2. Tombol
   3. Header
   4. Beranda (kelas tp-*)
   5. Isi halaman biasa: tabel, details, judul halaman
   6. WooCommerce: halaman produk, opsi, unggah, toko, keranjang, checkout
   7. Footer
   8. Gerak dikurangi
   Selector yang ditandai "CEK" ditulis dari pengetahuan umum tentang Kadence,
   WPC Product Options, dan Drag and Drop Multiple File Upload. Cocokkan dengan
   markup situs sebelum dianggap selesai.
   ========================================================================== */

/* 1. Token dan dasar ------------------------------------------------------ */
@font-face {
  font-family: "Nanum Pen Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nanum-pen-script-latin-400-normal.woff2") format("woff2");
}

:root {
  --tp-bg: #F3F5F0;
  --tp-surface: #FFFFFF;
  --tp-surface-2: #E6EBE3;
  --tp-ink: #1B231F;
  --tp-muted: #56635C;
  --tp-line: #CFD7CC;
  --tp-accent: #2F5B47;
  --tp-accent-hover: #244A39;
  --tp-mat: #2F5B47;
  --tp-mat-line: rgba(214, 236, 222, .12);
  --tp-mat-line-2: rgba(214, 236, 222, .25);
  --tp-band-ink: #EEF5F0;
  --tp-band-muted: rgba(238, 245, 240, .82);
  --tp-kraft-3: #D3AF83;
  --tp-kraft-ink: #45301D;
  --tp-stamp: #C9501A;
  --tp-date: #FF6A1F;
  --tp-focus: #E8601F;
  --tp-danger: #B42318;
  --tp-paper: #FFFFFF;
  --tp-paper-ink: #262626;
  --tp-paper-line: #DDDAD3;
  --tp-shadow: rgba(12, 16, 14, .34);
  --tp-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --tp-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tp-hand: "Nanum Pen Script", "Segoe Print", "Bradley Hand", cursive;
  --tp-maxw: 1200px;
  --tp-gutter: clamp(16px, 4vw, 40px);
  --tp-head-h: 65px;
}

body {
  background: var(--tp-bg);
  color: var(--tp-ink);
  font-family: var(--tp-body);
  /* Pengaturan font Kadence di situs ini tidak menyimpan tinggi baris, jadi tanpa ini 1.15 (normalize). */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Kadence memberi latar putih pada pembungkus situs (#wrapper.site) dan wadah isi;
   biarkan latar halaman yang terlihat. Dicek di Kadence 1.5.2. */
#wrapper.site,
.content-bg,
.content-style-unboxed .entry.single-entry,
.content-style-unboxed .content-bg {
  background: transparent;
  box-shadow: none;
}

:focus-visible {
  outline: 3px solid var(--tp-focus);
  outline-offset: 2px;
}

h1, h2, h3,
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--tp-display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: .004em;
  color: var(--tp-ink);
  text-wrap: balance;
}

a { color: inherit; }

.entry-content a:not(.wp-block-button__link):not(.button):not(.tp-tombol) {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--tp-stamp);
}

.entry-content a:not(.wp-block-button__link):not(.button):not(.tp-tombol):hover {
  text-decoration-color: currentColor;
}

/* 2. Tombol --------------------------------------------------------------- */
.wp-block-button__link,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button,
#place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .6em 1.3em;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--tp-accent);
  color: #fff;
  font-family: var(--tp-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color .15s, border-color .15s;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover,
#place_order:hover {
  background: var(--tp-accent-hover);
  color: #fff;
}

/* Tombol bergaris. Kartu produk Kadence memakai
   .woocommerce ul.products.woo-archive-btn-button .product-action-wrap .button:not(.kb-button),
   jadi selector kartu di sini dibuat sedikit lebih spesifik. */
.wp-block-button.is-style-outline > .wp-block-button__link,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .product-action-wrap .button:not(.kb-button) {
  background: transparent;
  border-style: solid;
  border-color: currentColor;
  color: var(--tp-ink);
  box-shadow: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .product-action-wrap .button:not(.kb-button):hover {
  background: var(--tp-surface-2);
  color: var(--tp-ink);
}

/* 3. Header (Kadence) ------------------------------------------------------ */
/* CEK: nama kelas baris header Kadence. Header dibuat lengket lewat
   Sesuaikan > Header > Sticky Header (Main Row), bukan lewat CSS. */
#masthead .site-main-header-wrap .site-header-row-container-inner,
#mobile-header .site-main-header-wrap .site-header-row-container-inner {
  background: color-mix(in srgb, var(--tp-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tp-line);
}

.site-branding .site-title,
#colophon .tp-foot-brand {
  font-family: var(--tp-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--tp-ink);
}

/* ’20 kecil berwarna cap tanggal, seperti logo di prototipe (header dan footer) */
.site-branding .site-title::after,
#colophon .tp-foot-brand::after {
  content: "\2019" "20";
  display: inline-block;
  margin-left: .12em;
  vertical-align: top;
  font-size: .5em;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--tp-date);
  text-shadow: 0 0 6px color-mix(in srgb, var(--tp-date) 55%, transparent);
}

.header-navigation .header-menu-container > ul > li.menu-item > a {
  font-family: var(--tp-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--tp-ink);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
}

.header-navigation .header-menu-container > ul > li.menu-item:not(.tp-menu-cta) > a:hover {
  box-shadow: inset 0 -2px 0 var(--tp-line);
}

.header-navigation .header-menu-container > ul > li.current-menu-item:not(.tp-menu-cta) > a {
  box-shadow: inset 0 -2px 0 var(--tp-stamp);
}

/* Item menu "Rakit box" diberi kelas tp-menu-cta lewat Tampilan > Menu. Selector kedua menyamai
   aturan menu aktif Kadence (li.menu-item.current-menu-item > a), supaya teks tetap putih di halaman toko. */
.header-navigation .header-menu-container > ul > li.tp-menu-cta > a,
.main-navigation .primary-menu-container > ul > li.menu-item.tp-menu-cta > a {
  min-height: 42px;
  margin-left: .6em;
  padding: .5em 1.05em;
  border-radius: 12px;
  background: var(--tp-accent);
  color: #fff;
  font-weight: 700;
}

.header-navigation .header-menu-container > ul > li.tp-menu-cta > a:hover,
.main-navigation .primary-menu-container > ul > li.menu-item.tp-menu-cta > a:hover {
  background: var(--tp-accent-hover);
  color: #fff;
}

.mobile-navigation ul li.tp-menu-cta > a {
  color: var(--tp-accent);
  font-weight: 700;
}

/* Tombol "Rakit box" di header HP (Kadence: Header > Mobile Button), di samping ikon menu. */
#mobile-header .mobile-header-button-wrap .mobile-header-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .5em 1.05em;
  border: 0;
  border-radius: 12px;
  background: var(--tp-accent);
  color: #fff;
  font-family: var(--tp-body);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

#mobile-header .mobile-header-button-wrap .mobile-header-button:hover {
  background: var(--tp-accent-hover);
  color: #fff;
}

/* Ikon menu HP (bawaan Kadence 37 x 31 px) dibuat cukup besar untuk disentuh. */
#mobile-header .menu-toggle-open {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

/* 4. Beranda -------------------------------------------------------------- */
/* Halaman Beranda memakai layout "Fullwidth" Kadence; setiap bagian membatasi lebarnya sendiri. */
.tp-hero,
.tp-sec,
.tp-band-in {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--tp-maxw);
  margin-inline: auto;
  padding-inline: var(--tp-gutter);
}

/* Netralkan jarak bawaan Kadence dan WordPress di dalam bagian tp. */
.entry-content > .tp {
  margin-block: 0;
}

/* Tanpa theme.json (Kadence), WordPress membungkus isi blok Group dengan
   .wp-block-group__inner-container. Pembungkus itu dibuat "transparan" supaya
   anak-anaknya ikut grid/flex bagian tp (hero, kepala bagian, band, kartu). */
.entry-content .tp .wp-block-group__inner-container {
  display: contents;
}

.entry-content .tp :is(h1, h2, h3, p, ul, ol, figure),
.entry-content .tp :is(.wp-block-group, .wp-block-buttons, .wp-block-columns, .wp-block-column, .wp-block-image, .wp-block-list, .wp-block-details) {
  margin: 0;
}

/* Bagian dipusatkan; ditulis setelah reset supaya margin auto tidak tertimpa. */
.entry-content .tp.tp-hero,
.entry-content .tp.tp-sec,
.entry-content .tp .tp-band-in {
  margin-inline: auto;
}

.entry-content .tp ul.wp-block-list {
  padding: 0;
  list-style: none;
}

.entry-content .tp h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 900;
}

.entry-content .tp h2 {
  font-size: clamp(2.15rem, 4.4vw, 3.3rem);
  font-weight: 900;
}

.entry-content .tp h3 {
  font-size: 1.55rem;
  font-weight: 800;
}

.entry-content .tp .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tp-sec {
  padding-block: clamp(56px, 8vw, 100px);
}

.tp .tp-more a {
  font-weight: 700;
}

/* 4a. Hero */
.entry-content .tp-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 48px);
}

.entry-content .tp-hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
  min-width: 0;
}

.entry-content .tp-hero h1 {
  max-width: 10ch;
}

.entry-content .tp-relaunch {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tp-muted);
}

/* Cap tanggal kamera. Ganti teksnya di sini kalau tanggal buka berubah. */
.entry-content .tp-relaunch::before {
  content: "\2019" "26 11 09";
  font-family: var(--tp-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--tp-date);
  text-shadow: 0 0 8px color-mix(in srgb, var(--tp-date) 50%, transparent);
}

.entry-content .tp-lead {
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tp-muted);
}

.entry-content .tp-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: .9rem;
  color: var(--tp-muted);
}

.entry-content .tp-assure li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.entry-content .tp-assure li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tp-date);
  box-shadow: 0 0 6px var(--tp-date);
}

.entry-content .tp-hero-img {
  min-width: 0;
}

.entry-content .tp-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* 4b. Cara pesannya */
.entry-content .tp-how {
  padding-top: clamp(28px, 4vw, 48px);
}

.entry-content .tp .tp-how-list.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  margin-top: 34px;
  counter-reset: tp-how;
}

.entry-content .tp .tp-how-list > .wp-block-column {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px solid var(--tp-ink);
  counter-increment: tp-how;
}

.entry-content .tp .tp-how-list > .wp-block-column::before {
  content: counter(tp-how);
  font-family: var(--tp-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--tp-date);
  text-shadow: 0 0 10px color-mix(in srgb, var(--tp-date) 45%, transparent);
}

.entry-content .tp .tp-how-list h3 {
  font-size: 1.45rem;
}

.entry-content .tp .tp-how-list p {
  font-size: .95rem;
  color: var(--tp-muted);
}

/* 4c. Pilih ukuran box */
.entry-content .tp-pk {
  scroll-margin-top: calc(var(--tp-head-h) + 12px);
}

.entry-content .tp-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
}

.entry-content .tp .tp-pk-row.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 2px solid var(--tp-ink);
}

.entry-content .tp .tp-pk-row > .wp-block-column {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  min-width: 0;
  padding: 22px clamp(14px, 2.5vw, 30px) 26px;
  border-right: 1px solid var(--tp-line);
}

.entry-content .tp .tp-pk-row > .wp-block-column:first-child { padding-left: 0; }
.entry-content .tp .tp-pk-row > .wp-block-column:last-child { padding-right: 0; border-right: 0; }

.entry-content .tp .tp-price {
  font-family: var(--tp-display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.entry-content .tp .tp-price em {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--tp-body);
  font-size: .85rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tp-muted);
}

.entry-content .tp .tp-n {
  font-weight: 700;
}

.entry-content .tp .tp-pk-items {
  display: grid;
  align-content: start;
  gap: 5px;
  font-size: .93rem;
  color: var(--tp-muted);
}

.entry-content .tp .tp-pk-items li { margin: 0; }

.entry-content .tp .tp-pk-row .wp-block-buttons {
  margin-top: 6px;
}

.entry-content .tp .tp-pk-row .wp-block-button__link {
  min-height: 38px;
  padding: .35em .9em;
  border-width: 1.5px;
  border-radius: 10px;
  font-size: .9rem;
}

.entry-content .tp .tp-pk-flip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--tp-surface-2);
}

.entry-content .tp .tp-pk-flip-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.entry-content .tp .tp-pk-flip h3 { font-size: 1.5rem; }
.entry-content .tp .tp-pk-flip p { max-width: 60ch; color: var(--tp-muted); }

.entry-content .tp .tp-pk-flip .wp-block-button__link {
  min-height: 38px;
  padding: .35em .9em;
  border-width: 1.5px;
  border-radius: 10px;
  font-size: .9rem;
}

/* 4d. Untuk momen apa? (alas potong hijau) */
.entry-content .tp-band {
  background-color: var(--tp-mat);
  background-image:
    linear-gradient(90deg, var(--tp-mat-line) 1px, transparent 1px),
    linear-gradient(var(--tp-mat-line) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--tp-band-ink);
}

.entry-content .tp-band-in {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px 56px;
  align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}

.entry-content .tp-band h2 { color: var(--tp-band-ink); }

.entry-content .tp-band-copy p {
  max-width: 40ch;
  margin-top: 12px;
  color: var(--tp-band-muted);
}

.entry-content .tp .tp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.entry-content .tp .tp-tags li {
  display: grid;
  margin: 0;
  padding: 9px 18px 9px 30px;
  background: radial-gradient(circle at 14px 50%, var(--tp-mat) 0 4.5px, transparent 5px), var(--tp-kraft-3);
  color: var(--tp-kraft-ink);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.25;
}

.entry-content .tp .tp-tags li strong {
  font-size: 1rem;
  font-weight: 700;
}

.entry-content .tp .tp-band-note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--tp-mat-line-2);
  font-size: .92rem;
  color: var(--tp-band-muted);
}

/* 4e. Timepolar kembali + kartu catatan */
.entry-content .tp-since {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.entry-content .tp .tp-since-copy {
  display: grid;
  gap: 16px;
}

.entry-content .tp .tp-since-copy p {
  max-width: 56ch;
  color: var(--tp-muted);
}

.entry-content .tp .tp-since-card {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  padding: 24px 26px 22px;
  background: var(--tp-paper);
  color: var(--tp-paper-ink);
  transform: rotate(1.6deg);
  box-shadow: 0 16px 32px -16px var(--tp-shadow), 0 0 0 1px rgba(0, 0, 0, .05);
}

.entry-content .tp .tp-since-cap {
  margin-bottom: 10px;
  font-family: var(--tp-hand);
  font-size: 2.1rem;
  line-height: 1;
}

.entry-content .tp .tp-since-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-block: 6px;
  border-bottom: 1px dashed var(--tp-paper-line);
  font-size: .95rem;
}

.entry-content .tp .tp-since-list li strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entry-content .tp .tp-since-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  font-size: .88rem;
}

.entry-content .tp .tp-since-foot strong {
  font-family: var(--tp-hand);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

/* 4f. Pertanyaan di Beranda */
.entry-content .tp-faq {
  padding-top: 0;
}

.entry-content .tp .tp-faq-list {
  max-width: 820px;
  margin-top: 28px;
}

.entry-content .tp .tp-more {
  margin-top: 22px;
}

/* 4g. Beranda di layar sempit */
@media (max-width: 1100px) and (min-width: 821px) {
  .entry-content .tp .tp-pk-row.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-content .tp .tp-pk-row > .wp-block-column { border-bottom: 1px solid var(--tp-line); }
  .entry-content .tp .tp-pk-row > .wp-block-column:nth-child(2n) { border-right: 0; padding-right: 0; }
  .entry-content .tp .tp-pk-row > .wp-block-column:nth-child(2n+1) { padding-left: 0; }
}

@media (max-width: 900px) {
  .entry-content .tp-hero { grid-template-columns: minmax(0, 1fr); }
  .entry-content .tp .tp-how-list.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .entry-content .tp .tp-pk-row.wp-block-columns { grid-template-columns: minmax(0, 1fr); }
  .entry-content .tp .tp-pk-row > .wp-block-column,
  .entry-content .tp .tp-pk-row > .wp-block-column:first-child,
  .entry-content .tp .tp-pk-row > .wp-block-column:last-child {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--tp-line);
  }
  .entry-content .tp-band-in,
  .entry-content .tp-since { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .entry-content .tp .tp-how-list.wp-block-columns { grid-template-columns: minmax(0, 1fr); }
}

/* 5. Isi halaman biasa ------------------------------------------------------ */
.entry-header .entry-title {
  font-family: var(--tp-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: .95;
}

/* Tabel (Paket dan harga, Flipbook) */
.entry-content .wp-block-table {
  overflow-x: auto;
  border-top: 2px solid var(--tp-ink);
}

.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--tp-line);
  text-align: left;
  vertical-align: top;
}

.entry-content .wp-block-table thead {
  border-bottom: 0;
}

.entry-content .wp-block-table thead th {
  padding-top: 20px;
  vertical-align: bottom;
  font-weight: 700;
}

.entry-content .wp-block-table thead th strong {
  display: block;
  font-family: var(--tp-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.entry-content .wp-block-table tbody td:first-child {
  font-weight: 600;
  color: var(--tp-muted);
}

/* Kolom Classic Box disorot; kelas tp-tbl-paket dipasang di blok tabel pertama halaman Paket. */
.entry-content .tp-tbl-paket th:nth-child(3),
.entry-content .tp-tbl-paket td:nth-child(3) {
  background: color-mix(in srgb, var(--tp-accent) 8%, transparent);
}

/* Lebar kolom mengikuti isi: dengan lebar tetap, harga Gift Set (tidak boleh terpotong baris)
   menabrak kolom Flipbook di desktop. */
.entry-content .tp-tbl-paket table.has-fixed-layout {
  table-layout: auto;
}

/* Kolom label "Isi" tidak ikut menyempit di layar kecil (tabel digulir di dalam wadahnya). */
.entry-content .tp-tbl-paket :is(th, td):first-child {
  width: 9.5em;
}

/* Di layar sempit tabel digulir di dalam wadahnya. 880 px (bukan 780 px) supaya harga yang tidak
   boleh terpotong baris dan kolom "Isi" sama-sama muat tanpa saling menabrak. */
@media (max-width: 860px) {
  .entry-content .tp-tbl-paket table { min-width: 880px; }
}

/* Pertanyaan yang bisa dibuka-tutup */
.entry-content .wp-block-details {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--tp-line);
}

.entry-content .wp-block-details:first-of-type {
  border-top: 2px solid var(--tp-ink);
}

.entry-content .wp-block-details + .wp-block-details {
  margin-top: 0;
}

.entry-content .wp-block-details summary {
  position: relative;
  padding: 18px 44px 18px 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }

.entry-content .wp-block-details summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s;
}

.entry-content .wp-block-details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.entry-content .wp-block-details > :not(summary) {
  max-width: 64ch;
  margin: 0;
  padding-bottom: 18px;
  color: var(--tp-muted);
}

/* 6. WooCommerce ------------------------------------------------------------ */
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--tp-ink);
}

.single-product div.product .product_title {
  font-family: var(--tp-display);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: .95;
}

.single-product div.product p.price,
.single-product div.product span.price {
  font-family: var(--tp-display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.single-product .woocommerce-product-details__short-description {
  color: var(--tp-muted);
}

.single-product .woocommerce-product-gallery img {
  border-radius: 18px;
}

/* Isian di halaman produk, keranjang, dan checkout */
.single-product form.cart input[type="text"],
.single-product form.cart input[type="number"],
.single-product form.cart input[type="date"],
.single-product form.cart input[type="email"],
.single-product form.cart input[type="tel"],
.single-product form.cart input[type="url"],
.single-product form.cart select,
.single-product form.cart textarea,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-cart .coupon .input-text {
  width: 100%;
  min-height: 46px;
  padding: .55em .8em;
  border: 1.5px solid var(--tp-line);
  border-radius: 10px;
  background: var(--tp-surface);
  color: var(--tp-ink);
  font-family: var(--tp-body);
  font-size: 1rem;
  box-shadow: none;
}

.single-product form.cart textarea,
.woocommerce form .form-row textarea.input-text {
  min-height: 128px;
  line-height: 1.5;
  resize: vertical;
}

.single-product form.cart :is(input, select, textarea):focus,
.woocommerce form .form-row :is(.input-text, select):focus {
  outline: none;
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tp-accent) 28%, transparent);
}

.single-product form.cart input[type="radio"],
.single-product form.cart input[type="checkbox"],
.woocommerce form .form-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--tp-accent);
}

.single-product form.cart label {
  font-size: .92rem;
  font-weight: 600;
}

.single-product .single_add_to_cart_button {
  min-height: 52px;
  padding-inline: 1.6em;
}

/* WPC Product Options 4.0.6. Markup per field:
   .wpcpo-wrapper > .wpcpo-options > .wpcpo-option.wpcpo-option-{radio|select|text|textarea|checkbox|date-picker}
     > .wpcpo-option-name > strong (judul) + .label-price
     > .wpcpo-option-description > p
     > .wpcpo-option-form > p.form-row > label > input/select/textarea (+ small.wpcpo-chars-remaining)
   Judul bagian memakai elemen Heading WPC: .wpcpo-option-appearance-heading > h3.
   Target tampilan: judul bagian seperti legend prototipe, pilihan pendek (gaya, filter) sebagai
   chip bulat, harga tambahan dalam huruf display. */
.wpcpo-options {
  display: grid;
  gap: 18px;
  margin-block: 8px 24px;
}

.wpcpo-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.wpcpo-option-appearance-heading > :is(h2, h3, h4) {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1.5px solid var(--tp-line);
  font-family: var(--tp-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.wpcpo-option .wpcpo-option-name {
  font-size: 1rem;
  font-weight: 700;
}

.wpcpo-option .wpcpo-option-description,
.wpcpo-option .wpcpo-option-description p,
.wpcpo-option small {
  margin: 0;
  font-size: .85rem;
  color: var(--tp-muted);
}

.wpcpo-option .wpcpo-option-form .form-row {
  margin: 0;
  padding: 0;
}

.wpcpo-option .label-price .amount {
  font-family: var(--tp-display);
  font-size: 1.15em;
  font-weight: 800;
  white-space: nowrap;
}

/* Harga pilihan aktif di judul select (mis. "Photostrip (Rp0)") disembunyikan selama pilihannya gratis. */
.wpcpo-option-select:has(option:checked[data-price="0"]) .wpcpo-option-name .label-price,
.wpcpo-option-select:has(option:checked[value=""]) .wpcpo-option-name .label-price {
  display: none;
}

/* Kotak centang di kiri, teks dan harga tambahannya mengalir di sebelahnya
   (mengalahkan .woocommerce form .form-row label). */
.wpcpo-option-checkbox .wpcpo-option-form .form-row label {
  position: relative;
  display: block;
  padding-left: 30px;
}

.wpcpo-option-checkbox .wpcpo-option-form .form-row label input[type="checkbox"] {
  position: absolute;
  top: .15em;
  left: 0;
  margin: 0;
}

/* Unggah foto (Drag and Drop Multiple File Upload 1.1.8). Markup:
   .wc-dnd-file-upload (label unggah) > .codedropz-upload-wrapper > .codedropz-upload-handler (area seret)
   + .codedropz--results > .dnd-upload-status (satu baris per file). Kelas .codedropz-dragover
   dipasang pada .codedropz-upload-handler sendiri saat file diseret ke atasnya. */
.codedropz-upload-handler {
  padding: 26px 16px;
  border: 2px dashed var(--tp-line);
  border-radius: 16px;
  background: var(--tp-surface);
  text-align: center;
}

.codedropz-upload-handler:hover,
.codedropz-upload-handler.codedropz-dragover {
  border-color: var(--tp-accent);
}

/* Hijau saat file diseret ke atas area unggah, seperti .drop di prototipe. */
.codedropz-upload-handler.codedropz-dragover {
  background: color-mix(in srgb, var(--tp-accent) 9%, var(--tp-surface));
}

.wc-dnd-file-upload {
  font-size: .92rem;
  font-weight: 600;
}

.codedropz-upload-inner .codedropz-label {
  font-weight: 500;
  color: var(--tp-muted);
}

/* Plugin memaksa teks area unggah satu baris; di layar sempit tombolnya boleh turun baris. */
.codedropz-upload-handler .codedropz-upload-inner {
  white-space: normal;
}

.codedropz-upload-handler .codedropz-upload-inner .codedropz-label {
  flex-wrap: wrap;
  row-gap: 6px;
  line-height: 1.4;
}

.codedropz-upload-handler .codedropz-upload-inner a.cd-upload-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .35em .9em;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  background: transparent;
  color: var(--tp-ink);
  font-weight: 700;
  text-decoration: none;
}

.codedropz-upload-handler .codedropz-upload-inner a.cd-upload-btn:hover {
  background: var(--tp-surface-2);
}

/* Daftar file yang sudah diunggah */
.codedropz--results .dnd-upload-status {
  padding: 8px 0;
  border-bottom: 1px solid var(--tp-line);
}

/* Tombol hapus file: ikon tetap di tempatnya, area sentuhnya diperbesar (sekitar 44 px) untuk jari di HP. */
.codedropz--results .dnd-upload-status .dnd-upload-details .remove-file {
  padding: 10px;
  margin: -10px;
  box-sizing: content-box;
}

.codedropz--results .dnd-upload-status .dnd-upload-details .name {
  color: var(--tp-ink);
}

.codedropz--results .dnd-upload-status .dnd-upload-details .dnd-progress-bar {
  background: var(--tp-surface-2);
}

.codedropz--results .dnd-upload-status .dnd-upload-details .dnd-progress-bar span {
  background: var(--tp-accent);
}

/* Bagian "Foto": area unggah dicetak di bawah judul bagiannya. */
.wpcpo-option-appearance-heading > .wc-dnd-file-upload {
  margin-top: 6px;
}

/* Pilihan pendek (Gaya edit, Filter foto, Gaya kolase A4, Gaya photofilm, Aroma) sebagai chip
   seperti .chip prototipe. Radio aslinya tetap ada, transparan dan menutupi chip, jadi tetap
   bisa dipilih dengan keyboard dan dibaca pembaca layar. */
.wpcpo-option-radio .wpcpo-option-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Clearfix WooCommerce pada .form-row menjadi item flex kosong dan menggeser chip pertama. */
.wpcpo-option-radio .wpcpo-option-form .form-row::before,
.wpcpo-option-radio .wpcpo-option-form .form-row::after {
  display: none;
}

.wpcpo-option-radio .wpcpo-option-form .form-row label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1.5px solid var(--tp-line);
  border-radius: 999px;
  background: var(--tp-surface);
  color: var(--tp-ink);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.wpcpo-option-radio .wpcpo-option-form .form-row label:hover {
  border-color: var(--tp-ink);
}

.wpcpo-option-radio .wpcpo-option-form .form-row label input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.wpcpo-option-radio .wpcpo-option-form .form-row label:has(input:checked) {
  border-color: var(--tp-ink);
  background: var(--tp-ink);
  color: var(--tp-bg);
}

.wpcpo-option-radio .wpcpo-option-form .form-row label:has(input:focus-visible) {
  outline: 3px solid var(--tp-focus);
  outline-offset: 2px;
}

/* Toko (daftar produk) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--tp-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.woocommerce ul.products li.product .price {
  font-family: var(--tp-display);
  font-size: 1.6rem;
  font-weight: 900;
}

.woocommerce ul.products li.product img {
  border-radius: 14px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .product-action-wrap .button:not(.kb-button) {
  min-height: 38px;
  padding: .35em .9em;
  border-width: 1.5px;
  border-radius: 10px;
  font-size: .9rem;
}

/* Keranjang dan checkout */
.woocommerce table.shop_table {
  border: 0;
  border-top: 2px solid var(--tp-ink);
  border-radius: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--tp-line);
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
#order_review_heading {
  font-family: var(--tp-display);
  font-size: 1.9rem;
  font-weight: 900;
}

.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 52px;
}

/* Pilihan Provinsi dan Negara (select2/selectWoo) disamakan dengan isian lain. */
.woocommerce form .form-row .select2-container--default .select2-selection--single {
  height: 46px;
  border: 1.5px solid var(--tp-line);
  border-radius: 10px;
  background: var(--tp-surface);
}

.woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: .8em;
  line-height: 43px;
  color: var(--tp-ink);
}

.woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 43px;
}

.woocommerce form .form-row .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce form .form-row .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tp-accent) 28%, transparent);
}

.woocommerce-info,
.woocommerce-message {
  border-top-color: var(--tp-accent);
}

.woocommerce-error {
  border-top-color: var(--tp-danger);
}

/* Halaman coming soon WooCommerce untuk halaman toko (template blok "coming-soon", kelas tp-segera). */
.wp-block-woocommerce-coming-soon.tp-segera {
  display: grid;
  justify-items: center;
  gap: 14px;
  box-sizing: border-box;
  max-width: var(--tp-maxw);
  margin-inline: auto;
  padding: clamp(72px, 12vw, 150px) var(--tp-gutter);
  text-align: center;
}

.tp-segera h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
}

.tp-segera p {
  max-width: 46ch;
  margin: 0;
  font-size: 1.125rem;
  color: var(--tp-muted);
}

.tp-segera .tp-segera-ig a {
  color: var(--tp-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--tp-stamp);
}

/* Lacak pesanan (/lacak/, shortcode timepolar_lacak) dan Masuk dengan Google ---- */
.tp-lacak {
  display: grid;
  gap: 18px;
}

/* Jarak diatur gap .tp-lacak; margin bawaan Kadence untuk h1 dan p di isi halaman dinolkan. */
.entry-content .tp-lacak :is(h1, h2, p, ol, dl) { margin: 0; }

.tp-lacak-judul,
.tp-lacak-status {
  margin: 0;
  font-family: var(--tp-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 900;
  line-height: .95;
}

.tp-lacak-sub,
.tp-lacak-aksi {
  font-size: 1.05rem;
  color: var(--tp-muted);
}

.tp-lacak-no {
  font-size: .92rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.tp-lacak-pesan {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tp-stamp) 12%, var(--tp-surface));
  color: var(--tp-kraft-ink);
  font-weight: 600;
}

.tp-lacak-kartu {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  background: var(--tp-surface);
}

.tp-lacak-kartu h2 {
  margin: 0;
  font-family: var(--tp-body);
  font-size: 1.05rem;
  font-weight: 700;
}

.tp-lacak-kartu label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.tp-lacak-kartu input[type="text"],
.tp-lacak-kartu input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: .55em .8em;
  border: 1.5px solid var(--tp-line);
  border-radius: 10px;
  background: var(--tp-surface);
  color: var(--tp-ink);
  font-family: var(--tp-body);
  font-size: 1rem;
}

.tp-lacak-kartu input:focus {
  outline: none;
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tp-accent) 28%, transparent);
}

.tp-tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .6em 1.3em;
  border: 2px solid var(--tp-accent);
  border-radius: 12px;
  background: var(--tp-accent);
  color: #fff;
  font-family: var(--tp-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.tp-tombol:hover {
  border-color: var(--tp-accent-hover);
  background: var(--tp-accent-hover);
  color: #fff;
}

.tp-tombol-garis,
.tp-tombol-garis:hover {
  min-height: 40px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  background: transparent;
  color: var(--tp-ink);
  font-size: .92rem;
}

.tp-tombol-garis:hover { background: var(--tp-surface-2); }

.tp-lacak-kecil {
  font-size: .85rem;
  color: var(--tp-muted);
}

.tp-lacak-garis-atas {
  padding-top: 10px;
  border-top: 1px dashed var(--tp-line);
}

.tp-lacak-atau {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--tp-muted);
}

.tp-lacak-atau::before,
.tp-lacak-atau::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tp-line);
}

.tp-resi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tp-surface-2);
}

.tp-resi > span { display: grid; gap: 2px; }

.tp-resi strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .95rem;
  letter-spacing: .02em;
}

/* Garis waktu: titik hijau bercentang untuk yang sudah, cincin oranye untuk posisi sekarang. */
.entry-content .tp-garis {
  display: grid;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  background: var(--tp-surface);
  list-style: none;
}

.entry-content .tp-garis li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding-bottom: 16px;
}

.entry-content .tp-garis li:last-child { padding-bottom: 0; }

.entry-content .tp-garis li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--tp-line);
}

.entry-content .tp-garis li:last-child::before { display: none; }
.entry-content .tp-garis li.sudah::before { background: var(--tp-accent); }
.entry-content .tp-garis li.sekarang::before { background: var(--tp-line); }

.tp-titik {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 2px solid var(--tp-line);
  border-radius: 50%;
  background: var(--tp-bg);
}

.tp-garis li.sudah .tp-titik {
  border-color: var(--tp-accent);
  background: var(--tp-accent);
}

.tp-garis li.sudah .tp-titik::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.tp-garis li.sekarang .tp-titik {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp-date) 30%, transparent);
}

.tp-tahap { display: grid; gap: 2px; }

.tp-tahap-nama {
  font-weight: 700;
}

.tp-garis li.nanti .tp-tahap-nama {
  font-weight: 600;
  color: var(--tp-muted);
}

.tp-cap {
  font-family: var(--tp-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--tp-date);
  text-shadow: 0 0 6px color-mix(in srgb, var(--tp-date) 40%, transparent);
}

.tp-tahap-catatan {
  font-size: .85rem;
  color: var(--tp-muted);
}

.tp-lacak-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: .95rem;
}

.tp-lacak-info dt { color: var(--tp-muted); }
.tp-lacak-info dd { margin: 0; font-weight: 600; }

.tp-google {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 44px;
}

/* Google membuat iframe 20px lebih lebar dari tombolnya (margin -10px kiri-kanan);
   aturan Kadence iframe{max-width:100%} memotong ujung kanan tombol. */
.g_id_signin iframe { max-width: none; }

.tp-google-aplikasi {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tp-stamp) 12%, var(--tp-surface));
  color: var(--tp-kraft-ink);
  font-size: .9rem;
}

/* Proof di halaman lacak: gambar proof, Setujui, dan Minta revisi */
.tp-proof {
  display: grid;
  gap: 14px;
  scroll-margin-top: 90px;
}

.tp-proof-gambar {
  display: grid;
  gap: 12px;
}

.tp-proof-gambar a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: 14px;
  background: var(--tp-surface-2);
}

.tp-proof-gambar img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-content .tp-proof-form { margin: 0; }
.tp-proof > .tp-proof-form .tp-tombol { width: 100%; }

.tp-proof-ubah {
  padding: 12px 16px;
  border: 1px solid var(--tp-line);
  border-radius: 14px;
  background: var(--tp-surface);
}

.tp-proof-ubah summary {
  min-height: 28px;
  font-weight: 700;
  cursor: pointer;
}

.tp-proof-ubah .tp-proof-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tp-proof-ubah label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.tp-proof-ubah textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 110px;
  padding: .6em .8em;
  border: 1.5px solid var(--tp-line);
  border-radius: 10px;
  background: var(--tp-surface);
  color: var(--tp-ink);
  font: inherit;
}

.tp-proof-ubah textarea:focus {
  outline: none;
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tp-accent) 28%, transparent);
}

.entry-content .tp-proof-revisi {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--tp-stamp);
  border-radius: 0 10px 10px 0;
  background: var(--tp-surface-2);
  font-style: normal;
}

.tp-lacak-pesan-ok {
  background: color-mix(in srgb, var(--tp-accent) 14%, var(--tp-surface));
  color: var(--tp-accent);
}

.tp-proof > .tp-proof-form { display: grid; gap: 8px; }

/* Aksi pembeli di halaman lacak: Box sudah sampai, catatan sebelum proof, minta batal, laporan rusak */
.tp-alur {
  display: grid;
  gap: 14px;
  scroll-margin-top: 90px;
}
.tp-alur > .tp-proof-form { display: grid; gap: 10px; }
.tp-alur > .tp-proof-form .tp-tombol { width: 100%; }
.entry-content .tp-proof-ubah > p { margin-top: 10px; }
.entry-content .tp-alur-tombol { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buku alamat penerima (Akun saya > Alamat, checkout) */
.tp-alamat { display: grid; gap: 12px; margin-top: 32px; }
.entry-content .tp-alamat h2 { margin: 0; font-size: 1.4rem; }
.entry-content .tp-alamat p { margin: 0; }
.tp-alamat-kecil, .tp-alamat-kosong { font-size: .9rem; color: var(--tp-muted); }
.entry-content .tp-alamat-daftar { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-alamat-daftar li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 16px; border: 1px solid var(--tp-line); border-radius: 14px; background: var(--tp-surface);
}
.tp-alamat-daftar li > div { display: grid; gap: 2px; min-width: 0; }
.tp-alamat-daftar span { font-size: .9rem; color: var(--tp-muted); overflow-wrap: anywhere; }
.tp-alamat-daftar form { margin: 0; }
.tp-alamat-tambah { padding: 12px 16px; border: 1px solid var(--tp-line); border-radius: 14px; background: var(--tp-surface); }
.tp-alamat-tambah summary { min-height: 28px; font-weight: 700; cursor: pointer; }
.tp-alamat-form { display: grid; gap: 4px; margin-top: 12px; }
.tp-alamat-form select { width: 100%; min-height: 46px; }
.tp-alamat-pilih { display: grid; gap: 6px; margin-bottom: 8px; }
.tp-alamat-pilih select { width: 100%; min-height: 46px; }
.tp-alamat-simpan input[type="text"] { margin-top: 8px; }

/* Halaman produk: penghitung foto, pratinjau, Pesan lagi; checkout: pengingat */
.tp-unggah-info {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--tp-surface-2);
  font-size: .92rem;
}
.tp-unggah-info p { margin: 0; }
.tp-unggah-info.is-kurang { background: color-mix(in srgb, var(--tp-stamp) 14%, var(--tp-surface)); color: var(--tp-kraft-ink); }
.tp-unggah-info.is-cukup { background: color-mix(in srgb, var(--tp-accent) 12%, var(--tp-surface)); }

.tp-pratinjau {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--tp-surface-2) 55%, var(--tp-surface));
}
.tp-pratinjau-kepala { display: grid; gap: 2px; }
.tp-pratinjau-ringkas { font-weight: 600; color: var(--tp-ink) !important; }
/* Pratinjau isi box di kolom kiri, menggantikan gambar ilustrasi; ikut terlihat saat formulir digulir (desktop) */
.tp-pratinjau-kiri .woocommerce-product-gallery__wrapper,
.tp-pratinjau-kiri .woocommerce-product-gallery__trigger,
.tp-pratinjau-kiri .woocommerce-product-gallery .flex-control-nav { display: none !important; }
.tp-pratinjau-kiri .woocommerce-product-gallery { opacity: 1 !important; }
.tp-pratinjau-kiri .woocommerce-product-gallery .tp-pratinjau { margin-top: 0; }
@media (min-width: 768px) {
  .tp-pratinjau-kiri div.product .woocommerce-product-gallery { position: sticky !important; top: 96px; z-index: 2; }
  .tp-pratinjau-kiri .woocommerce-product-gallery .tp-pratinjau { max-height: calc(100vh - 120px); overflow-y: auto; }
}
@media (max-width: 767px) {
  .tp-pratinjau-kiri .woocommerce-product-gallery .tp-pratinjau { max-height: 52vh; overflow-y: auto; padding: 12px; }
  .tp-pratinjau-baris { gap: 8px; }
}
.tp-pratinjau-kepala span { font-size: .85rem; color: var(--tp-muted); }
.tp-pratinjau-isi { display: grid; gap: 16px; padding: 4px 2px 8px; }
.tp-pratinjau-grup { display: grid; gap: 8px; }
.entry-content .tp-pratinjau-judul, .tp-pratinjau-judul { margin: 0; font-size: .85rem; font-weight: 700; color: var(--tp-muted); }
.tp-pratinjau-baris { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tp-pratinjau-isi figure { flex: none; display: grid; gap: 6px; margin: 0; max-width: 100%; }
.tp-pratinjau-isi canvas { display: block; border-radius: 3px; box-shadow: 0 6px 16px -8px rgba(20, 30, 25, .45); }
.tp-pratinjau-isi figcaption { font-size: .8rem; color: var(--tp-muted); }
.tp-pratinjau-isi canvas.bisa-atur { cursor: pointer; }

/* Pembayaran manual: QRIS, DANA, BCA (halaman terima kasih dan Lacak) */
.tp-bayar { display: grid; gap: 10px; }
.entry-content .tp-bayar p { margin: 0; }
.tp-bayar-total { font-size: 1.02rem; }
.tp-bayar-kotak { padding: 12px 14px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-surface); }
.tp-bayar-kotak img { display: block; width: 240px; max-width: 100%; height: auto; margin-top: 8px; border-radius: 8px; }
.tp-bayar-lacak { display: grid; gap: 14px; scroll-margin-top: 90px; }
.tp-bayar-form { display: grid; gap: 8px; }
.tp-bayar-form label { font-size: .9rem; font-weight: 600; color: var(--tp-muted); }
.tp-bayar-form input[type="file"] { max-width: 100%; font: inherit; }
.tp-bayar-terimakasih { display: grid; gap: 12px; margin: 18px 0; }

/* Galeri + ringkasan dibungkus supaya panel isi box berhenti di akhir formulir */
.tp-produk-atas { display: flow-root; }
/* Penyunting: tanggal, caption, ganti foto; seret foto ke bingkai */
.tp-atur-teks { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 16px 0; }
.tp-atur-teks label, .tp-atur-ganti p { display: block; margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--tp-muted); }
.tp-atur-teks input { box-sizing: border-box; width: 100%; min-height: 44px; padding: .5em .7em; border: 1.5px solid var(--tp-line); border-radius: 10px; background: var(--tp-surface); color: var(--tp-ink); font: inherit; }
@media (max-width: 420px) { .tp-atur-teks { grid-template-columns: 1fr; } }
.tp-atur-ganti { padding: 12px 16px 0; }
.tp-atur-ganti-baris { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tp-atur-ganti-baris .tp-atur-foto { width: 48px; height: 48px; }
.tp-atur-daftar .tp-atur-foto { touch-action: pan-x; }
.tp-seret-hantu { position: fixed; left: 0; top: 0; z-index: 100000; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.35); opacity: .92; }
.tp-seret-hantu canvas { width: 100%; height: 100%; display: block; }
html.tp-sedang-seret, html.tp-sedang-seret * { cursor: grabbing !important; user-select: none; }
.tp-pratinjau-baris canvas.is-tujuan { outline: 3px solid var(--tp-accent); outline-offset: 3px; }
.tp-caption-kotak { display: grid; gap: 8px; justify-items: start; }
.entry-content .tp-caption-ringkas, .tp-caption-ringkas { margin: 0; font-size: .9rem; color: var(--tp-muted); }
.entry-content .tp-caption-tanpa, .tp-caption-tanpa { margin: 0; padding: 8px 12px; border-left: 3px solid var(--tp-stamp); border-radius: 0 8px 8px 0; background: var(--tp-surface); font-size: .88rem; color: var(--tp-ink); }
.tp-caption-tanpa[hidden] { display: none; }
.entry-content .tp-filter-ringkas, .tp-filter-ringkas { margin: 0; font-size: .9rem; color: var(--tp-muted); }
/* Tulisan di bawah polaroid (satu pilihan) dan filter per foto di penyunting: chip seperti pilihan radio WPC */
.tp-tulisan-pilih, .tp-atur-filter-baris { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-tulisan-pilih { margin: 0 0 10px; }
.tp-tulisan-pilih label, .tp-atur-filter-baris button {
  position: relative; display: inline-flex; align-items: center; min-height: 42px; margin: 0; padding: 0 16px;
  border: 1.5px solid var(--tp-line); border-radius: 999px; background: var(--tp-surface); color: var(--tp-ink);
  font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.tp-tulisan-pilih label:hover, .tp-atur-filter-baris button:hover { border-color: var(--tp-ink); }
.tp-tulisan-pilih input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tp-tulisan-pilih label:has(input:checked), .tp-atur-filter-baris button[aria-pressed="true"] { border-color: var(--tp-ink); background: var(--tp-ink); color: var(--tp-bg); }
.tp-tulisan-pilih label:has(input:focus-visible), .tp-atur-filter-baris button:focus-visible { outline: 3px solid var(--tp-focus); outline-offset: 2px; }
.entry-content .tp-tulisan-bantu, .tp-tulisan-bantu { margin: 0 0 6px; font-size: .88rem; color: var(--tp-muted); }
.tp-tulisan-bantu[hidden] { display: none; }
.tp-atur-filter { padding: 12px 16px 0; }
.tp-atur-filter p { margin: 0 0 6px; font-size: .85rem; font-weight: 600; color: var(--tp-muted); }
.tp-atur-filter-baris { gap: 6px; }
.tp-atur-filter-baris button { flex: none; min-height: 38px; padding: 0 14px; font-size: .88rem; }
.tp-atur-capbox[hidden] { display: none; }
.tp-atur-teks:has(.tp-atur-capbox[hidden]) { grid-template-columns: minmax(0, 220px); }

/* Atur posisi foto di bingkai (halaman produk) */
.tp-atur-daftar { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--tp-line); }
.tp-atur-daftar-kepala { display: grid; gap: 2px; }
.tp-atur-daftar-kepala span { font-size: .85rem; color: var(--tp-muted); }
.tp-atur-baris { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.tp-atur-foto {
  position: relative; flex: none; width: 56px; height: 56px; padding: 0; overflow: hidden;
  border: 2px solid var(--tp-line); border-radius: 10px; background: var(--tp-surface-2);
  color: var(--tp-muted); font-size: .72rem; font-weight: 700; cursor: pointer;
}
.tp-atur-foto canvas { display: block; width: 100%; height: 100%; }
.tp-atur-foto.is-diatur { border-color: var(--tp-accent); }
.tp-atur-foto.is-diatur::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--tp-accent); box-shadow: 0 0 0 2px #fff;
}
.tp-atur-foto:disabled { cursor: not-allowed; opacity: .5; }
.tp-atur-foto:focus-visible { outline: 3px solid color-mix(in srgb, var(--tp-accent) 55%, transparent); outline-offset: 2px; }

html.tp-atur-buka { overflow: hidden; }
dialog.tp-atur {
  width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; overflow: auto; border: 0; border-radius: 18px;
  background: var(--tp-surface); color: var(--tp-ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
dialog.tp-atur::backdrop { background: rgba(20, 26, 22, .62); }
.tp-atur-kepala { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 10px 8px 16px; }
.tp-atur-kepala > div { display: grid; gap: 2px; }
.tp-atur-sub { font-size: .85rem; color: var(--tp-muted); }
.tp-atur-tutup {
  flex: none; min-width: 44px; min-height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.tp-atur-tutup:hover { background: var(--tp-surface-2); }
.tp-atur-bidang { display: grid; place-items: center; padding: 12px 16px; background: color-mix(in srgb, var(--tp-surface-2) 70%, var(--tp-surface)); }
.tp-atur-kanvas {
  display: block; max-width: 100%; border-radius: 3px; touch-action: none; cursor: grab;
  box-shadow: 0 8px 20px -10px rgba(20, 30, 25, .5);
}
.tp-atur-kanvas:active { cursor: grabbing; }
.tp-atur-kanvas:focus-visible { outline: 3px solid color-mix(in srgb, var(--tp-accent) 55%, transparent); outline-offset: 3px; }
.tp-atur-bantu, .tp-atur-peringatan { margin: 0; padding: 10px 16px 0; font-size: .88rem; color: var(--tp-muted); }
.tp-atur-peringatan { color: var(--tp-stamp); font-weight: 600; }
.tp-atur-zoom { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; padding: 10px 16px 0; }
.tp-atur-zoom button {
  min-height: 44px; border: 1.5px solid var(--tp-line); border-radius: 10px;
  background: var(--tp-surface); color: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.tp-atur-zoom input[type="range"] {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  width: 100%; height: 6px; min-height: 0; margin: 19px 0; padding: 0;
  border: 0; border-radius: 3px; background: var(--tp-line); box-shadow: none; cursor: pointer;
}
.tp-atur-zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tp-accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.tp-atur-zoom input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--tp-accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.tp-atur-zoom input[type="range"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--tp-accent) 45%, transparent); outline-offset: 6px; }
.tp-atur-aksi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 16px; }
.tp-atur-aksi .tp-tombol { min-height: 44px; padding: .5em .4em; font-size: .9rem; white-space: nowrap; }
@media (max-width: 420px) { .tp-atur-aksi .tp-tombol { font-size: .84rem; } }
.tp-atur-aksi [data-aksi="selesai"] { grid-column: 1 / -1; font-size: 1rem; }

.tp-ulang-info {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tp-accent) 12%, var(--tp-surface));
  color: var(--tp-accent);
  font-weight: 600;
}
.tp-ulang-tautan { margin: 6px 0 0; font-size: .9rem; }

.woocommerce form .form-row.tp-ingat { display: grid; gap: 2px; }
.woocommerce form .form-row.tp-ingat label.checkbox { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.tp-ingat-kecil { font-size: .85rem; color: var(--tp-muted); }

/* Blok Google di atas formulir masuk Akun saya */
.tp-google-akun {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.tp-google-akun p { margin: 0; }

/* 7. Footer (Kadence) ------------------------------------------------------- */
#colophon.site-footer {
  border-top: 2px solid var(--tp-ink);
  background: var(--tp-bg);
}

#colophon .site-footer-row-container-inner {
  background: transparent;
}

#colophon .footer-html,
#colophon .site-info {
  font-size: .82rem;
  color: var(--tp-muted);
}

#colophon .widget-title,
#colophon .wp-block-heading {
  margin-bottom: 8px;
  font-family: var(--tp-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
}

#colophon .widget a,
#colophon .wp-block-list a {
  text-decoration: none;
}

#colophon .widget a:hover,
#colophon .wp-block-list a:hover {
  text-decoration: underline;
}

/* Tiga kolom footer (widget blok tp-foot-*): merek, Halaman, Kontak. Satu kolom di HP (Kadence). */
#colophon .tp-foot-brand {
  margin: 0 0 12px;
}

#colophon .tp-foot-copy {
  max-width: 36ch;
  margin: 0;
  font-size: .95rem;
  color: var(--tp-muted);
}

#colophon .tp-foot-links {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}

#colophon .tp-foot-links li {
  margin: 0;
}

#colophon .tp-foot-contact a {
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}

@media (min-width: 1025px) {
  #colophon .site-middle-footer-inner-wrap.site-footer-row-columns-3 {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

#colophon .site-bottom-footer-wrap .footer-html {
  text-align: left;
}

/* 8. Gerak dikurangi --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Link kartu QR: status cek link dan panduan singkat */
.tp-qr-bantu { display: grid; gap: 8px; margin-top: 8px; }
.entry-content .tp-qr-status, .tp-qr-status { margin: 0; font-size: .88rem; color: var(--tp-muted); }
.tp-qr-status.is-ok { padding: 8px 12px; border-left: 3px solid var(--tp-accent); border-radius: 0 8px 8px 0; background: var(--tp-surface); color: var(--tp-ink); }
.tp-qr-status.is-awas { padding: 8px 12px; border-left: 3px solid var(--tp-stamp); border-radius: 0 8px 8px 0; background: var(--tp-surface); color: var(--tp-ink); }
.tp-qr-cara { font-size: .9rem; }
.tp-qr-cara summary { cursor: pointer; font-weight: 600; color: var(--tp-accent); min-height: 32px; display: flex; align-items: center; }
.tp-qr-cara dl { display: grid; gap: 8px; margin: 6px 0 0; }
.tp-qr-cara dt { font-weight: 700; color: var(--tp-ink); }
.tp-qr-cara dd { margin: 0; color: var(--tp-muted); }
.tp-qr-contoh { display: block; font-size: .82rem; overflow-wrap: anywhere; }
.tp-qr-cara summary { list-style: none; gap: 6px; }
.tp-qr-cara summary::-webkit-details-marker { display: none; }
.tp-qr-cara summary::before { content: "›"; display: inline-block; font-size: 1.2em; line-height: 1; transition: transform .15s; }
.tp-qr-cara[open] summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .tp-qr-cara summary::before { transition: none; } }
