$mc-ink: #1e293b;
$mc-ink-muted: #64748b;
$mc-border: #e2e8f0;
$mc-surface: #ffffff;
$mc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

.mysubs-root {
  position: relative;
  display: inline-block;
}

.mysubs-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;

  &:hover {
    background: rgba(0, 0, 0, 0.05);
  }
}

.mysubs-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 480px;
  overflow-y: auto;
  background: $mc-surface;
  border: 1px solid $mc-border;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  z-index: 200;
  font-family: $mc-font;
  color: $mc-ink;
}

.mysubs-panel-head {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid $mc-border;
}

.mysubs-loading,
.mysubs-empty {
  font-size: 12.5px;
  color: $mc-ink-muted;
  margin: 0;
  padding: 12px 16px;
}

.mysubs-section-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: $mc-ink-muted;
}

.mysubs-section-sub {
  font-size: 10.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: $mc-ink-muted;
}

.mysubs-divider {
  height: 1px;
  background: $mc-border;
  margin: 4px 0;
}

.mysubs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid $mc-border;
  border-left: 3px solid transparent;

  &:last-child {
    border-bottom: none;
  }
}

.mysubs-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mysubs-item-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: $mc-ink;
}

.mysubs-item-icon {
  font-size: 13px;
  line-height: 1;
}

.mysubs-lock {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: $mc-ink-muted;
}

.mysubs-item-sub {
  font-size: 11.5px;
  color: $mc-ink-muted;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
