.hbt-panel { position: fixed; inset: 0; z-index: 9999; font-family: var(--hbt-font); }
.hbt-panel[hidden] { display: none; }

.hbt-panel__overlay { position: absolute; inset: 0; background: rgba(23, 23, 23, .45); }

.hbt-panel__inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
}
.hbt-panel--left .hbt-panel__inner {
  right: auto; left: 0;
  box-shadow: 8px 0 32px rgba(0, 0, 0, .12);
}
.hbt-panel--top .hbt-panel__inner {
  right: 0; left: 0; bottom: auto;
  width: auto; max-height: 88vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

.hbt-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 22px;
  border-bottom: 1px solid var(--hbt-border-2);
}
.hbt-panel__title { margin: 0; font-size: 17px; font-weight: 600; }
/* Tema Hello Elementor mewarnai SEMUA <button> pada :hover dan :focus dengan
   #c36. Panel ini memindahkan fokus ke tombol tutup begitu dibuka, jadi tanpa
   aturan di bawah tombolnya langsung jadi kotak pink. */
.hbt-panel__close,
.hbt-panel__close:hover,
.hbt-panel__close:focus,
.hbt-panel__close:active {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; color: var(--hbt-ink);
}
.hbt-panel__close:hover { background: var(--hbt-surface); }
.hbt-panel__close:focus { outline: none; }
.hbt-panel__close:focus-visible {
  outline: 2px solid var(--hbt-accent); outline-offset: 2px;
}

/* Panel menerima fokus saat dibuka; cincin fokusnya tidak perlu terlihat
   karena yang berpindah adalah konteks, bukan sebuah kontrol. */
.hbt-panel__inner:focus { outline: none; }

.hbt-panel__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.hbt-panel__foot {
  padding: 18px 22px;
  border-top: 1px solid var(--hbt-border-2);
  background: #fff;
}
