/* pilih-cantik.css — gaya dropdown kustom (public/js/pilih-cantik.js). */
.pc { position: relative; width: 100%; }
.pc [hidden] { display: none !important; }
.pc-asli { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; left: 0; bottom: 0; }
.pc-tombol { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-align: left;
  background: #fff; border: 1px solid #dbe3ee; border-radius: 12px; font: inherit; font-size: 14px; color: #0f2a4a; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 42, 74, .06); transition: border-color .15s, box-shadow .15s; }
.pc-tombol:hover { border-color: #b9c7da; }
.pc-tombol:focus-visible, .pc-buka .pc-tombol { outline: none; border-color: #116A7B; box-shadow: 0 0 0 3px rgba(17, 106, 123, .18); }
.pc-nilai { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-placeholder .pc-nilai { color: #8a97aa; }
.pc-panah { width: 18px; height: 18px; flex: none; color: #64748b; transition: transform .15s; }
.pc-buka .pc-panah { transform: rotate(180deg); }
.pc-panel { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(15, 42, 74, .28), 0 2px 6px rgba(15, 42, 74, .06); overflow: hidden;
  animation: pcMuncul .12s ease-out; }
@keyframes pcMuncul { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pc-cari { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef2f7; }
.pc-cari svg { width: 16px; height: 16px; color: #94a3b8; flex: none; }
.pc-cari input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 14px; color: #0f2a4a; background: transparent; }
.pc-daftar { list-style: none; margin: 0; padding: 6px; max-height: min(320px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.pc-grup { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.pc-opsi { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: #0f2a4a; cursor: pointer; }
.pc-opsi .pc-t { flex: 1; min-width: 0; }
.pc-opsi .pc-ket { flex: none; font-size: 12px; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }
.pc-opsi.pc-sorot { background: #eef7f8; }
.pc-opsi[aria-selected="true"] { background: #e3f1f3; color: #0b4f5c; font-weight: 600; }
.pc-opsi[aria-selected="true"]::after { content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.pc-opsi.pc-kosongkan .pc-t { color: #64748b; font-style: italic; }
.pc-opsi[aria-disabled="true"] { opacity: .45; cursor: default; }
.pc-kosong { padding: 16px; text-align: center; font-size: 13px; color: #64748b; }
[data-theme="dark"] .pc-tombol, [data-theme="dark"] .pc-panel { background: #0f1b2d; border-color: #24344d; color: #e2e8f0; }
[data-theme="dark"] .pc-opsi { color: #e2e8f0; }
[data-theme="dark"] .pc-opsi.pc-sorot { background: #16283f; }
[data-theme="dark"] .pc-opsi[aria-selected="true"] { background: #173a44; color: #8fe0ec; }
[data-theme="dark"] .pc-cari input { color: #e2e8f0; }
@media (prefers-reduced-motion: reduce) { .pc-panel { animation: none; } .pc-panah { transition: none; } }
