.candle-preset-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.candle-preset-btn {
  min-width: 96px;
  letter-spacing: 0.04em;
}

.candle-preset-wrap.is-open .candle-preset-btn {
  color: var(--inst-cyan, #00a8cc);
  border-color: rgba(0, 168, 204, 0.35);
}

.candle-preset-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 1200;
  min-width: 248px;
  padding: 6px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.candle-preset-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #e8e8e8;
  font-family: var(--inst-mono, 'Consolas', monospace);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.candle-preset-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.candle-preset-item.is-active {
  background: rgba(0, 168, 204, 0.12);
  border-color: rgba(0, 168, 204, 0.35);
  color: #ffffff;
}

.candle-preset-swatch {
  display: inline-flex;
  flex-direction: column;
  width: 14px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.candle-preset-swatch-up,
.candle-preset-swatch-down {
  display: block;
  flex: 1 1 50%;
}

.candle-preset-item-label {
  line-height: 1.25;
}

body.view-geral-active .candle-preset-menu {
  background: var(--inst-panel, #0a0a0a);
  border-color: var(--inst-border-dim, rgba(255, 255, 255, 0.12));
}

body.view-geral-active .candle-preset-item {
  font-size: 14px;
}
