/* ══════════ Skeleton loading — halaman checkout ══════════
   Pola SAMA dgn admin-skeleton.css & store-skeleton.css (token --skel-bg, keyframes aq-shimmer dari tokens.css).
   Aktif selama <html> punya kelas .aq-skel-store (dipasang assets/js/store-skeleton.js di <head> sebelum konten
   tergambar; dicopot setelah window load atau paling lama 2,5 dtk — sengaja lebih pendek dari store karena ini
   halaman konversi: form tidak boleh "tertutup" lama oleh pixel/skrip pihak ketiga).
   Isi asli tetap ada di DOM (hanya disamarkan) → tata letak tidak bergeser. Tombol tema tetap nyata.
   Tanpa JS kelas tidak terpasang → konten tampil normal. */
:root { --aq-skel-bg: var(--skel-bg); }
@keyframes aq-store-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.aq-store-reveal :is(.checkout-page, .faq-wrap) > * { animation: aq-store-reveal var(--dur-slow) ease both; }

/* 1) Semua teks transparan (warna inline pun kalah) → tidak ada teks yang "bocor" */
html.aq-skel-store :is(.checkout-page, .faq-wrap),
html.aq-skel-store :is(.checkout-page, .faq-wrap) * {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}
html.aq-skel-store :is(.checkout-page, .faq-wrap) :is(svg, img, video, canvas, iframe) { visibility: hidden; }
html.aq-skel-store :is(.checkout-page, .faq-wrap) :is(input[type=radio], input[type=checkbox], .aq-label) { visibility: hidden; }
html.aq-skel-store :is(.checkout-page, .faq-wrap) ::placeholder { color: transparent !important; -webkit-text-fill-color: transparent; }

/* 2) Bar shimmer pada elemen teks "daun" (tanpa anak elemen & tidak kosong) */
html.aq-skel-store :is(.checkout-page, .faq-wrap)
  :is(h1, h2, h3, p, span, a, div, li, strong, small, summary, em, b):not(:has(*)):not(:empty) {
  width: fit-content; max-width: 100%;
  background: var(--aq-skel-bg) !important; background-size: 400% 100% !important;
  animation: aq-shimmer var(--dur-shimmer) ease infinite;
  border-radius: var(--radius-sm);
  border-color: transparent !important; box-shadow: none !important;
  user-select: none; pointer-events: none;
}

/* 3) Blok visual: galeri & gambar bonus/bump, badge, banner promo/alert, field, tombol */
html.aq-skel-store :is(.checkout-page, .faq-wrap)
  :is(.pg-carousel, .bonus-card-media, .bump-option-image, .badge, .alert, .trust-line,
      .aq-input, input:not([type=radio]):not([type=checkbox]):not([type=hidden]), select, textarea,
      .checkout-submit-btn, .btn-secondary, .rincian-box) {
  background: var(--aq-skel-bg) !important; background-size: 400% 100% !important;
  animation: aq-shimmer var(--dur-shimmer) ease infinite;
  border-color: transparent !important; box-shadow: none !important;
  pointer-events: none; user-select: none;
}
html.aq-skel-store :is(.checkout-page, .faq-wrap)
  :is(.pg-carousel, .bonus-card-media, .bump-option-image, .badge, .alert, .trust-line,
      .checkout-submit-btn, .btn-secondary, .rincian-box) > * { visibility: hidden; }
html.aq-skel-store :is(.checkout-page, .faq-wrap) select * { visibility: hidden; }
/* Kartu pilihan (paket / bump / gateway / bonus): bentuk & garis tepi tetap terbaca, tapi tanpa penanda terpilih */
html.aq-skel-store :is(.plan-option, .bump-option, .gateway-option, .bonus-card, .faq-item) { border-color: var(--border) !important; box-shadow: none !important; }
html.aq-skel-store :is(.plan-option, .gateway-option) > input[type=radio] { display: none; }
/* Bar teks di dalam blok shimmer tidak ikut berkedip sendiri */
html.aq-skel-store :is(.checkout-page, .faq-wrap)
  :is(.pg-carousel, .bonus-card-media, .bump-option-image, .badge, .alert, .trust-line, .checkout-submit-btn,
      .btn-secondary, .rincian-box) :is(span, strong, small, div, p) { background: none !important; animation: none !important; }
html.aq-skel-store .pg-nav, html.aq-skel-store .pg-dots { visibility: hidden; }

/* 4) Tidak ada yang bisa diklik / diisi selama loading */
html.aq-skel-store :is(.checkout-page, .faq-wrap) :is(a, button, input, select, textarea, summary, label, [onclick]) { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html.aq-skel-store :is(.checkout-page, .faq-wrap) *, html.aq-store-reveal :is(.checkout-page, .faq-wrap) > * { animation: none !important; }
}
