/* ═══════════════════════════════════════════════════════════════
   Heinen Bronzen – Metal Letters UI
   Styles for: ABC sidebar panel, custom toolbar, dropdowns
   ═══════════════════════════════════════════════════════════════ */

/* ─── Canvas cursor override ─────────────────────────────────── *
 * TODO: hide browser I-beam during Heinen text editing without
 * losing the mouse cursor for clicking outside. Deferred.        */

/* ─── ABC tab icon ────────────────────────────────────────────── */

.heinen-abc-icon {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #c4993c;
  display: block;
  line-height: 40px;
}

/* ─── TEXT sidebar: hide default text templates ───────────────── */

#lumise-text-mask-guide,
#lumise-text > span[draggable="true"] {
  display: none !important;
}

/* ─── Bronze Letter Fonts ────────────────────────────────────── */

@font-face {
  font-family: 'HeinenRomano';
  src: url('../../../uploads/lumise_data/fonts/heinen/romano.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HeinenPalladio';
  src: url('../../../uploads/lumise_data/fonts/heinen/palladio.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HeinenOriginal';
  src: url('../../../uploads/lumise_data/fonts/heinen/original.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HeinenExample';
  src: url('../../../uploads/lumise_data/fonts/heinen/example.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Sidebar Panel ──────────────────────────────────────────── */

.heinen-abc-panel {
  padding: 20px 20px 40px;
  text-align: left;
}

.heinen-abc-panel h3 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: #eee;
  text-transform: none;
  padding: 0;
}

.heinen-abc-field {
  margin-bottom: 16px;
}

.heinen-abc-field label {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heinen-abc-field select {
  display: block;
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  color: #eee;
  font-size: 14px;
  padding: 0 30px 0 10px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ccc'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.heinen-abc-field select:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.heinen-abc-field select:focus {
  border-color: #3fc7ba;
}

.heinen-abc-field select option {
  background: #3f4652;
  color: #eee;
}

#heinen-text-input {
  display: block;
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  color: #eee;
  font-size: 14px;
  padding: 0 10px;
  outline: none;
  box-sizing: border-box;
}

#heinen-text-input:focus {
  border-color: #3fc7ba;
}

#heinen-text-input.heinen-editing {
  border-color: #f0a030;
  background: rgba(240, 160, 48, 0.12);
}

#heinen-text-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.heinen-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 14px;
  height: 36px;
}

.heinen-color-dot {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #b08d57;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.heinen-abc-actions {
  margin-top: 24px;
  text-align: center;
}

.heinen-abc-actions .lumise-btn {
  width: 100%;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
}

/* ─── Custom Top Toolbar ─────────────────────────────────────── */

#lumise-top-tools.heinen-toolbar-active > ul.lumise-top-nav:not(.heinen-metal-toolbar) {
  display: none !important;
}

.heinen-metal-toolbar.heinen-active {
  display: block !important;
}

.heinen-metal-toolbar .heinen-tb-color {
  display: flex !important;
  align-items: center;
  padding: 0 6px !important;
}

.heinen-metal-toolbar .heinen-tb-color .heinen-color-dot {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.heinen-metal-toolbar font {
  display: block;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  color: #555;
}

.heinen-metal-toolbar font:hover {
  background: rgba(0, 0, 0, 0.06);
}

.heinen-metal-toolbar font.selected {
  color: #3fc7ba;
  font-weight: 600;
}

.heinen-metal-toolbar li[data-tool] > ul[data-view="sub"] > li.scroll {
  max-height: 200px;
  min-width: 140px;
}
